Not far a long time I had the problem with installation of passenger gem. I love this gem because it’s very quickly to use it. You can use very simple commands to start and stop server just as example:
$ cd ~/your_project $ gem install passenger --no-ri --no-rdoc $ passenger start -d ; // run as daemon $ passenger stop $ touch tmp/restart.txt // quickly restart, I think this gem better than 'rails s' in development.
But in the latest Ubuntu I got issue with installation passenger gem connecting with building of nginx module. In the user groups I found solution for changing ext/nginx/config but not found properly path for fixing.
In my env it looks like ‘/home/korsaks/.passenger/standalone/3.0.9-x86-ruby1.8.7-linux-gcc4.6.1-1002/support/ext/nginx/’, the main part as you can see is ‘~/.passenger/standalone’
open in this full folder config file and place this lines:
ngx_feature="Math library" ngx_feature_name= ngx_feature_run=no ngx_feature_incs="#include <math.h>" ngx_feature_path= ngx_feature_libs="-lm" ngx_feature_test="pow(1, 2)" . auto/feature if [ $ngx_found = yes ]; then CORE_LIBS="$CORE_LIBS -lm" fi
before this line:
nginx_version=`grep 'NGINX_VERSION ' src/core/nginx.h | awk '{ print $3 }' | sed 's/"//g'`
And the run again command:
$ passenger start -d
That’s it.