On Mon, Nov 14, 2011 at 11:50 AM, Francesco Izzi
<[email protected]>wrote:

> Hi Andrea,
>
> i test this in the ubuntu machine i run tomcat with:
>
> CATALINA_OPTS="-server -Xms48m -Xmx1024M -XX:SoftRefLRUPolicyMSPerMB=36000
> -XX:MaxPermSize=128m -XX:+UseParallelGC -Djava.library.path=/usr/bin
> -DGDAL_LIBRARY_NAME=gdal"
>
> but i retrieve this error:
>
> Caused by: java.lang.RuntimeException: Failed to bind to user specified
> gdal library named: gdal
> at org.geotools.data.ogr.GdalInit.init(GdalInit.java:39)
>  at
> org.geotools.data.ogr.OGRDataStoreFactory.<clinit>(OGRDataStoreFactory.java:63)
>
> Some help?
>

Remove the gdal library name, the code should pick it up automatically.
On linux the library names contains also the version, so if you want to
specify it manually
you should add it.
Example, on my system I have:
/usr/lib/libgdal1.7.0.so
/usr/lib/libgdal1.8.0.so

-DGDAL_LIBRARY_NAME=libgdal1.8.0

Besides that, I don't know about your system, but on mine librariesare are
not in /usr/bin,
they are in /usr/lib

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to