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):
Then cd /vol/www/myapp/current, install passenger.