tclstub issue while using homebrew to install graphviz

前端 未结 2 1060
青春惊慌失措
青春惊慌失措 2020-12-18 08:57

Homebrew quits when trying to install graphviz,

CCLD   libtcldot_builtin.la
ld: library not found for -ltclstub8.6
clang: error: linker command failed with e         


        
相关标签:
2条回答
  • 2020-12-18 09:36

    Following the answer in here, it seems like

    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
    

    does the trick. The last two linking where done as suggested here. I hope this helps other folks.

    0 讨论(0)
  • 2020-12-18 09:51

    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
    
    0 讨论(0)
提交回复
热议问题