|
|
Linux: 'Could not load library pano12' |
This email was just rewritten: initially I was planning to ask for help
running PanoTools for Linux because whatever I tried I always got
Could not load library pano12
when I ran
java -jar ptpicker.jar
Only a few seconds ago (but many hours of searching Google and downloading
various versions of libpano12.so and ptpicker.jar later) I found that all I
needed to do was run (as root)
/sbin/ldconfig
after copying libpano12.so to /usr/local/lib. Fairly obvious and although I
briefly wondered if simply copying the file was enough the instructions I
found all suggested that this was the only step involved so I did not search
in this direction. Perhaps you can include this in the Linux installation FAQ?
Regards,
Pybe2002-Jul-14 11:55 address-suppressed | |
| Hi there, We still get the same error even after installing libpano12.so into /lib, /usr/lib and /usr/local/lib and running /sbin/ldconfig. Any more suggestions!?! Cheers, E. | |
| I had the same problem after trying ldconfig and setting LD_LIBRARY_PATH. After a while I thought that the problem was not with the java file finding the library, rather that the library had some dependencies. So I tried the following $ ldd /usr/lib/libpano12.so libm.so.6 => /lib/i686/libm.so.6 (0x40045000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40068000)
libtiff.so.3 => /usr/lib/libtiff.so.3 (0x40089000)
libpng.so.2 => not found
libc.so.6 => /lib/i686/libc.so.6 (0x400cd000)
libz.so.1 => /lib/libz.so.1 (0x401ed000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
In my case I was missing the library libpng.so.2. My distribution (Mandrake 9.0) did not contain this file, but a later version, 3.1.2.4, so I created (as root) a link:
ln -s /usr/lib/libpng.so.3.1.2.4 /usr/lib/libpng.so.2and now it seems to work. Hope this works /Peter | |
| I tried the above, but there were no missing dependencies.Only did ldd not ask for a libpng. All the others were found, but still the same 'could not load library pano12'
I used the libpano from the update LINUX
more suggestions?
Rik
| |
| I also got the error "Could not load library pano12". I've already copied the libpano12.so to /usr/local/lib and executed /sbin/ldconfig (no need to say that /usr/local/lib is in ld.so.conf).
Next I checked the dependences of libpano12.so with "ldd". So I found that I need to make a link of libm.so.5 that points to /lib/libm.so.6. After running ldconfig I still got the same error.
Finally I checked with strace what goes wrong:
strace java -jar ptpicker.jar 2> debug.txt
The Library wasn't ever search in the ld.so.conf specified path but in the library path of the Java runtime enviroment ($JAVA_HOME/lib/i386). So I put a link into $JAVA_HOME/lib/i386/libpano12.so that point to my old /usr/local/lib/libpano12.so that is used by the native parts of PanoTools.
| |
| [Append to This Answer] | |
| 2003-Aug-07 16:45 |
| Previous: |
|
| ||||||||