2011-08-23 170 views
1

自从我更新到Mac OSX Lion以来,我还没有能够安装任何Gem。 每次我尝试安装任何gem时,终端窗口都会挂起。 我卸载了一切,包括红宝石,并重新安装Ruby Gems,但没有解决问题。Gem安装错误:NameError

运行后: 创业板安装导轨--debug 我得到这个(仅显示第一行):

Exception `NameError' at /opt/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::InstallCommand 
Exception `LoadError' at /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36 - no such file to load -- psych 
Exception `LoadError' at /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:62 - no such file to load -- psych 
Exception `Errno::EEXIST' at /opt/local/lib/ruby/1.8/fileutils.rb:243 - File exists - /Users/marcogallen/.gem/specs/rubygems.org%80 
Exception `Errno::EEXIST' at /opt/local/lib/ruby/1.8/fileutils.rb:243 - File exists - /Users/marcogallen/.gem/specs/gems.github.com%80 
Exception `EOFError' at /opt/local/lib/ruby/1.8/net/protocol.rb:135 - end of file reached 
Exception `EOFError' at /opt/local/lib/ruby/1.8/net/protocol.rb:120 - end of file reached 
Exception `EOFError' at /opt/local/lib/ruby/1.8/net/http.rb:1060 - end of file reached 

创业板ENV给出了这样的:

RubyGems Environment: 
    - RUBYGEMS VERSION: 1.8.8 
    - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11] 
    - INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8 
    - RUBY EXECUTABLE: /opt/local/bin/ruby 
    - EXECUTABLE DIRECTORY: /opt/local/bin 
    - RUBYGEMS PLATFORMS: 
    - ruby 
    - x86-darwin-11 
    - GEM PATHS: 
    - /opt/local/lib/ruby/gems/1.8 
    - /Users/[user]/.gem/ruby/1.8 
    - GEM CONFIGURATION: 
    - :update_sources => true 
    - :verbose => true 
    - :benchmark => false 
    - :backtrace => false 
    - :bulk_threshold => 1000 
    - :sources => ["http://rubygems.org/", "http://gems.github.com"] 
    - REMOTE SOURCES: 
    - http://rubygems.org/ 
    - http://gems.github.com 

我完全一无所知这里,我希望有人能给我一点暗示或者什么。 MAC PRO预订运行OSX狮子

感谢 马尔科

回答

0

嘿,我有一个非常类似的问题,使用RVM Click here!

我升级到1.9.2红宝石,拥有自己的路为Ruby的每个实例管理Gems并帮助我了解Gem的存储位置等...如果您有阅读,您应该到达那里!

如果没有帮助,我很抱歉,但可能值得一试!

+0

感谢查理可悲的是,这并没有伎俩,我为所有的Ruby和宝石做了全新的安装。 – marcogallen

+0

这就是我所建议的那种!很高兴你到了那里 –