passenger_native_support.so not found

386 views
Skip to first unread message

Tag Charlie

unread,
Apr 16, 2016, 7:49:40 PM4/16/16
to Phusion Passenger Discussions
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.

Tag Charlie

unread,
Apr 16, 2016, 7:52:33 PM4/16/16
to Phusion Passenger Discussions
It works fine when I install passenger via gem. 
But I get error like this if I install via yum. 

Tag Charlie於 2016年4月17日星期日 UTC+8上午7時49分40秒寫道:

Daniel Knoppel

unread,
Apr 18, 2016, 5:25:29 AM4/18/16
to Phusion Passenger Discussions

>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

Tag Charlie

unread,
Apr 18, 2016, 5:29:12 AM4/18/16
to Phusion Passenger Discussions
Where should I set the PATH?   The passenger is installed via rpm(YUM).  I cannot find a place to set up PATH :(

Daniel Knoppel於 2016年4月18日星期一 UTC+8下午5時25分29秒寫道:

Daniel Knoppel

unread,
Apr 18, 2016, 5:54:02 AM4/18/16
to Phusion Passenger Discussions
How do you run it? Standalone? Nginx? Apache?

- Daniel

Tag Charlie

unread,
Apr 18, 2016, 6:03:33 AM4/18/16
to Phusion Passenger Discussions
Nginx, CentOS7

Daniel Knoppel於 2016年4月18日星期一 UTC+8下午5時54分02秒寫道:

Daniel Knoppel

unread,
Apr 18, 2016, 6:24:47 AM4/18/16
to Phusion Passenger Discussions

Tag Charlie

unread,
Apr 18, 2016, 8:24:05 AM4/18/16
to Phusion Passenger Discussions
Thanks for your help. Is this because I install it via yum ?  I'd better to compile nginx on my own?

Daniel Knoppel於 2016年4月18日星期一 UTC+8下午6時24分47秒寫道:

Daniel Knoppel

unread,
Apr 19, 2016, 4:28:06 AM4/19/16
to Phusion Passenger Discussions
No, the config has nothing to do with the install method. 

- Daniel

Tag Charlie

unread,
Apr 19, 2016, 6:03:48 PM4/19/16
to Phusion Passenger Discussions
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.

Thanks for Daniel's help.

Daniel Knoppel於 2016年4月19日星期二 UTC+8下午4時28分06秒寫道:

Daniel Knoppel

unread,
Apr 20, 2016, 4:41:20 AM4/20/16
to Phusion Passenger Discussions
On Wednesday, April 20, 2016 at 12:03:48 AM UTC+2, Tag Charlie wrote:
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.  

The way Passenger finds nodejs is via the PATH. Like I said if the PATH isn't given to Passenger correctly it will not find important things. The PATH comes through Nginx.
 
So this way it makes my rails project using therubyracer to do the javascript interpreter.

If you don't need it then it's good not to have it in the Gemfile yes.

- Daniel
Reply all
Reply to author
Forward
0 new messages