4

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 时遇到麻烦。然而,那里的解决方案似乎对我不起作用。

4

2 回答 2

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
于 2013-11-06T02:13:18.183 回答
2

按照这里的答案,似乎

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

成功了。最后两个链接按照此处的建议完成。我希望这对其他人有所帮助。

于 2013-09-03T14:37:11.370 回答