酿造错误:无法符号链接,路径不可写 [英] Brew error: Could not symlink, path is not writable

查看:82
本文介绍了酿造错误:无法符号链接,路径不可写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用 homebrew (brew install aLibrary)安装库时,出现以下错误:

When I try to install a library with homebrew (brew install aLibrary), I got the following error:

Could not symlink lib/pkgconfig/aFile
/usr/local/lib/pkgconfig is not writable.

我该怎么办?

有几个问题和答案( 1 2 等),这是一个尝试按照建议的此处提出一个一般性问题.

There are several questions and answers (1,2,etc.) concerning this brew error, this is an attempt to make a general question as suggested here.

推荐答案

此处所述,brew doctor开始,它将显示您的冲煮设置错误.

Start with brew doctor which will show you errors with your brew setup.

您可能会看到类似这样的信息:警告:/usr/local/lib/pkgconfig不可写."

You might see something like this: "Warning: /usr/local/lib/pkgconfig isn't writable."

它将为您提供以下建议:您可能应该对/usr/local/lib/pkgconfig进行chown".

It will give you the advice that: "You should probably chown /usr/local/lib/pkgconfig".

这意味着:sudo chown -R $(whoami) /usr/local/lib/pkgconfig

然后,您需要使用以下文件链接文件:brew link yourLibrary

Then you will need to link the files with this: brew link yourLibrary

如果希望这样做不起作用,则brew doctor的输出将为您提供足够的继续搜索的机会.

If this does not work hopefully the output of brew doctor will give you enough to continue the search.

这篇关于酿造错误:无法符号链接,路径不可写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆