新手问题 ubuntu12.04 装 passenger 的方法和以前不一样了吗?

QueXuQ · October 28, 2012 · Last by edokeh replied at January 12, 2013 · 4291 hits
deploy@linode:~$ gem install passenger
Successfully installed passenger-3.0.17
1 gem installed
Installing ri documentation for passenger-3.0.17...
Installing RDoc documentation for passenger-3.0.17...
deploy@linode:~$ rvmsudo passenger-install-nginx-module
sudo: passenger-install-nginx-module: command not found

我这样子安装,以前都是没有问题的。现在怎么不可以了呢? wiki 还是这样,请问有人最近安过 passenger 吗?

不是直接sudo passenger-install-nginx-module就 OK 了么

#1 楼 @oran 恩。官网上是这样说的,可是这个站点的 wiki 上是写用rvmsudo passenger-install-nginx-module,我以前也是用这条命令装的。 http://ruby-china.org/wiki/rvm-guide 不知道两者有什么区别?

诡异,这样也可以不哦。。。

deploy@linode:~$ gem install passenger
Successfully installed passenger-3.0.17
1 gem installed
Installing ri documentation for passenger-3.0.17...
Installing RDoc documentation for passenger-3.0.17...
deploy@linode:~$ sudo passenger-install-nginx-module
sudo: passenger-install-nginx-module: command not found
rvm get latest
rvm reload

The rvmsudo command was available after that.

#3 楼 @QueXuQ 您好 我也碰到同样的问题,请问您的问题解决了吗?

#5 楼 @Benuofi 4 楼的方法可以用的,顺利解决。

#6 楼 @QueXuQ 多谢回复 已经解决~

如果 4 楼的方法不好使 可以尝试一下 rvmsudo passenger-install-nginx-module

#8 楼 @goodboyRyan The rvmsudo command was available after that.现在的 rvm 版本要先运行了 4 楼的两行命令后,才可以rvmsudo passenger-install-nginx-module

$which passenger-install-nginx-module $/home/ryan/.rvm/gems/[email protected]/bin/passenger-install-nginx-module $rvmsudo ~/.rvm/gems/[email protected]/bin/passenger-install-nginx-module 重装之后发现命令还是不好用,用上面的解决我的问题 以下是参考链接 http://stackoverflow.com/questions/2225881/passenger-installation-with-nginx-fails http://stackoverflow.com/questions/2225881/passenger-installation-with-nginx-fails

突然发现有人跟我一样,其实这是 rvm 的 BUG https://github.com/wayneeseguin/rvm/issues/1329 解决办法是,要么再等几天 rvm 1,18 发布,要么用 1.16 版本或者 head 版 http://stackoverflow.com/questions/13544939/sudo-rvm-command-not-found-rvm-multiuser-install-on-ubuntu-12-04-server

You need to Sign in before reply, if you don't have an account, please Sign up first.