Homebrew在尝试安装graphviz时退出,
CCLD libtcldot_builtin.la
ld: library not found for -ltclstub8.6
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [libtcldot.la] Error 1
make[4]: *** Waiting for unfinished jobs....
ld: library not found for -ltclstub8.6
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [libtcldot_builtin.la] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
问题似乎是这个特定的库不是机器上安装的库,
/System/Library/Frameworks/Tcl.framework/Versions/8.4/libtclstub8.4.a
/System/Library/Frameworks/Tcl.framework/Versions/8.5/libtclstub8.5.a
/System/Library/Frameworks/Tcl.framework/libtclstub8.5.a
/usr/lib/libtclstub8.5.a
它看起来像网络,就像有相当多的人在尝试使用自制软件安装graphviz时遇到麻烦。然而,解决方案似乎对我不起作用。
答案 0 :(得分:3)
这个包似乎最近搬了过来:
brew install homebrew/dupes/tcl-tk
sudo ln -s /usr/local/Cellar/tcl-tk/8.6.0/lib/libtcl8.6.dylib /usr/local/lib/libtcl8.6.dylib
sudo ln -s /usr/local/Cellar/tcl-tk/8.6.0/lib/libtk8.6.dylib /usr/local/lib/libtk8.6.dylib
sudo ln -s /usr/lib/libtclstub8.5.a /usr/lib/libtclstub8.6.a
sudo ln -s /usr/lib/libtkstub8.5.a /usr/lib/libtkstub8.6.a
brew reinstall graphviz
答案 1 :(得分:2)
在here中回答,似乎是
remove tcl-tk
brew -v install tcl-tk --with-tk
sudo ln -s /usr/local/Cellar/tcl-tk/8.6.0/lib/libtcl8.6.dylib /usr/local/lib/libtcl8.6.dylib
sudo ln -s /usr/local/Cellar/tcl-tk/8.6.0/lib/libtk8.6.dylib /usr/local/lib/libtk8.6.dylib
sudo ln -s /usr/lib/libtclstub8.5.a /usr/lib/libtclstub8.6.a
sudo ln -s /usr/lib/libtkstub8.5.a /usr/lib/libtkstub8.6.a
brew update
brew upgrade
brew -v reinstall graphviz
诀窍。最后两个链接按建议here完成。我希望这有助于其他人。