在centos上安装passenger的nginx模块报错OpenSSL support for Ruby… not found的解决办法

在centos上安装passenger的nginx模块报错OpenSSL support for Ruby… not found的解决办法

在centos上安装passenger的nginx模块报错的时候
错误如下
OpenSSL support for Ruby... not found
解决办法如下

cd /usr/local/src/ruby-1.9.2-p0/ext/openssl
ruby extconf.rb
make
make install