无法在 Snow Leopard 上安装乘客 3(使用 RVM 和 ruby 1.9.2) [英] Can't install passenger 3 on Snow Leopard (with RVM and ruby 1.9.2)
问题描述
我一直在尝试安装乘客,但尚未成功.
I've been trying to install passenger with no success yet.
我已经安装了 gem,但是当我运行时
I've installed the gem, but when I run
passenger-install-apache2-module
它告诉我
This installer must be able to write to the following directory:
/Users/myname/.rvm/gems/ruby-1.9.2-p0/gems/passenger-3.0.0
But it can't do that, because you're running the installer as myname.
Please re-run this installer as root.
但是如果我这样做
sudo passenger-install-apache2-module
我明白
/Users/myname/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:762:in `report_activate_error': Could not find RubyGem passenger (>= 0) (Gem::LoadError)
来自/Users/myname/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:219:in activate'来自/Users/myname/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:1065:in
gem'来自/Users/myname/.rvm/gems/ruby-1.9.2-p0/bin/passenger-install-apache2-module:18:in `'
from /Users/myname/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:219:in activate'
from /Users/myname/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:1065:in
gem'
from /Users/myname/.rvm/gems/ruby-1.9.2-p0/bin/passenger-install-apache2-module:18:in `'
我试图查看这些文件,但不明白出了什么问题.
I've tried to look at those files, but cannot understand what's wrong.
你能帮忙吗?
谢谢,P
推荐答案
实际上,我按照 Shingara 的建议修改了文件夹,并且奏效了.
I actually chmod the folder as Shingara suggested and it worked.
我唯一不明白的是为什么用 sudo 发出命令会导致问题:(
the only thing I can't understand is why issuing the command with sudo lead to problems :(
感谢您的帮助!
这篇关于无法在 Snow Leopard 上安装乘客 3(使用 RVM 和 ruby 1.9.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!