我是编程的新手,我正在尝试使用Michael Hartl的教程在运行Snow Leopard的Mac上通过终端设置Ruby on Rails,但我有点卡在这一部分。我试过使用rvm 1.9.2,没有任何运气,并且无法找到任何谷歌搜索。任何帮助将不胜感激!
谢谢!
CZom$ gem install rails -v 3.2.3
/Users/CZom/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:253:in `read': Is a directory - /Users/CZom/.gemrc (Errno::EISDIR)
from /Users/CZom/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:253:in `load_file'
from /Users/CZom/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:191:in `initialize'
from /Users/CZom/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:78:in `new'
from /Users/CZom/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:78:in `do_configuration'
from /Users/CZom/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:51:in `run'
from /Users/CZom/.rvm/rubies/ruby-1.9.3-p194/bin/gem:25:in `<main>'
答案 0 :(得分:2)
/Users/CZom/.gemrc
应该是在执行gem
命令时加载的用户特定配置文件。听起来像你的情况,它是一个目录。因此Rubygems抱怨。
如果不需要,请尝试重命名/Users/CZom/.gemrc
或将其彻底删除。