Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

macos - tclstub issue while using homebrew to install graphviz

Homebrew quits when trying to install 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

an issue seems to be that this particular library is not the one installed on the machine,

/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

it looks around the net like a decent amount of people are running into trouble trying to install graphviz with homebrew. There solutions however seem to not work for me.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The package seems to have moved recently:

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...