美文网首页
homebrew 无法安装

homebrew 无法安装

作者: Akatsuki101 | 来源:发表于2015-04-10 16:06 被阅读135次

    最近Mac OSX 升级至10.10之后 homebrew 无法使用,在终端下面报错

    解决办法:

    After installing 10.10 DP1 Yosemite (yeah I couldn’t resist the temptation) homebrew gave me the following error:

    /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory

    This error can easily be fixed in the following steps:

    1) Open terminal

    2) 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

    echo  command script import /usr/local/Cellar/chisel/1.0.0/libexec/fblldb.py >> ~/.lldbinit

    Cheers~

    相关文章

      网友评论

          本文标题:homebrew 无法安装

          本文链接:https://www.haomeiwen.com/subject/cmzwtttx.html