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

QueXuQ · 2012年10月28日 · 最后由 edokeh 回复于 2013年01月12日 · 4293 次阅读
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

需要 登录 后方可回复, 如果你还没有账号请 注册新账号