Passenger installation with nginx fails

2019-02-02 07:37发布

I'm running an ubuntu 9.10 server on an amd-64 platform. Everything's pretty much standard, and I've got Sinatra 0.94 running on a ruby 1.8 installation. I want to install passenger in order to easily configure ssl.

The problem is, it fails to find the installer.

I run

sudo gem install passenger

or

sudo gem install -r passenger

and then the next line,

passenger-install-nginx-module

or

passenger-install-apache2-module

both fail because the path isn't found.

Is there something I'm forgetting here? Shouldn't it just work, straight up, once the gem is installed?

7条回答
小情绪 Triste *
2楼-- · 2019-02-02 08:14

I had a similar issue. You need to add gems to your system PATH, paste this into your shell:

export PATH=$PATH:$HOME/bin:/var/lib/gems/1.8/bin

or, to make it permanent add it to your bashrc, usually here: ~/.bashrc

You can also execute just passenger-install-nginx-module by going to the directory at: /var/lib/gems/1.8/bin

Good luck!

查看更多
登录 后发表回答