我整个晚上都在Mac终端窗口看了这个问题。我在使用&brew安装optipng'安装optipng时遇到了困难。在我的Mac上。
以下是来自终端的日志< brew install optipng'
==> Downloading https://downloads.sourceforge.net/project/optipng/OptiPNG/optipn
Already downloaded: /Library/Caches/Homebrew/optipng-0.7.5.tar.gz
==> ./configure --with-system-zlib --prefix=/usr/local/Cellar/optipng/0.7.5 --ma
==> make install
_main in optipng.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [optipng] Error 1
make: *** [install] Error 2
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
当然,我按照github的链接,尝试与brew医生,brew医生建议的指示,甚至酿造更新。
我将在这里提供一些来自brew医生的警告,如果需要,我会跟进整个日志(我不想用不必要的信息堵塞帖子)。
Warning: gettext files detected at a system prefix
These files can cause compilation and link failures, especially if they
are compiled with improper architectures. Consider removing these files:
/usr/local/lib/libintl.dylib
Warning: Your XQuartz (2.7.4) is outdated
Please install XQuartz 2.7.5:
https://xquartz.macosforge.org
Warning: Python is installed at /Library/Frameworks/Python.framework
Warning: You have MacPorts or Fink installed:
/opt/local/bin/port
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
非常感谢任何帮助。
由于
答案 0 :(得分:0)
这个对我来说真的很令人沮丧,但我设法解决了自制医生的问题,继承人如何:
我安装了多个版本的Python,所以我继续使用以下内容删除了这个版本:
sudo rm -rf /Library/Frameworks/Python.framework
这个问题要困难得多,我的Macports有一个PATH问题,所以我不得不用终端添加它所在的路径,然后从那里删除它。
我在终端上用rm删除了这些。
删除。
如果我没弄错的话,我确实在这里酿造了李子。
还有所有PATH文件中的权限从root更改为我。
这样做后optipng安装得很好。