我正在尝试启动一个使用rubygems的heroku console,但我一直收到此错误:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:471:in `expand_path': No such file or directory - getcwd (Errno::ENOENT)
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:471:in `find_files'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:470:in `map'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:470:in `find_files'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1103
    from /usr/bin/heroku:9:in `require'
    from /usr/bin/heroku:9

我正在使用Mac OS Lion 10.7.3。有想法该怎么解决这个吗?谢谢!

最佳答案

我也遇到了同样的问题。...运行sudo gem update --system解决了该问题。

关于macos - Mac Os Lion上的rubygems的“No such file or directory - getcwd”错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9243548/

10-12 19:03