Java Mapscript no lib found

Umberto Nicoletti umberto.nicoletti at GMAIL.COM
Thu Feb 2 05:09:10 EST 2006


Are you using 64bit version of the OS? If  yes did you recompile
mapserver or just copied it over?

Try to give the -r option to ldd.

Umberto

On 2/2/06, Oliver Lichte <lichte at icbm.de> wrote:
> Hi group,
>
> I've got a problem using Java mapscript V4.6.2 on a 64bit machine (AMD
> Opteron) and SuSE 10.0, since the JNI libmapscript.so is not found although
> it's there. On a 32Bit machine everything works fine with the same OS, Java
> and Mapserver set-ups, so the problem might concern the architecture. Has
> anyone solved a similiar problem before? Who can help me?
>
> My environment:
> make test in 'mapscript/java' shows:
>
> > make test
>
> javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java
> java -classpath ./:examples/:./mapscript.jar -Djava.library.path=.
> DumpShp ../../tests/point.shp
> java.lang.UnsatisfiedLinkError: /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so: /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so:
> cannot open shared object file: No such file or directory
> make: *** [test] Fehler 255
>
>
> The lib is present at the requested path in directory and permissions are o.k:
>
> > ls -l /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so
> -rwxr-xr-x  1 olichte impulse 1067739 2006-02-02
> 09:55 /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so*
>
> and all shared-libs are resolved, too:
>
> > ldd libmapscript.so
>         libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aaaaacb5000)
>         libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aaaaae09000)
>         libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aaaaaf2a000)
>         libpng.so.3 => /usr/lib64/libpng.so.3 (0x00002aaaab0a5000)
>         libz.so.1 => /lib64/libz.so.1 (0x00002aaaab1df000)
>         libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00002aaaab2f4000)
>         libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaab44c000)
>         libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aaaab5a4000)
>         libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaab7a0000)
>         libXpm.so.4 => /usr/X11R6/lib64/libXpm.so.4 (0x00002aaaab9cb000)
>         libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002aaaabae2000)
>         libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1
> (0x00002aaaabcf1000)
>         libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aaaabe30000)
>         libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aaaabf6a000)
>         /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
>         libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00002aaaac077000)
>         libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaac188000)
>         libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x00002aaaac28c000)
>
> My architecture is:
>
> > uname -a
> Linux labrador 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 x86_64 x86_64
> x86_64 GNU/Linux
>
> > java -version
> java version "1.4.2_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
> Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
>
>
> Thank you and cheers,
> Oliver
>
>
> --
> Junior Research Group IMPULSE
> ICBM * Carl-v.-Ossietzky University of Oldenburg
> PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse
> room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404
>



More information about the mapserver-users mailing list