朱莉娅:安装Winston错误需要tk8.6

时间:2014-08-19 07:54:01

标签: julia

我在安装Winston for Julia软件包时遇到错误= ERROR: TclError("error initializing Tk: version conflict for package \"Tcl\": have 8.5.15, need 8.6")

这是我的堆栈跟踪

 julia> using Winston
    ERROR: TclError("error initializing Tk: version conflict for package \"Tcl\": have 8.5.15, need 8.6")
     in init at /home/laptop/.julia/v0.2/Tk/src/tkwidget.jl:61
     in include at boot.jl:238
     in include_from_node1 at loading.jl:114
     in include at boot.jl:238
     in include_from_node1 at loading.jl:114
     in reload_path at loading.jl:140
     in _require at loading.jl:58
     in require at loading.jl:46
     in include at boot.jl:238
     in include_from_node1 at loading.jl:114
     in include at boot.jl:238
     in include_from_node1 at loading.jl:114
     in reload_path at loading.jl:140
     in _require at loading.jl:58
     in require at loading.jl:43
    at /home/laptop/.julia/v0.2/Tk/src/tkwidget.jl:452
    at /home/laptop/.julia/v0.2/Tk/src/Tk.jl:25
    at /home/laptop/.julia/v0.2/Winston/src/tk.jl:1
    at /home/laptop/.julia/v0.2/Winston/src/Winston.jl:2699

ubuntu 14.04 我自动移动了朱莉娅并将其重新安装,但错误仍然存​​在。

1 个答案:

答案 0 :(得分:2)

我遇到了同样的问题,发现我的系统上安装了8.5和8.6,安装程序设法使用了错误的库。 (已经is a bug filed against Tk.jl for this。)

文件名在deps.jl目录下的某个路径中的名为~/.julia的文件中进行了硬编码。运行

sed -i -re 's#libtcl8.5.so#libtcl8.6.so#' ~/.julia/v0.3/Tk/deps/deps.jl

改变Julia的配置文件应该可以解决问题。