[Geoserver-users] Installing turbo-jpeg library?

Hi

I have installed libjpeg-turbo following these instructions carefully

http://docs.geoserver.org/stable/en/user/community/libjpeg-turbo/index.html

My test computer is Ubuntu 12.04, and the Geoserver installation is 2.4

and the directory is /opt/tomcat7/webapps/geoserver

After installing libjpeg-turbo files correctly and restarting Tomcat7 and logging on Geoserver the log file still says:

2013-10-15 08:41:13,430 WARN [turbojpeg.TurboJPEGMapResponse] - The turbo jpeg encoder is not available, check the native libs installation

What has gone wrong? One of the .jar files is

libjpeg-turbo-2.5-SNAPSHOT.jar

Should this work with Geoserver 2.4?

I installed the the libjpeg-turbo from libjpeg-turbo-official_1.3.0_i386.deb and it now there is a libjpeg-turbo folder (and it’s subfolders) in computer’s /opt folder. Is that the right place?

Oiva

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

···

==
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 9:10 AM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

Hi

I have installed libjpeg-turbo following these instructions carefully

http://docs.geoserver.org/stable/en/user/community/libjpeg-turbo/index.html

My test computer is Ubuntu 12.04, and the Geoserver installation is 2.4

and the directory is /opt/tomcat7/webapps/geoserver

After installing libjpeg-turbo files correctly and restarting Tomcat7 and logging on Geoserver the log file still says:

2013-10-15 08:41:13,430 WARN [turbojpeg.TurboJPEGMapResponse] - The turbo jpeg encoder is not available, check the native libs installation

What has gone wrong? One of the .jar files is

libjpeg-turbo-2.5-SNAPSHOT.jar

Should this work with Geoserver 2.4?

I installed the the libjpeg-turbo from libjpeg-turbo-official_1.3.0_i386.deb and it now there is a libjpeg-turbo folder (and it’s subfolders) in computer’s /opt folder. Is that the right place?

Oiva


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
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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ä: dany.geotools@anonymised.com [dany.geotools@anonymised.com] käyttäjän Daniele Romagnoli [daniele.romagnoli@anonymised.com] 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

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 :frowning:


Lähettäjä: Hakala Oiva (MTT) [oiva.hakala@anonymised.com]
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ä: dany.geotools@anonymised.com [dany.geotools@anonymised.com] käyttäjän Daniele Romagnoli [daniele.romagnoli@…1107…] 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

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) <oiva.hakala@anonymised.com> 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 :frowning:


Lähettäjä: Hakala Oiva (MTT) [oiva.hakala@anonymised.com]
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ä: dany.geotools@anonymised.com [dany.geotools@anonymised.com] käyttäjän Daniele Romagnoli [daniele.romagnoli@anonymised.com] 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

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=).

I am at home now, so tomorrow I am able to test again at work.

Oiva

···

==
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) <oiva.hakala@anonymised.com> 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 :frowning:


Lähettäjä: Hakala Oiva (MTT) [oiva.hakala@anonymised.com]
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ä: dany.geotools@anonymised.com [dany.geotools@anonymised.com] käyttäjän Daniele Romagnoli [daniele.romagnoli@anonymised.com] 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

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. :frowning:

Oiva

···

==
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) <oiva.hakala@anonymised.com> 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 :frowning:


Lähettäjä: Hakala Oiva (MTT) [oiva.hakala@anonymised.com]
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ä: dany.geotools@anonymised.com [dany.geotools@anonymised.com] käyttäjän Daniele Romagnoli [daniele.romagnoli@anonymised.com] 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

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. :frowning:

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

--

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
fax: +39 0584 1660272
mob: +39 339 8844549

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

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

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) <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. :frowning:

Oiva


Lähettäjä: Hakala Oiva (MTT) [oiva.hakala@anonymised.com]

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=).

I am at home now, so tomorrow I am able to test again at work.

Oiva


Lähettäjä: dany.geotools@anonymised.com [dany.geotools@anonymised.com] käyttäjän Daniele Romagnoli [daniele.romagnoli@anonymised.com] 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) <oiva.hakala@anonymised.com> 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 :frowning:


Lähettäjä: Hakala Oiva (MTT) [oiva.hakala@anonymised.com]
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ä: dany.geotools@anonymised.com [dany.geotools@anonymised.com] käyttäjän Daniele Romagnoli [daniele.romagnoli@anonymised.com] 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

On Wed, Oct 16, 2013 at 10:20 AM, Andrea Aime
<andrea.aime@anonymised.com>wrote:

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. :frowning:

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

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
fax: +39 0584 1660272
mob: +39 339 8844549

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

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

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

···

On Wed, Oct 16, 2013 at 10:20 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Wed, Oct 16, 2013 at 9:05 AM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

Thanks Andrea,

I will update that.

Cheers,
Daniele

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. :frowning:

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

==
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
fax: +39 0584 1660272

mob: +39 339 8844549

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


On Wed, Oct 16, 2013 at 10:46 AM, Hakala Oiva (MTT) <oiva.hakala@anonymised.com>wrote:

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?

Not at all, unfortunately the Ubuntu official packages stripped the JNI
bridge library making them unusable for GeoServer (or, alternatively,
it's too old a version, not sure which of the two actually).

So, you have to install the Turbojpeg official packages instead, and set
LD_LIBRARY_PATH as me and Daniele showed

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
fax: +39 0584 1660272
mob: +39 339 8844549

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

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

I'll open a JIRA for this enhancement to the docs.

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

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

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

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

On Wed, Oct 16, 2013 at 10:20 AM, Andrea Aime
<andrea.aime@anonymised.com> wrote:

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. :frowning:

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

--

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
fax: +39 0584 1660272
mob: +39 339 8844549

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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users