2

我是编程新手,正在尝试在运行 Snow Leopard 的 Mac 上使用 Michael Hartl 的教程通过终端设置 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>'
4

1 回答 1

2

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

/Users/CZom/.gemrc如果不需要,请尝试重命名或完全删除它。

于 2012-05-22T20:49:16.113 回答