Can't find a usable init.tcl and conflict version tcl

I just downloaded the linux version of this software () after unpacking the file I run sudo bash install.sh and all the dependencies were installed on my ubuntu 18.04 however when I try to run the test file using simpson test.in it gives me the following errors

SIMPSON is unable to initialize Tcl interpreter. Is init.tcl on your path?
Error: Can't find a usable init.tcl in the following directories: /usr/share/simpson/tcl8.6 /usr/share/tcltk/tcl8.6 ./lib/tcl8.6 ./lib/tcl8.6 ./library ./library ./tcl8.6.5/library ./tcl8.6.5/library
/usr/share/tcltk/tcl8.6/init.tcl: version conflict for package "Tcl": have 8.6.5, need exactly 8.6.8
version conflict for package "Tcl": have 8.6.5, need exactly 8.6.8 while executing
"package require -exact Tcl 8.6.8" (file "/usr/share/tcltk/tcl8.6/init.tcl" line 19) invoked from within
"source /usr/share/tcltk/tcl8.6/init.tcl" ("uplevel" body line 1) invoked from within
"uplevel #0 [list source $tclfile]"

Can anyone help me with this? I guess it should be simple but I'm a noob at this stuff

3

2 Answers

I think the issue is that the simpson installer is bundled with its own (out of date) versions of libtcl8.6.so (among other shared libraries) which conflicts with the "system" version.

What I'd suggest is installing ALL of the relevant packages (FFTW, BLAS etc.) from the Ubuntu repos and then commenting out the TCL_LIBRARY and LD_LIBRARY_PATH exports in the <bindir>/simpson wrapper script, where <bindir> is the location you supplied to the installer script - so that the bundled libs are ignored altogether.

So for example if <bindir> is ~/bin, then ~/bin/simpson should look something like

#!/bin/sh
#export TCL_LIBRARY=/home/steeldriver/share/tcl8.6
#export LD_LIBRARY_PATH=/home/steeldriver/share
/home/steeldriver/share/simpson4.2.1 "$@"
3

I had the same problem and I wanted to quickly update this thread with how I solved it: You were right, SIMPSON comes with its own shared tcl library which is the problem. The file was called libtcl8.6.so, which was for me in the folder /usr/share/simpson. I simply deleted that file and it worked.

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like