【问题标题】:Permissions error for homebrew 'brew update' on linuxlinux上自制软件“brew update”的权限错误
【发布时间】:2012-04-03 01:47:32
【问题描述】:

我通过这个方便的方法将 Homebrew 移植到 linux 时遇到权限错误: http://blog.frameos.org/2010/11/10/mac-homebrew-ported-to-linux/comment-page-1/#comment-2208

我也遇到了同样的问题:

>  $ brew update –verbose
> 
>  git checkout -q master  fatal: Unable to create
> ‘/opt/homebrew/.git/index.lock’: Permission denied  Error: Failure
> while executing: git checkout -q master

尝试更改“索引”文件的文件权限,但不成功。我的最终目标是能够在我的 Ubuntu 服务器上安装 freetds 和 tinytds(brew install freetds),所以如果有其他方法,请让我知道!

【问题讨论】:

    标签: activerecord homebrew freetds tiny-tds


    【解决方案1】:

    对不起,这个小教程被严重破坏了......

    简而言之:

    sudo apt-get install build-essential
    sudo mkdir /opt/homebrew
    sudo chown `whoami` -R /opt/homebrew
    git clone git://github.com/rubiojr/homebrew.git /opt/homebrew
    

    在与非特权用户一起运行时,您似乎需要修复权限?

    chown -R `whoami` /opt/homebrew
    

    如果有帮助,请告诉我。

    【讨论】:

    • 非常感谢!不过,我仍然无法执行“brew install freetds”,它似乎没有为我同步食谱,我不得不 vim 复制 freetds.rb,因为它不在食谱文件夹中,仅供参考!
    猜你喜欢
    • 2014-10-14
    • 2013-05-30
    • 1970-01-01
    • 2013-05-02
    • 1970-01-01
    • 1970-01-01
    • 2016-09-04
    • 1970-01-01
    相关资源
    最近更新 更多