App 46646 stdout: App 46646 stderr: [passenger_native_support.so] trying to compile for the current user (nobody) and Ruby interpreter... App 46646 stderr: (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable) App 46646 stderr: Warning: compilation didn't succeed. To learn why, read this file: App 46646 stderr: /tmp/passenger_native_support-2axqow.log App 46646 stderr: [passenger_native_support.so] finding downloads for the current Ruby interpreter... App 46646 stderr: (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable) App 46646 stderr: Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.27/rubyext-ruby-2.3.0-x86_64-linux.tar.gz: no download tool found (curl or wget required) App 46646 stderr: Trying next mirror... App 46646 stderr: Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.27/rubyext-ruby-2.3.0-x86_64-linux.tar.gz: no download tool found (curl or wget required) App 46646 stderr: [passenger_native_support.so] will not be used (can't compile or download) App 46646 stderr: --> Passenger will still operate normally. App 46646 stderr: sh: env: command not found App 46646 stdout: [ 2016-04-17 07:35:12.9590 46606/7fc48c66d700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /home/MyRails: An error occurred while starting up the preloader.
>App 46646 stderr: sh: env: command not found
Looks like your path is not set correctly. Probably related to the way you run it (e.g. Nginx filters the PATH if you don't whitelist it).
- Daniel
Finally, I don't need to do anything in the config.Just edit "Gemfile" unmark "therubyracer" , then everything is back to normal.I guess this is because passenger via YUM, cannot recognize where my nodejs is.
So this way it makes my rails project using therubyracer to do the javascript interpreter.