Re: [tcljava-user] tclblend execution problem on linux
Brought to you by:
mdejong
From: Mo D. <md...@un...> - 2006-01-26 04:03:35
|
On Wed, 25 Jan 2006 14:07:49 -0500 Will Zapar <wa...@gm...> wrote: > Mo, > > I am having problems getting tclblend working on linux. I have installed > tclblend and everything looks ok, but when I attempt to run my tcl script I > get the following error: > > -bash-2.05b$ cdv.tcl > "XpUtils::iload -d /opt/tclBlend1.3.2 tclblend" failed: > java.lang.UnsatisfiedLinkError: no tclblend in java.library.path That is a strange one. I think the only way this error can show up is if the tclblend.so is loaded, but the JVM can't read the symbols for some reason. First off, did you pass a --prefix=/somedir/whereit/should/go type of directory name to the configure script? I have seen some problems that may be the result of trying to use the default --prefix. Also, this might be a silly question but you did compiled with gcc and not g++ right, if you used a c++ compiler it might mangle the symbols in some funky way. If you did pass a --prefix to configure, then what happens if you run "make test" from the build dir where you built Tcl Blend? Do the test cases pass when run in the build directory? If you can't get Tcl Blend running in the build directory then it is likely that one of the shared libraries it needs does not appear on the runtime path. This tends to be caused by changes to the JDK layout which seem to show up with every new release. The configure script may not know how to find a runtime library that is needed. You could try running "make shell" from the Tcl Blend build dir and then run "ldd tclblend.so" to see if it prints any missing shared library deps. Running "make shell" like that will set the LD_LIBRARY_PATH to the runtime paths defined in the Makefile. If you are able to identify a shared lib dir that needs to be added to the runtime path or a shared library that needs to be linked to, then the way to fix it is in the configure script. If that seems to scary just post a diff of the Makefile before and after your changes and I will fixup the configure script. There are some other things you could try if none of this works, but that should at least give you something to try next. Also, see the recent posts on this list about gcc 4 not compiling Tcl Blend correctly. I hope that helps Mo DeJong |