我尝试使用自制安装灵药,我得到了以下错误BREW链接错误的libpng和的libtiff
==> Pouring libtiff-4.0.3.yosemite.bottle.tar.gz
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
文件存在 - 在/ usr/local/lib目录 错误:文件存在 - 在/ usr/local/lib目录
我跑brew doctor
,我看到这个
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
libpng
libtiff
于是我就brew link libpng
,我得到这个
Linking /usr/local/Cellar/libpng/1.6.17... Error: File exists - /usr/local/lib
我不知道什么是错。任何帮助
堆栈溢出有类似的问题,但有不同的包。你有尝试过吗?有些人建议运行“brew link -f libpng”,但你应该调查以确保它不会搞乱你的系统。 –
@JoséValim我已经尝试了其中的几种解决方案,包括上面提到的解决方案。到目前为止没有运气。 –
如何'做brew'卸载libpng'然后'brew install libpng'。对'libtiff'也做同样的事情。你尝试过吗? – Gjaldon