0

我通过这个方便的方法将 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),所以如果有其他方法,请让我知道!

4

1 回答 1

3

抱歉,小教程被严重破坏了......

简而言之:

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

让我知道这是否有帮助。

于 2012-04-02T17:47:32.983 回答