试图安装rails-EISDIR错误

时间:2012-05-22 20:10:29

标签: ruby-on-rails ruby

我是编程的新手,我正在尝试使用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>'

1 个答案:

答案 0 :(得分:2)

/Users/CZom/.gemrc应该是在执行gem命令时加载的用户特定配置文件。听起来像你的情况,它是一个目录。因此Rubygems抱怨。

如果不需要,请尝试重命名/Users/CZom/.gemrc或将其彻底删除。