ruby-on-rails – 尝试安装rails-EISDIR错误

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 尝试安装rails-EISDIR错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我是编程的新手,我正在尝试使用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>'

解决方法

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

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

猜你在找的Ruby相关文章