已安装,只是未链接 [英] Installed, just not linked
问题描述
注意:我不太擅长使用shell.
Note: I'm not so good at using shell.
我试图在优胜美地上使用brew
安装Valgrind
.
I was trying to install Valgrind
using brew
on Yosemite.
brew install --HEAD valgrind
最后,我遇到了与链接有关的错误,因此当我尝试重新安装时,我得到了:
Towards the end, I got an error having to do with linking so when I tried to reinstall, I got:
警告:已安装valgrind-HEAD,但尚未链接
Warning: valgrind-HEAD already installed, it's just not linked
显然,我已经安装了它.然后根据其他SO问题和答案,我尝试了:
So apparently I've already installed it. Then based on other SO questions and answers, I tried:
brew link valgrind
这似乎解决了其他人链接已安装软件的问题,但这给了我一个错误:
This seemed to solve other people's problems with linking an already installed software but this gave me an error:
Linking /usr/local/Cellar/valgrind/HEAD...
Error: Could not symlink lib/pkgconfig/valgrind.pc
/usr/local/lib/pkgconfig is not writable.
我也尝试更新brew
,但没有解决问题.如果它不是可写的,也许sudo
会给我许可,但是我不想在不完全知道自己在做什么的情况下使用sudo
.
I also tried to update brew
but it didn't solve the issue. If it is not writable, maybe sudo
would give me permission but I don't want to use sudo
without knowing exactly what I am doing.
发生了什么以及如何解决?
What is happening and how to I fix it?
推荐答案
看起来像是权限问题.我会尝试这样做
Looks like a permission issue. I would try doing this
chmod 755 /usr/local/lib/pkgconfig
这应该使它可用,然后尝试
This should make that available, then try
brew link valgrind
如果这不起作用,我会尝试对其进行检查
If that doesn't work I would try doing a check on it
brew doctor
这篇关于已安装,只是未链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!