How to get Ruby / Homebrew / RVM to work on Yosemite?

前端 未结 11 1879
自闭症患者
自闭症患者 2020-11-30 19:32

After installing Yosemite, I was unable to run brew or ruby.

I was getting this error on brew update:

/usr/local/bin/brew: /usr/local/Library/brew.r         


        
11条回答
  •  旧巷少年郎
    2020-11-30 19:43

    This error can easily be fixed in the following steps:

    1) Open terminal

    2) Type nano /usr/local/Library/brew.rb

    3) In the first line change “1.8″ to “Current”, so it should look like this:

    #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0
    

    via http://blog.ic3man.gr/2014/06/homebrew-ruby-bad-interpreter-no-such-file-or-directory/

提交回复
热议问题