Conflicting library paths?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Conflicting library paths?

Peter A. Gustafson
Hi,

I'm running on gentoo and it appears there are conflicting libraries
that are causing problems.  I downloaded the binary slicer 3.6.1.

When I run I get an error message which appears to indicate that it is
trying to load the system libitcl3.4 instead of the provided libitcl3.2.
 On the other hand, it appears to use the provided tcl8.4 instead of the
system tcl8.5.

Is my interpretation correct and how would I prevent this?

Thanks,

The error message is below.

$ ./Slicer3
Error: version conflict for package "Tcl": have 8.4, need 8.5
while executing:
package require Itcl;

version conflict for package "Tcl": have 8.4, need 8.5
    while executing
"load /usr/lib64/itcl3.4/libitcl3.4.so Itcl"
    ("package ifneeded" script)
    invoked from within
"package require Itcl"Error: slicer requires the Itcl package (package
require Itcl;)

Launch
/home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/bin/Slicer3-real
returned with error: child process exited abnormally


_______________________________________________
slicer-users mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-users
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
Reply | Threaded
Open this post in threaded view
|

Re: Conflicting library paths?

pieper
Administrator
Hi Peter -

Slicer's launcher [1] should be setting up the paths to point to the
provided versions - both tcl and incr tcl.  To see what paths are passed
you can run this command to start a shell with the slicer paths:

   ./Slicer3 --launch xterm

then in the new window run:

   env | grep tcl

to see what is configured.  The output below is what I get on a ubuntu
10.10 system.

HTH,
Steve


[1] http://www.slicer.org/slicerWiki/index.php/Slicer3:Launcher


pieper@pieper-laptop:~/downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64$
env | grep tcl
LD_LIBRARY_PATH=::/usr/sfw/lib/64:/usr/X11/lib/64:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/Slicer3/Modules:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/Slicer3/Plugins:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/Slicer3:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/qMRMLWidgets:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/qVTKWidgets:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/qCTKWidgets:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/vtkTeem:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/vtkITK:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/tclap:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/SlicerIO:/home/pieper/Downloads/slicer/Slicer3-3.6.1-
2010-08-23-linux-x86_64/lib/FileWatcher:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/RemoteIO:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/Qdec:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/MRMLIDImageIO:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/ModuleDescriptionParser:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/MRMLCLI:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/MRML:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/MGHImageIO:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/LoadableModule:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/ITKCommandIO:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/IGT:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/FreeSurfer:/home/pieper/Downloads/slicer/Slicer3-3
.6.1-2010-08-23-linux-x86_64/lib/Python/lib:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/vtk-5.6:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/Teem-1.11.0:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/itk3.2:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/itcl3.2:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/InsightToolkit:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/bmModuleDescriptionParser:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/BatchMake:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/OpenIGTLink:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/Qt:/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/KWWidgets:/home/pieper/
Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/bin:

TCL_LIBRARY=/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/tcl8.4
TCLLIBPATH=/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/blt2.4
/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/iwidgets4.0.1
/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/itk3.2
/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/itcl3.2
/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/Base/Wrapping/Tcl/vtkSlicerBase
/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/KWWidgets/Wrapping/Tcl
/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/vtk-5.6/Wrapping/Tcl

tclap_DIR=/home/pieper/Downloads/slicer/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/tclap


On 09/26/2010 09:11 PM, Peter A. Gustafson wrote:

> Hi,
>
> I'm running on gentoo and it appears there are conflicting libraries
> that are causing problems.  I downloaded the binary slicer 3.6.1.
>
> When I run I get an error message which appears to indicate that it is
> trying to load the system libitcl3.4 instead of the provided libitcl3.2.
>   On the other hand, it appears to use the provided tcl8.4 instead of the
> system tcl8.5.
>
> Is my interpretation correct and how would I prevent this?
>
> Thanks,
>
> The error message is below.
>
> $ ./Slicer3
> Error: version conflict for package "Tcl": have 8.4, need 8.5
> while executing:
> package require Itcl;
>
> version conflict for package "Tcl": have 8.4, need 8.5
>      while executing
> "load /usr/lib64/itcl3.4/libitcl3.4.so Itcl"
>      ("package ifneeded" script)
>      invoked from within
> "package require Itcl"Error: slicer requires the Itcl package (package
> require Itcl;)
>
> Launch
> /home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/bin/Slicer3-real
> returned with error: child process exited abnormally
>
>
> _______________________________________________
> slicer-users mailing list
> [hidden email]
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-users
> To unsubscribe: send email to [hidden email] with unsubscribe as the subject
_______________________________________________
slicer-users mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-users
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
Reply | Threaded
Open this post in threaded view
|

Re: Conflicting library paths?

Peter A. Gustafson
Hi Steve,

I was in the top level directory.

Deeper inspection finds that simply unsetting my system TCLLIBPATH
allowed slicer3 to start.  That variable was set to /usr/lib64 in my
default environment (for opencascade).  Thus, that value ended up at the
end of the path specified by TCLLIBPATH.

It is still not clear (to me) why /usr/lib64/itcl3.4/libitcl3.4.so was
picked up before
/home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/itk3.2.

Thanks again,
Pete

PS It appears I went off-list with my first reply, thus your response
was off list too.  This message circles back to the users list.  Sorry
to all.


On 09/27/2010 05:07 PM, Steve Pieper wrote:

> Hi Pete -
>
> That is weird - Are you running Slicer3 from the toplevel or
> bin/Slicer3-real directly?
>
> The launcher (toplevel Slicer3) should be setting all those things for
> you...  maybe when it starts a shell the variables are overwritten by
> something in your shell's startup script?  Grepping for ITCL_LIBRARY in
> your home directory and in /etc might dig up what is going on....
>
> Best,
> Steve
>
>
> On 09/27/2010 04:47 PM, Peter A. Gustafson wrote:
>> Steve,
>> Thanks for your reply.  I see a couple of differences.
>>
>> 1) Nothing is set for LD_LIBRARY_PATH in my env.
>> 2) An additional variable is defined ITCL_LIBRARY (not present in your
>> env)
>> 3) my TCLLIBPATH had /usr/lib64 at the end, whereas your's did not
>>
>> To get ./bin/slicer3-real to work, I had to create redefine the
>> LD_LIBRARY_PATH and TCLLIBPATH variables as equivalent to yours.
>> Everything seemed to work after that (it launched but I didn't test
>> thoroughly).
>>
>> I'm happy now because it works... but why did this happen?  I'm willing
>> to help diagnose... but don't know how much help I can be.
>>
>> Thanks again,
>> Pete
>>
>> PS Below is my env.
>>
>> TCL_LIBRARY=/home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/tcl8.4
>>
>> TCLLIBPATH=/home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/blt2.4
>>
>> /home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/iwidgets4.0.1
>>
>> /home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/itk3.2
>>
>> /home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/TclTk/lib/itcl3.2
>>
>> /home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/Base/Wrapping/Tcl/vtkSlicerBase
>>
>> /home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/KWWidgets/Wrapping/Tcl
>>
>> /home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/vtk-5.6/Wrapping/Tcl
>>
>> /usr/lib64
>> tclap_DIR=/home/pete/software/Slicer3-3.6.1-2010-08-23-linux-x86_64/lib/tclap
>>
>> ITCL_LIBRARY=/usr/lib64/itcl3.4
>>
_______________________________________________
slicer-users mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-users
To unsubscribe: send email to [hidden email] with unsubscribe as the subject