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

前端 未结 15 1535
逝去的感伤
逝去的感伤 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 19:16

    sudo gem update --system (as Israfil Havilah mentioned) and rebooting the server (Ubuntu 16.04.6 LTS) helped me

    0 讨论(0)
  • 2020-12-08 19:17

    I had the same thing, just type cd in the terminal, then navigate back to where you were and it works.

    0 讨论(0)
  • 2020-12-08 19:17

    This just happened to me while I was running a Sinatra app on my localhost and this is what I found.

    Scenario: I'm using Git as my version control and I switched branches from development to master to merge my branches. After the merge, with an active server running, I made a minor html change which shouldn't have blown up the app and when I went to check the change in my broswer my "request" came back with OP's error - just to note this app isn't deployed to heroku.

    My guess: I'm not familiar with the intricacies of Webbrick (or equivalent programs) but I'm guessing you had an active server running (like me) and it was was looking for specific file(s) in memory and when they were modified on a possible branch change or an important file was modified/deleted - Webbrick freaked out and didn't know where to find it/them and threw up this error.

    I'm not sure what version control you're using but I know git is popular for heroku so I think this might have something to do with your issue.

    Fixing the issue for myself was as simple as restarting the server, hope this helps future trouble shooters.

    0 讨论(0)
提交回复
热议问题