使用RVM时如何安装Passenger?
我正在使用 RVM 并且想要安装 雪豹上的 Phusion 乘客。安装 Passenger gem(版本 2.2.15)后,我尝试运行 Apache 模块安装程序脚本 passenger-install-apache2-module
。但遗憾的是它找不到 rake:
...
* RubyGems...发现
* Rake...未找到
* 架子...找到
...
已有错误报告在乘客论坛上对此,但除了告诉我等待乘客 3 之外,似乎没有任何解决方案(符号链接 /usr/bin/rake 对我来说不起作用)
有人知道吗有没有一种方法可以解决这个问题,只是为了安装 Apache 模块? 一旦安装,我想脚本是否可以找到 rake 并不重要。
只是我的环境的一些规格:
$ 红宝石
/Users/watson/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby$ ruby -v
ruby 1.8.7(2010-04-19 补丁级别 253)[i686-darwin10.4.0],MBARI 0x6770,Ruby 企业版 2010.02$ 耙子
/Users/watson/.rvm/gems/ree-1.8.7-2010.02@global/bin/rake$ 耙子-V
耙子,版本0.8.7$ 回显 $PATH
/Users/watson/.rvm/gems/ree-1.8.7-2010.02@rails235/bin:/Users/watson/.rvm/gems/ree-1.8.7-2010.02@global/bin:/Users/watson/。 rvm/rubies/ree-1.8.7-2010.02/bin:/Users/watson/.rvm/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/ sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/opt/local/lib/postgresql84/bin
I'm using RVM and would like to install Phusion Passenger on Snow Leopard. After installing the Passenger gem (version 2.2.15) I try run the Apache module installer script passenger-install-apache2-module
. But it compains that it can't find rake:
...
* RubyGems... found
* Rake... not found
* rack... found
...
There is already a bug-report for this on the passenger forum, but besides telling me to wait for Passenger 3, there doesn't seem to be any solution (symlinking /usr/bin/rake doesn't do the trick for me)
Does anybody know of a way to hack around this just to get the Apache module installed? Once installed I imagine it doesn't matter if the script can find rake or not.
Just some specs on my env:
$ which ruby
/Users/watson/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby$ ruby -v
ruby 1.8.7 (2010-04-19 patchlevel 253) [i686-darwin10.4.0], MBARI 0x6770, Ruby Enterprise Edition 2010.02$ which rake
/Users/watson/.rvm/gems/ree-1.8.7-2010.02@global/bin/rake$ rake -V
rake, version 0.8.7$ echo $PATH
/Users/watson/.rvm/gems/ree-1.8.7-2010.02@rails235/bin:/Users/watson/.rvm/gems/ree-1.8.7-2010.02@global/bin:/Users/watson/.rvm/rubies/ree-1.8.7-2010.02/bin:/Users/watson/.rvm/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/opt/local/lib/postgresql84/bin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能够通过使用“passenger-install-apache2-module”而不是“sudo Passenger-install-apache2-module”来克服这个问题
这是一些背景信息 -
http://groups.google.com/group/phusion -passenger/browse_thread/thread/a7de8a0a3e4bac21?pli=1
I was able to overcome this by using "passenger-install-apache2-module" rather than "sudo passenger-install-apache2-module"
Here's some background info-
http://groups.google.com/group/phusion-passenger/browse_thread/thread/a7de8a0a3e4bac21?pli=1