“No such file or directory - getcwd” error on rubygems on Mac Os Lion

前端 未结 15 1622
逝去的感伤
逝去的感伤 2020-12-08 18:51

I\'m trying to launch a heroku console that uses rubygems but I keep getting this error:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/         


        
15条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 18:59

    In my case, I was in a directory that had "unusual" characters in its name: /Volumes/Members/Finance & Accounting/-MC 2008, 7848/2020.

    And also, I was in a remote directory, as Mac users will recognize.

    I simply did push ~ and ran the command again, then did popd to get back to my remote directory with odd characters in the name.

    It could be that gem is ill-behaved in the face of directory names containing whitespace, or it could be that it doesn't work on networked directories.

    The bash built-in pwd worked just fine in the remote directory with the funny name.

    This whole thing makes me a bit nervous about gem.

提交回复
热议问题