On Wed, Oct 16, 2013 at 9:05 AM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com>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
Cheers
Andrea
--
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------