Thank you Andrea for a proper answer.
But still a one more question. Is it totally waste of time to install this
extra libjpeg-turbo at all, when talking about Ubuntu 12.04 and 12.04 server?
Is the libjpeg-turbo, that comes with Ubuntu, automatically used in Geoserver,
without installing extra native lib and snapshot files??? I am not a Linux
guru, but I have used Ubuntu for 5 years daily.
Oiva
________________________________
Lähettäjä: [email protected] [[email protected]] käyttäjän Daniele
Romagnoli [[email protected]] puolesta
Lähetetty: 16. lokakuuta 2013 11:25
Vastaanottaja: Andrea Aime
Kopio: Hakala Oiva (MTT); GeoServer Mailing List List
Aihe: Re: [Geoserver-users] Installing turbo-jpeg library?
On Wed, Oct 16, 2013 at 10:20 AM, Andrea Aime
<[email protected]<mailto:[email protected]>> wrote:
On Wed, Oct 16, 2013 at 9:05 AM, Hakala Oiva (MTT)
<[email protected]<mailto:[email protected]>> wrote:
Sorry.
Still no succes to get libjpeg-turbo working.
I have tried to set LD_LIBRARY_PATH to /opt/libjpeg-turbo,
/opt/libjpeg-turbo/bin and /opt/libjpeg-turbo/lib32. None of them won't help.
Setting LD_LIBRARY_PATH in Ubuntu needs a workaround to get it working due to a
bug, but
I have made that workaround, and also tested that LD_LIBRARY_PATH is valid
(with env command) before I start tomcat7.
So, my conclusion is, that this has not been tested properly there, no exact
path given in documentation. I do not want to waste more time with this,
unless I get a working solution. :(
Hi,
I'm a colleague of Daniele working on Linux.
Never tried out the libjpeg-turbo linux package but tried to follow the
instructions and got things working in 10 minutes, but I
indeed had to overcome an issue.
There is a catch in the instructions that is not clear, most recent Linux
distributions already have libjpegturbo installed, but the
packages stripped the JNI library out of it.
When you install the official package from libjpegturbo, another (more recent)
version of libjpegturbo is installed in /opt as you
said, and so it's mandatory to setup LD_LIBRARY_PATH. The trick is, the new
directory it has to be the first element in the
path, otherwise the system one will be used and the JNI library won't recognize
it (since it's a different version).
So I've modified catalina.sh adding this:
export LD_LIBRARY_PATH=/opt/libjpeg-turbo/lib64:$LD_LIBRARY_PATH
After setting it the logs read:
2013-10-16 10:14:01,701 WARN [turbojpeg.TurboJPEGMapResponse] - The turbo jpeg
encoder is available for usage
One more thing for Daniele, the instruction page should now point to the new
nightly build server,
ares.opengeo.org/geoserver/master<http://ares.opengeo.org/geoserver/master>
Thanks Andrea,
I will update that.
Cheers,
Daniele
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313<tel:%2B39%200584%20962313>
fax: +39 0584 1660272<tel:%2B39%200584%201660272>
mob: +39 339 8844549<tel:%2B39%20%C2%A0339%208844549>
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users