Hi Oliva,
Each native lib package (Windows, Linux, (debian/RPM)) may provide
different final path of installation. Therefore, we didn't provide the
exact path for any different version, even also due to the fact that people
may use a different package and put it on a different location.
Therefore, my suggestion is to check your case and adapt your settings to
your specific needs.

This is what I did on my Ubuntu 11 to simulate your situation.
I have installed tomcat7 on your same exact folder /opt/tomcat7. I have
installed your same turbojpeg package (i386 deb) which landed into
/opt/libjpeg-turbo...
Native libs are .so files which have been deployed on
/opt/libjpeg-turbo/lib32.

Therefore, I have edited the setenv.sh of /opt/tomcat7/bin by adding this:
export LD_LIBRARY_PATH=/opt/libjpeg-turbo/lib32:$LD_LIBRARY_PATH
*
*
Then I restarted geoserver and I was able to see
turbojpeg.TurboJPEGMapResponse] - The turbo jpeg encoder is available for
usage

In the logs.

Please, let me know if that's work for you.
Cheers,
Daniele

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------


On Wed, Oct 16, 2013 at 9:05 AM, Hakala Oiva (MTT) <[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. :(
>
> Oiva
> ------------------------------
> *Lähettäjä:* Hakala Oiva (MTT) [[email protected]]
> *Lähetetty:* 15. lokakuuta 2013 19:16
>
> *Vastaanottaja:* Daniele Romagnoli
> *Kopio:* GeoServer Mailing List List
> *Aihe:* Re: [Geoserver-users] Installing turbo-jpeg library?
>
>   Export was made in operating system system level at startup.
>
> Still I am not sure what should be done. I think you tried to say that
> LD_LIBRARY_PATH -environment variable should be declared. That is what I
> did.
>
> However the document says:
>
> It does not hurt to add also the location where where the native libraries
> where installed to the Java startup options
> -Djava.library.path=<absolute_and_valid_path>
>
> And I do not know, where this should be declared?
>
> JAVA_OPTS is already declared in /opt/tomcat7/bin/setenv.sh file. Don't
> know how to add more options under it. (eg.  -Djava.library.path=<path>).
>
> I am at home now, so tomorrow I am able to test again at work.
>
> Oiva
>
>
>
>
>
>  ------------------------------
> *Lähettäjä:* [email protected] [[email protected]] käyttäjän
> Daniele Romagnoli [[email protected]] puolesta
> *Lähetetty:* 15. lokakuuta 2013 16:22
> *Vastaanottaja:* Hakala Oiva (MTT)
> *Kopio:* GeoServer Mailing List List
> *Aihe:* Re: [Geoserver-users] Installing turbo-jpeg library?
>
>    Hi Oliva,
> where did you add that export? You should add it on your tomcat/geoserver
> scripts (as an instance, on setenv.sh or catalina.sh or whatelse you use)
>
>  Please, let me know.
>  Cheers,
> Daniele
>
>  ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
> Ing. Daniele Romagnoli
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax:      +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
> On Tue, Oct 15, 2013 at 2:08 PM, Hakala Oiva (MTT) <[email protected]>wrote:
>
>>  I cannot get this working. I used 2.4 snapshot files and exported an
>> environment variable like this:
>>
>> export LD_LIBRARY_PATH=/opt/libjpeg-turbo
>>
>> Still get the same error "check native library libs"
>>
>> Oiva :(
>>
>>
>>  ------------------------------
>> *Lähettäjä:* Hakala Oiva (MTT) [[email protected]]
>> *Lähetetty:* 15. lokakuuta 2013 12:45
>> *Vastaanottaja:* Daniele Romagnoli
>>
>> *Kopio:* GeoServer Mailing List List
>> *Aihe:* Re: [Geoserver-users] Installing turbo-jpeg library?
>>
>>   Thank you Daniele
>>
>> One problem, where to add this path option? Cannot remember anymore.
>>
>> -Djava.library.path=<absolute_and_valid_path>
>>
>> Oiva
>>
>>
>>  ------------------------------
>> *Lähettäjä:* [email protected] [[email protected]] käyttäjän
>> Daniele Romagnoli [[email protected]] puolesta
>> *Lähetetty:* 15. lokakuuta 2013 11:55
>> *Vastaanottaja:* Hakala Oiva (MTT)
>> *Kopio:* GeoServer Mailing List List
>> *Aihe:* Re: [Geoserver-users] Installing turbo-jpeg library?
>>
>>      Hi Oiva,
>>  you can download that one for the 2.4.x version:
>>
>> http://gridlock.opengeo.org/geoserver/2.4.x/community-latest/geoserver-2.4-SNAPSHOT-libjpeg-turbo-plugin.zip
>>  However, it should be basically the same as 2.5.x.
>>
>> Did you add that subfolder (as an instance: /opt/libjpeg-turbo) to the
>> LD_LIBRARY_PATH?
>>  For more info, you can take a look at the related subsection of the
>> geoserver doc:
>>
>> http://docs.geoserver.org/stable/en/user/community/libjpeg-turbo/index.html#installing-the-libjpeg-turbo-native-library
>>
>>  Please, let us know if you still have issues.
>>  Cheers,
>> Daniele
>>
>>
>
------------------------------------------------------------------------------
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

Reply via email to