Here is a strange problem. In irb, require 'openssl' return true. Went into subdir returned by 'which passenger-install-nginx-module' and executing the passenger-install-nginx-module. It returns that openssl support for ruby not found.
Followed the instruction below to build openssl successfully:
sudo apt-get install libssl-dev
cd ~/.rvm/src/ruby-1.9.2-p290/ext/openssl #ruby p290 installed by rvm
ruby extconf.rb
make && make install
However the passenger-install-nginx-module always prompts 'openssl support for ruby not found'.
Any thoughts about the problem? Thanks.
Here is what worked (installed openssl support for ruby):
$rvm remove 1.9.2
$rvm pkg install openssl
$rvm install 1.9.2 --with-openssl-dir=$HOME/.rvm/usr
Then cd /vol/www/myapp/current, install passenger.
$rvmsudo gem install passenger
$rvmsudo passenger-install-nginx-module
After compiling and installing ruby, from the source you go to the ext/openssl dir and compile it
as in cd to : /usr/local/src/ruby-1.8.7-p22/ext/openssl (or whatever)
sudo ruby extconf.rb
make
make install
As mentioned by user938363, here is a link to full details:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.