[Geoserver-users] GDAL native lib error during instaling to version 2.8.2

Hi there

During installation GDAL Image formats by http://docs.geoserver.org/latest/en/user/data/raster/gdal.html i had next errors on tomcat 7 logs.

24, 2016 10:55:50 AM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem unless you need to use the GDAL plugins: they won't be enabled.
java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path

I test it by bash gdalinfo.sh which has next code

#!/bin/bash
input=$1
export LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH
CLASSPATH=imageio-ext-gdal-bindings-1.9.2.jar:.
java -classpath "${CLASSPATH}" gdalinfo $input

So it give’s me next error log

Native library load failed.
java.lang.UnsatisfiedLinkError: /var/lib/tomcat7/webapps/geoserver/gdal192/libgdaljni.so: ../libgdal.so.1: file too small
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.AllRegister()V
        at org.gdal.gdal.gdalJNI.AllRegister(Native Method)
        at org.gdal.gdal.gdal.AllRegister(gdal.java:475)
        at gdalinfo.main(gdalinfo.java:87)

I am using Geoserver 2.8.2 on Ubuntu 14.04 and with installed GDAL on my server.

In Image IO-Ext download link http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.12/ native libs available only for Ubuntu 12.04 version,
Also 1 strange thing that this libs crash my current image mosaic layer.

Where I can find proper native libs?

Zhandos

Hi Zandos,
thanks for having moved the discussion from JIRA to this list.

···

On Mon, Apr 4, 2016 at 12:18 PM, zh.kerimkulov@anonymised.com <zh.kerimkulov@anonymised.com> wrote:

Hi there

During installation GDAL Image formats by http://docs.geoserver.org/latest/en/user/data/raster/gdal.html i had next errors on tomcat 7 logs.

24, 2016 10:55:50 AM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem unless you need to use the GDAL plugins: they won't be enabled.
java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path

This is the warning stating GeoServer (through GeoTools) is unable to load your native libs.



I test it by bash gdalinfo.sh which has next code

#!/bin/bash
input=$1
export LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH
CLASSPATH=imageio-ext-gdal-bindings-1.9.2.jar:.
java -classpath "${CLASSPATH}" gdalinfo $input

Which command did you executed?
Did you run “gdalinfo --formats” as suggested in the doc?

So it give’s me next error log

Native library load failed.
java.lang.UnsatisfiedLinkError: /var/lib/tomcat7/webapps/geoserver/gdal192/libgdaljni.so: ../libgdal.so.1: file too small
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.AllRegister()V
        at org.gdal.gdal.gdalJNI.AllRegister(Native Method)
        at org.gdal.gdal.gdal.AllRegister(gdal.java:475)
        at gdalinfo.main(gdalinfo.java:87)

Could you please report how did you configured the LD_LIBRARY_PATH or your tomcat scripts ?

I am using Geoserver 2.8.2 on Ubuntu 14.04 and with installed GDAL on my server.

In Image IO-Ext download link http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.12/ native libs available only for Ubuntu 12.04 version,

Note that this specific download should be installed on Ubuntu 12.04 version.
There is no guarantee that they would work on a 14.04 version of Ubuntu (there may be conflict with dependency libraries, resulting into loading, linking incompatibilities).
I would take a look to this discussion:
http://osgeo-org.1560.x6.nabble.com/Failed-to-load-the-GDAL-native-libs-GDAL-PLUGIN-cannot-be-enabled-td5222384.html

which covers the same topic.

Also 1 strange thing that this libs crash my current image mosaic layer.

What do you mean? Can you provide some more details on this?

Where I can find proper native libs?

See the link I provided above.

Please, let us know if you still have issues.
Cheers,
Daniele

Zhandos



Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

Hi Zandos,
please keep the list on CC so that other users can provide their feedbacks as well as retrieve information from the discussion in the future, though search.

···

On Mon, Apr 4, 2016 at 2:26 PM, zh.kerimkulov@anonymised.com <zh.kerimkulov@anonymised.com> wrote:

From: dany.geotools@anonymised.com [mailto:dany.geotools@anonymised.com] On Behalf Of Daniele Romagnoli
Sent: Monday, April 4, 2016 5:08 PM
To: Керимкулов Жандос Сеитович
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GDAL native lib error during instaling to version 2.8.2

Hi Zandos,

thanks for having moved the discussion from JIRA to this list.

On Mon, Apr 4, 2016 at 12:18 PM, zh.kerimkulov@anonymised.com <zh.kerimkulov@anonymised.com> wrote:

Hi there

During installation GDAL Image formats by http://docs.geoserver.org/latest/en/user/data/raster/gdal.html i had next errors on tomcat 7 logs.

24, 2016 10:55:50 AM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem unless you need to use the GDAL plugins: they won't be enabled.
java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path

This is the warning stating GeoServer (through GeoTools) is unable to load your native libs.


I test it by bash gdalinfo.sh which has next code

#!/bin/bash
input=$1
export LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH
CLASSPATH=imageio-ext-gdal-bindings-1.9.2.jar:.
java -classpath "${CLASSPATH}" gdalinfo $input

Which command did you executed?

Did you run “gdalinfo --formats” as suggested in the doc?

I downloaded GDAL192-Ubuntu12 –gcc4.6.3-x86-64.tar and inside /gdal192/javainfo there is gdalinfo.sh script file.

Yep, what I was meaning is which options/params did you used with “gdalinfo”? (as an instance: gdalinfo --formats)

So it give’s me next error log

Native library load failed.
java.lang.UnsatisfiedLinkError: /var/lib/tomcat7/webapps/geoserver/gdal192/libgdaljni.so: ../libgdal.so.1: file too small
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.AllRegister()V
        at org.gdal.gdal.gdalJNI.AllRegister(Native Method)
        at org.gdal.gdal.gdal.AllRegister(gdal.java:475)
        at gdalinfo.main(gdalinfo.java:87)

Could you please report how did you configured the LD_LIBRARY_PATH or your tomcat scripts ?

Yes, of course, this is result of my echo command

echo $LD_LIBRARY_PATH
/var/lib/tomcat7/webapps/geoserver/gdal192/

echo $GDAL_DATA
/var/lib/tomcat7/webapps/geoserver/gdal-data

Do you have any chance to report what “ls -ls /var/lib/tomcat7/webapps/geoserver/gdal192/” returns?
Cheers,
Daniele

I am using Geoserver 2.8.2 on Ubuntu 14.04 and with installed GDAL on my server.

In Image IO-Ext download link http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.12/ native libs available only for Ubuntu 12.04 version,

Note that this specific download should be installed on Ubuntu 12.04 version.

There is no guarantee that they would work on a 14.04 version of Ubuntu (there may be conflict with dependency libraries, resulting into loading, linking incompatibilities).

I would take a look to this discussion:

http://osgeo-org.1560.x6.nabble.com/Failed-to-load-the-GDAL-native-libs-GDAL-PLUGIN-cannot-be-enabled-td5222384.html

which covers the same topic.

Also 1 strange thing that this libs crash my current image mosaic layer.

What do you mean? Can you provide some more details on this?

Where I can find proper native libs?

See the link I provided above.

Please, let us know if you still have issues.

Cheers,

Daniele

Zhandos



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

Hi Daniele

Thanks for your tips and support.

Next my comments to your questions.

1. I tried to run gdalinfo with param –formats so I got next

root@…7544…:/var/lib/tomcat7/webapps/geoserver/gdal192# gdalinfo --formats

Supported Formats:

VRT -raster- (rw+v): Virtual Raster

GTiff -raster- (rw+vs): GeoTIFF

NITF -raster- (rw+vs): National Imagery Transmission Format

RPFTOC -raster- (rovs): Raster Product Format TOC format

ECRGTOC -raster- (rovs): ECRG TOC format

HFA -raster- (rw+v): Erdas Imagine Images (.img)

SAR_CEOS -raster- (rov): CEOS SAR Image

CEOS -raster- (rov): CEOS Image

JAXAPALSAR -raster- (rov): JAXA PALSAR Product Reader (Level 1.1/1.5)

GFF -raster- (rov): Ground-based SAR Applications Testbed File Format (.gff)

ELAS -raster- (rw+v): ELAS

AIG -raster- (rov): Arc/Info Binary Grid

AAIGrid -raster- (rwv): Arc/Info ASCII Grid

GRASSASCIIGrid -raster- (rov): GRASS ASCII Grid

SDTS -raster- (rov): SDTS Raster

OGDI -raster- (ros): OGDI Bridge

DTED -raster- (rwv): DTED Elevation Raster

PNG -raster- (rwv): Portable Network Graphics

JPEG -raster- (rwv): JPEG JFIF

MEM -raster- (rw+): In Memory Raster

JDEM -raster- (rov): Japanese DEM (.mem)

GIF -raster- (rwv): Graphics Interchange Format (.gif)

BIGGIF -raster- (rov): Graphics Interchange Format (.gif)

ESAT -raster- (rov): Envisat Image Format

BSB -raster- (rov): Maptech BSB Nautical Charts

XPM -raster- (rwv): X11 PixMap Format

BMP -raster- (rw+v): MS Windows Device Independent Bitmap

DIMAP -raster- (rov): SPOT DIMAP

AirSAR -raster- (rov): AirSAR Polarimetric Image

RS2 -raster- (ros): RadarSat 2 XML Product

PCIDSK -raster,vector- (rw+v): PCIDSK Database File

PCRaster -raster- (rw+): PCRaster Raster File

ILWIS -raster- (rw+v): ILWIS Raster Map

SGI -raster- (rw+): SGI Image File Format 1.0

SRTMHGT -raster- (rwv): SRTMHGT File Format

Leveller -raster- (rw+): Leveller heightfield

Terragen -raster- (rw+): Terragen heightfield

GMT -raster- (rw): GMT NetCDF Grid Format

netCDF -raster- (rw+s): Network Common Data Format

HDF4 -raster- (ros): Hierarchical Data Format Release 4

HDF4Image -raster- (rw+): HDF4 Dataset

ISIS3 -raster- (rov): USGS Astrogeology ISIS cube (Version 3)

ISIS2 -raster- (rw+v): USGS Astrogeology ISIS cube (Version 2)

PDS -raster- (rov): NASA Planetary Data System

VICAR -raster- (rov): MIPL VICAR file

TIL -raster- (rov): EarthWatch .TIL

ERS -raster- (rw+v): ERMapper .ers Labelled

L1B -raster- (rovs): NOAA Polar Orbiter Level 1b Data Set

FIT -raster- (rwv): FIT Image

GRIB -raster- (rov): GRIdded Binary (.grb)

JPEG2000 -raster,vector- (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1), based on Jasper library

RMF -raster- (rw+v): Raster Matrix Format

MSGN -raster- (ro): EUMETSAT Archive native (.nat)

RST -raster- (rw+v): Idrisi Raster A.1

INGR -raster- (rw+v): Intergraph Raster

GSAG -raster- (rwv): Golden Software ASCII Grid (.grd)

GSBG -raster- (rw+v): Golden Software Binary Grid (.grd)

GS7BG -raster- (rw+v): Golden Software 7 Binary Grid (.grd)

COSAR -raster- (rov): COSAR Annotated Binary Matrix (TerraSAR-X)

TSX -raster- (rov): TerraSAR-X Product

COASP -raster- (ro): DRDC COASP SAR Processor Raster

R -raster- (rwv): R Object Data Store

MAP -raster- (rov): OziExplorer .MAP

PNM -raster- (rw+v): Portable Pixmap Format (netpbm)

DOQ1 -raster- (rov): USGS DOQ (Old Style)

DOQ2 -raster- (rov): USGS DOQ (New Style)

ENVI -raster- (rw+v): ENVI .hdr Labelled

EHdr -raster- (rw+v): ESRI .hdr Labelled

GenBin -raster- (rov): Generic Binary (.hdr Labelled)

PAux -raster- (rw+): PCI .aux Labelled

MFF -raster- (rw+v): Vexcel MFF Raster

MFF2 -raster- (rw+): Vexcel MFF2 (HKV) Raster

FujiBAS -raster- (ro): Fuji BAS Scanner Image

GSC -raster- (rov): GSC Geogrid

FAST -raster- (rov): EOSAT FAST Format

BT -raster- (rw+v): VTP .bt (Binary Terrain) 1.3 Format

LAN -raster- (rw+v): Erdas .LAN/.GIS

CPG -raster- (ro): Convair PolGASP

IDA -raster- (rw+v): Image Data and Analysis

NDF -raster- (rov): NLAPS Data Format

EIR -raster- (rov): Erdas Imagine Raw

DIPEx -raster- (rov): DIPEx

LCP -raster- (rwv): FARSITE v.4 Landscape File (.lcp)

GTX -raster- (rw+v): NOAA Vertical Datum .GTX

LOSLAS -raster- (rov): NADCON .los/.las Datum Grid Shift

NTv2 -raster- (rw+vs): NTv2 Datum Grid Shift

CTable2 -raster- (rw+v): CTable2 Datum Grid Shift

ACE2 -raster- (rov): ACE2

SNODAS -raster- (rov): Snow Data Assimilation System

KRO -raster- (rw+v): KOLOR Raw

ROI_PAC -raster- (rw+v): ROI_PAC raster

ARG -raster- (rwv): Azavea Raster Grid format

RIK -raster- (rov): Swedish Grid RIK (.rik)

USGSDEM -raster- (rwv): USGS Optional ASCII DEM (and CDED)

GXF -raster- (ro): GeoSoft Grid Exchange Format

BAG -raster- (ro): Bathymetry Attributed Grid

HDF5 -raster- (ros): Hierarchical Data Format Release 5

HDF5Image -raster- (ro): HDF5 Dataset

NWT_GRD -raster- (rov): Northwood Numeric Grid Format .grd/.tab

NWT_GRC -raster- (rov): Northwood Classified Grid Format .grc/.tab

ADRG -raster- (rw+vs): ARC Digitized Raster Graphics

SRP -raster- (rovs): Standard Raster Product (ASRP/USRP)

BLX -raster- (rw): Magellan topo (.blx)

Rasterlite -raster- (rws): Rasterlite

PostGISRaster -raster- (rws): PostGIS Raster driver

SAGA -raster- (rw+v): SAGA GIS Binary Grid (.sdat)

KMLSUPEROVERLAY -raster- (rwv): Kml Super Overlay

XYZ -raster- (rwv): ASCII Gridded XYZ

HF2 -raster- (rwv): HF2/HFZ heightfield raster

PDF -raster,vector- (w+): Geospatial PDF

OZI -raster- (rov): OziExplorer Image File

CTG -raster- (rov): USGS LULC Composite Theme Grid

E00GRID -raster- (rov): Arc/Info Export E00 GRID

ZMap -raster- (rwv): ZMap Plus Grid

NGSGEOID -raster- (rov): NOAA NGS Geoid Height Grids

MBTiles -raster- (rov): MBTiles

IRIS -raster- (rov): IRIS data (.PPI, .CAPPi etc)

GPKG -raster,vector- (rw+vs): GeoPackage

2. I have configured the LD_LIBRARY_PATH with next commands

export LD_LIBRARY_PATH=/var/lib/tomcat7/webapps/geoserver/gdal192/

export PATH=$PATH:/var/lib/tomcat7/webapps/geoserver/gdal192/

export GDAL_DATA=/var/lib/tomcat7/webapps/geoserver/gdal-data/

3. The report what “ls -ls /var/lib/tomcat7/webapps/geoserver/gdal192/” returns is:

56 -rwxrwxrwx 1 tomcat7 odmin 54931 dec 10 2012 gdalinfo

4 drwxrwxrwx 2 tomcat7 odmin 4096 march 24 09:26 javainfo

112 -rwxrwxrwx 1 tomcat7 odmin 112705 nov. 22 2012 libgdalconstjni.so

1284 -rwxrwxrwx 1 tomcat7 odmin 1312184 nov. 22 2012 libgdaljni.so

4 -rwxrwxrwx 1 tomcat7 odmin 17 nov. 22 2012 libgdal.so

4 -rwxrwxrwx 1 tomcat7 odmin 17 nov. 22 2012 libgdal.so.1

43016 -rwxrwxrwx 1 tomcat7 odmin 44048076 nov. 22 2012 libgdal.so.1.16.2

4960 -rwxrwxrwx 1 tomcat7 odmin 5078163 nov. 26 2012 libltidsdk.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSCnet.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSCnet.so.0

580 -rwxrwxrwx 1 tomcat7 odmin 590457 nov. 22 2012 libNCSCnet.so.0.0.0

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSEcwC.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSEcwC.so.0

80 -rwxrwxrwx 1 tomcat7 odmin 81508 nov. 22 2012 libNCSEcwC.so.0.0.0

4 -rwxrwxrwx 1 tomcat7 odmin 18 nov. 22 2012 libNCSEcw.so

4 -rwxrwxrwx 1 tomcat7 odmin 18 nov. 22 2012 libNCSEcw.so.0

8444 -rwxrwxrwx 1 tomcat7 odmin 8644546 nov. 22 2012 libNCSEcw.so.0.0.0

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSUtil.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSUtil.so.0

700 -rwxrwxrwx 1 tomcat7 odmin 713782 nov. 22 2012 libNCSUtil.so.0.0.0

596 -rwxrwxrwx 1 tomcat7 odmin 608641 nov. 22 2012 libogrjni.so

464 -rwxrwxrwx 1 tomcat7 odmin 472066 nov. 22 2012 libosrjni.so

From: dany.geotools@…84… [mailto:dany.geotools@…84…] On Behalf Of Daniele Romagnoli
Sent: Monday, April 4, 2016 6:38 PM
To: Керимкулов Жандос Сеитович; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GDAL native lib error during instaling to version 2.8.2

Hi Zandos,

please keep the list on CC so that other users can provide their feedbacks as well as retrieve information from the discussion in the future, though search.

On Mon, Apr 4, 2016 at 2:26 PM, zh.kerimkulov@…7533… <zh.kerimkulov@…7533…> wrote:

From: dany.geotools@…84… [mailto:dany.geotools@…84…] On Behalf Of Daniele Romagnoli
Sent: Monday, April 4, 2016 5:08 PM
To: Керимкулов Жандос Сеитович
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GDAL native lib error during instaling to version 2.8.2

Hi Zandos,

thanks for having moved the discussion from JIRA to this list.

On Mon, Apr 4, 2016 at 12:18 PM, zh.kerimkulov@…7533… <zh.kerimkulov@…7533…> wrote:

Hi there

During installation GDAL Image formats by http://docs.geoserver.org/latest/en/user/data/raster/gdal.html i had next errors on tomcat 7 logs.

24, 2016 10:55:50 AM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem unless you need to use the GDAL plugins: they won't be enabled.
java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path

This is the warning stating GeoServer (through GeoTools) is unable to load your native libs.


I test it by bash gdalinfo.sh which has next code

#!/bin/bash
input=$1
export LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH
CLASSPATH=imageio-ext-gdal-bindings-1.9.2.jar:.
java -classpath "${CLASSPATH}" gdalinfo $input

Which command did you executed?

Did you run “gdalinfo --formats” as suggested in the doc?

I downloaded GDAL192-Ubuntu12 –gcc4.6.3-x86-64.tar and inside /gdal192/javainfo there is gdalinfo.sh script file.

Yep, what I was meaning is which options/params did you used with “gdalinfo”? (as an instance: gdalinfo --formats)

So it give’s me next error log

Native library load failed.
java.lang.UnsatisfiedLinkError: /var/lib/tomcat7/webapps/geoserver/gdal192/libgdaljni.so: ../libgdal.so.1: file too small
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.AllRegister()V
        at org.gdal.gdal.gdalJNI.AllRegister(Native Method)
        at org.gdal.gdal.gdal.AllRegister(gdal.java:475)
        at gdalinfo.main(gdalinfo.java:87)

Could you please report how did you configured the LD_LIBRARY_PATH or your tomcat scripts ?

Yes, of course, this is result of my echo command

echo $LD_LIBRARY_PATH
/var/lib/tomcat7/webapps/geoserver/gdal192/

echo $GDAL_DATA
/var/lib/tomcat7/webapps/geoserver/gdal-data

Do you have any chance to report what “ls -ls /var/lib/tomcat7/webapps/geoserver/gdal192/” returns?

Cheers,

Daniele

I am using Geoserver 2.8.2 on Ubuntu 14.04 and with installed GDAL on my server.

In Image IO-Ext download link http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.12/ native libs available only for Ubuntu 12.04 version,

Note that this specific download should be installed on Ubuntu 12.04 version.

There is no guarantee that they would work on a 14.04 version of Ubuntu (there may be conflict with dependency libraries, resulting into loading, linking incompatibilities).

I would take a look to this discussion:

http://osgeo-org.1560.x6.nabble.com/Failed-to-load-the-GDAL-native-libs-GDAL-PLUGIN-cannot-be-enabled-td5222384.html

which covers the same topic.

Also 1 strange thing that this libs crash my current image mosaic layer.

What do you mean? Can you provide some more details on this?

Where I can find proper native libs?

See the link I provided above.

Please, let us know if you still have issues.

Cheers,

Daniele

Zhandos



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

Hi Zhandos,
please read below…

···

On Tue, Apr 5, 2016 at 6:52 AM, zh.kerimkulov@anonymised.com.7533… <zh.kerimkulov@anonymised.com> wrote:

Hi Daniele

Thanks for your tips and support.

Next my comments to your questions.

1. I tried to run gdalinfo with param –formats so I got next

root@anonymised.com…:/var/lib/tomcat7/webapps/geoserver/gdal192# gdalinfo --formats

Supported Formats:

VRT -raster- (rw+v): Virtual Raster

GTiff -raster- (rw+vs): GeoTIFF

NITF -raster- (rw+vs): National Imagery Transmission Format

RPFTOC -raster- (rovs): Raster Product Format TOC format

ECRGTOC -raster- (rovs): ECRG TOC format

HFA -raster- (rw+v): Erdas Imagine Images (.img)

SAR_CEOS -raster- (rov): CEOS SAR Image

CEOS -raster- (rov): CEOS Image

JAXAPALSAR -raster- (rov): JAXA PALSAR Product Reader (Level 1.1/1.5)

GFF -raster- (rov): Ground-based SAR Applications Testbed File Format (.gff)

ELAS -raster- (rw+v): ELAS

AIG -raster- (rov): Arc/Info Binary Grid

AAIGrid -raster- (rwv): Arc/Info ASCII Grid

GRASSASCIIGrid -raster- (rov): GRASS ASCII Grid

SDTS -raster- (rov): SDTS Raster

OGDI -raster- (ros): OGDI Bridge

DTED -raster- (rwv): DTED Elevation Raster

PNG -raster- (rwv): Portable Network Graphics

JPEG -raster- (rwv): JPEG JFIF

MEM -raster- (rw+): In Memory Raster

JDEM -raster- (rov): Japanese DEM (.mem)

GIF -raster- (rwv): Graphics Interchange Format (.gif)

BIGGIF -raster- (rov): Graphics Interchange Format (.gif)

ESAT -raster- (rov): Envisat Image Format

BSB -raster- (rov): Maptech BSB Nautical Charts

XPM -raster- (rwv): X11 PixMap Format

BMP -raster- (rw+v): MS Windows Device Independent Bitmap

DIMAP -raster- (rov): SPOT DIMAP

AirSAR -raster- (rov): AirSAR Polarimetric Image

RS2 -raster- (ros): RadarSat 2 XML Product

PCIDSK -raster,vector- (rw+v): PCIDSK Database File

PCRaster -raster- (rw+): PCRaster Raster File

ILWIS -raster- (rw+v): ILWIS Raster Map

SGI -raster- (rw+): SGI Image File Format 1.0

SRTMHGT -raster- (rwv): SRTMHGT File Format

Leveller -raster- (rw+): Leveller heightfield

Terragen -raster- (rw+): Terragen heightfield

GMT -raster- (rw): GMT NetCDF Grid Format

netCDF -raster- (rw+s): Network Common Data Format

HDF4 -raster- (ros): Hierarchical Data Format Release 4

HDF4Image -raster- (rw+): HDF4 Dataset

ISIS3 -raster- (rov): USGS Astrogeology ISIS cube (Version 3)

ISIS2 -raster- (rw+v): USGS Astrogeology ISIS cube (Version 2)

PDS -raster- (rov): NASA Planetary Data System

VICAR -raster- (rov): MIPL VICAR file

TIL -raster- (rov): EarthWatch .TIL

ERS -raster- (rw+v): ERMapper .ers Labelled

L1B -raster- (rovs): NOAA Polar Orbiter Level 1b Data Set

FIT -raster- (rwv): FIT Image

GRIB -raster- (rov): GRIdded Binary (.grb)

JPEG2000 -raster,vector- (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1), based on Jasper library

RMF -raster- (rw+v): Raster Matrix Format

MSGN -raster- (ro): EUMETSAT Archive native (.nat)

RST -raster- (rw+v): Idrisi Raster A.1

INGR -raster- (rw+v): Intergraph Raster

GSAG -raster- (rwv): Golden Software ASCII Grid (.grd)

GSBG -raster- (rw+v): Golden Software Binary Grid (.grd)

GS7BG -raster- (rw+v): Golden Software 7 Binary Grid (.grd)

COSAR -raster- (rov): COSAR Annotated Binary Matrix (TerraSAR-X)

TSX -raster- (rov): TerraSAR-X Product

COASP -raster- (ro): DRDC COASP SAR Processor Raster

R -raster- (rwv): R Object Data Store

MAP -raster- (rov): OziExplorer .MAP

PNM -raster- (rw+v): Portable Pixmap Format (netpbm)

DOQ1 -raster- (rov): USGS DOQ (Old Style)

DOQ2 -raster- (rov): USGS DOQ (New Style)

ENVI -raster- (rw+v): ENVI .hdr Labelled

EHdr -raster- (rw+v): ESRI .hdr Labelled

GenBin -raster- (rov): Generic Binary (.hdr Labelled)

PAux -raster- (rw+): PCI .aux Labelled

MFF -raster- (rw+v): Vexcel MFF Raster

MFF2 -raster- (rw+): Vexcel MFF2 (HKV) Raster

FujiBAS -raster- (ro): Fuji BAS Scanner Image

GSC -raster- (rov): GSC Geogrid

FAST -raster- (rov): EOSAT FAST Format

BT -raster- (rw+v): VTP .bt (Binary Terrain) 1.3 Format

LAN -raster- (rw+v): Erdas .LAN/.GIS

CPG -raster- (ro): Convair PolGASP

IDA -raster- (rw+v): Image Data and Analysis

NDF -raster- (rov): NLAPS Data Format

EIR -raster- (rov): Erdas Imagine Raw

DIPEx -raster- (rov): DIPEx

LCP -raster- (rwv): FARSITE v.4 Landscape File (.lcp)

GTX -raster- (rw+v): NOAA Vertical Datum .GTX

LOSLAS -raster- (rov): NADCON .los/.las Datum Grid Shift

NTv2 -raster- (rw+vs): NTv2 Datum Grid Shift

CTable2 -raster- (rw+v): CTable2 Datum Grid Shift

ACE2 -raster- (rov): ACE2

SNODAS -raster- (rov): Snow Data Assimilation System

KRO -raster- (rw+v): KOLOR Raw

ROI_PAC -raster- (rw+v): ROI_PAC raster

ARG -raster- (rwv): Azavea Raster Grid format

RIK -raster- (rov): Swedish Grid RIK (.rik)

USGSDEM -raster- (rwv): USGS Optional ASCII DEM (and CDED)

GXF -raster- (ro): GeoSoft Grid Exchange Format

BAG -raster- (ro): Bathymetry Attributed Grid

HDF5 -raster- (ros): Hierarchical Data Format Release 5

HDF5Image -raster- (ro): HDF5 Dataset

NWT_GRD -raster- (rov): Northwood Numeric Grid Format .grd/.tab

NWT_GRC -raster- (rov): Northwood Classified Grid Format .grc/.tab

ADRG -raster- (rw+vs): ARC Digitized Raster Graphics

SRP -raster- (rovs): Standard Raster Product (ASRP/USRP)

BLX -raster- (rw): Magellan topo (.blx)

Rasterlite -raster- (rws): Rasterlite

PostGISRaster -raster- (rws): PostGIS Raster driver

SAGA -raster- (rw+v): SAGA GIS Binary Grid (.sdat)

KMLSUPEROVERLAY -raster- (rwv): Kml Super Overlay

XYZ -raster- (rwv): ASCII Gridded XYZ

HF2 -raster- (rwv): HF2/HFZ heightfield raster

PDF -raster,vector- (w+): Geospatial PDF

OZI -raster- (rov): OziExplorer Image File

CTG -raster- (rov): USGS LULC Composite Theme Grid

E00GRID -raster- (rov): Arc/Info Export E00 GRID

ZMap -raster- (rwv): ZMap Plus Grid

NGSGEOID -raster- (rov): NOAA NGS Geoid Height Grids

MBTiles -raster- (rov): MBTiles

IRIS -raster- (rov): IRIS data (.PPI, .CAPPi etc)

GPKG -raster,vector- (rw+vs): GeoPackage

The list of available formats looks really long to me. It seems like there is another GDAL installation around on your machine which is used instead of the downloaded one. (Could you try a “locate gdalinfo” command?)

I would use the gdalinfo.sh you can find within the javainfo folder instead.

2. I have configured the LD_LIBRARY_PATH with next commands

export LD_LIBRARY_PATH=/var/lib/tomcat7/webapps/geoserver/gdal192/

export PATH=$PATH:/var/lib/tomcat7/webapps/geoserver/gdal192/

export GDAL_DATA=/var/lib/tomcat7/webapps/geoserver/gdal-data/

3. The report what “ls -ls /var/lib/tomcat7/webapps/geoserver/gdal192/” returns is:

56 -rwxrwxrwx 1 tomcat7 odmin 54931 dec 10 2012 gdalinfo

4 drwxrwxrwx 2 tomcat7 odmin 4096 march 24 09:26 javainfo

112 -rwxrwxrwx 1 tomcat7 odmin 112705 nov. 22 2012 libgdalconstjni.so

1284 -rwxrwxrwx 1 tomcat7 odmin 1312184 nov. 22 2012 libgdaljni.so

4 -rwxrwxrwx 1 tomcat7 odmin 17 nov. 22 2012 libgdal.so

4 -rwxrwxrwx 1 tomcat7 odmin 17 nov. 22 2012 libgdal.so.1

43016 -rwxrwxrwx 1 tomcat7 odmin 44048076 nov. 22 2012 libgdal.so.1.16.2

4960 -rwxrwxrwx 1 tomcat7 odmin 5078163 nov. 26 2012 libltidsdk.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSCnet.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSCnet.so.0

580 -rwxrwxrwx 1 tomcat7 odmin 590457 nov. 22 2012 libNCSCnet.so.0.0.0

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSEcwC.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSEcwC.so.0

80 -rwxrwxrwx 1 tomcat7 odmin 81508 nov. 22 2012 libNCSEcwC.so.0.0.0

4 -rwxrwxrwx 1 tomcat7 odmin 18 nov. 22 2012 libNCSEcw.so

4 -rwxrwxrwx 1 tomcat7 odmin 18 nov. 22 2012 libNCSEcw.so.0

8444 -rwxrwxrwx 1 tomcat7 odmin 8644546 nov. 22 2012 libNCSEcw.so.0.0.0

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSUtil.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSUtil.so.0

700 -rwxrwxrwx 1 tomcat7 odmin 713782 nov. 22 2012 libNCSUtil.so.0.0.0

596 -rwxrwxrwx 1 tomcat7 odmin 608641 nov. 22 2012 libogrjni.so

464 -rwxrwxrwx 1 tomcat7 odmin 472066 nov. 22 2012 libosrjni.so

I don’t see symbolic links in this output. How did you extract the tar.gz on your disk?
Using the archive manager or the “tar -zxvf” command should preserve the links so that your output should be similar to something like this:

4.0K drwxrwxr-x 2 dromagno dromagno 4.0K Mar 21 2013 javainfo

92K -rwxr-xr-x 1 dromagno dromagno 92K Dec 10 2012 libgdalconstjni.so
916K -rwxr-xr-x 1 dromagno dromagno 915K Dec 10 2012 libgdaljni.so
436K -rwxr-xr-x 1 dromagno dromagno 436K Dec 10 2012 libogrjni.so
340K -rwxr-xr-x 1 dromagno dromagno 339K Dec 10 2012 libosrjni.so
48K -rwxr-xr-x 1 dromagno dromagno 45K Dec 10 2012 gdalinfo
4.8M -rwxr-xr-x 1 dromagno dromagno 4.8M Dec 10 2012 libltidsdk.so
0 lrwxrwxrwx 1 dromagno dromagno 17 Dec 10 2012 libgdal.so → libgdal.so.1.16.2
0 lrwxrwxrwx 1 dromagno dromagno 17 Dec 10 2012 libgdal.so.1 → libgdal.so.1.16.2
34M -rwxr-xr-x 1 dromagno dromagno 34M Dec 10 2012 libgdal.so.1.16.2
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSCnet.so → libNCSCnet.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSCnet.so.0 → libNCSCnet.so.0.0.0
456K -rwxr-xr-x 1 dromagno dromagno 456K Dec 10 2012 libNCSCnet.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSEcwC.so → libNCSEcwC.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSEcwC.so.0 → libNCSEcwC.so.0.0.0
76K -rwxr-xr-x 1 dromagno dromagno 73K Dec 10 2012 libNCSEcwC.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 18 Dec 10 2012 libNCSEcw.so → libNCSEcw.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 18 Dec 10 2012 libNCSEcw.so.0 → libNCSEcw.so.0.0.0
6.9M -rwxr-xr-x 1 dromagno dromagno 6.8M Dec 10 2012 libNCSEcw.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSUtil.so → libNCSUtil.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSUtil.so.0 → libNCSUtil.so.0.0.0
580K -rwxr-xr-x 1 dromagno dromagno 579K Dec 10 2012 libNCSUtil.so.0.0.0

Note the symbolic links (I have marked them in bold).

Could you double check?

Hope this helps.

Cheers,

Daniele

From: dany.geotools@anonymised.com [mailto:dany.geotools@anonymised.com] On Behalf Of Daniele Romagnoli
Sent: Monday, April 4, 2016 6:38 PM
To: Керимкулов Жандос Сеитович; geoserver-users@lists.sourceforge.net

Subject: Re: [Geoserver-users] GDAL native lib error during instaling to version 2.8.2

Hi Zandos,

please keep the list on CC so that other users can provide their feedbacks as well as retrieve information from the discussion in the future, though search.

On Mon, Apr 4, 2016 at 2:26 PM, zh.kerimkulov@anonymised.com <zh.kerimkulov@anonymised.com> wrote:

From: dany.geotools@anonymised.com [mailto:dany.geotools@anonymised.com] On Behalf Of Daniele Romagnoli
Sent: Monday, April 4, 2016 5:08 PM
To: Керимкулов Жандос Сеитович
Cc: geoserver-users@anonymised.com.sourceforge.net
Subject: Re: [Geoserver-users] GDAL native lib error during instaling to version 2.8.2

Hi Zandos,

thanks for having moved the discussion from JIRA to this list.

On Mon, Apr 4, 2016 at 12:18 PM, zh.kerimkulov@anonymised.com <zh.kerimkulov@anonymised.com> wrote:

Hi there

During installation GDAL Image formats by http://docs.geoserver.org/latest/en/user/data/raster/gdal.html i had next errors on tomcat 7 logs.

24, 2016 10:55:50 AM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem unless you need to use the GDAL plugins: they won't be enabled.
java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path

This is the warning stating GeoServer (through GeoTools) is unable to load your native libs.


I test it by bash gdalinfo.sh which has next code

#!/bin/bash
input=$1
export LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH
CLASSPATH=imageio-ext-gdal-bindings-1.9.2.jar:.
java -classpath "${CLASSPATH}" gdalinfo $input

Which command did you executed?

Did you run “gdalinfo --formats” as suggested in the doc?

I downloaded GDAL192-Ubuntu12 –gcc4.6.3-x86-64.tar and inside /gdal192/javainfo there is gdalinfo.sh script file.

Yep, what I was meaning is which options/params did you used with “gdalinfo”? (as an instance: gdalinfo --formats)

So it give’s me next error log

Native library load failed.
java.lang.UnsatisfiedLinkError: /var/lib/tomcat7/webapps/geoserver/gdal192/libgdaljni.so: ../libgdal.so.1: file too small
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.AllRegister()V
        at org.gdal.gdal.gdalJNI.AllRegister(Native Method)
        at org.gdal.gdal.gdal.AllRegister(gdal.java:475)
        at gdalinfo.main(gdalinfo.java:87)

Could you please report how did you configured the LD_LIBRARY_PATH or your tomcat scripts ?

Yes, of course, this is result of my echo command

echo $LD_LIBRARY_PATH
/var/lib/tomcat7/webapps/geoserver/gdal192/

echo $GDAL_DATA
/var/lib/tomcat7/webapps/geoserver/gdal-data

Do you have any chance to report what “ls -ls /var/lib/tomcat7/webapps/geoserver/gdal192/” returns?

Cheers,

Daniele

I am using Geoserver 2.8.2 on Ubuntu 14.04 and with installed GDAL on my server.

In Image IO-Ext download link http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.12/ native libs available only for Ubuntu 12.04 version,

Note that this specific download should be installed on Ubuntu 12.04 version.

There is no guarantee that they would work on a 14.04 version of Ubuntu (there may be conflict with dependency libraries, resulting into loading, linking incompatibilities).

I would take a look to this discussion:

http://osgeo-org.1560.x6.nabble.com/Failed-to-load-the-GDAL-native-libs-GDAL-PLUGIN-cannot-be-enabled-td5222384.html

which covers the same topic.

Also 1 strange thing that this libs crash my current image mosaic layer.

What do you mean? Can you provide some more details on this?

Where I can find proper native libs?

See the link I provided above.

Please, let us know if you still have issues.

Cheers,

Daniele

Zhandos



Geoserver-users mailing list
Geoserver-users@anonymised.comforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

Yes, I have gdal version 2.0.2 installed previously and I told about it on my first message

I am using Geoserver 2.8.2 on Ubuntu 14.04 and with installed GDAL on my server.

But in discussion you gave me I understand that is not reason of this error

So I use command “ tar –zxvf” and test gdalinfo.sh in javainfo folder and it give me usage info, but in catalina logs I still have the error message.

And my previous image mosaic layer crash with next error

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

java.lang.NoClassDefFoundError: Could not initialize class org.geotools.gce.imagemosaic.Utils

Could not initialize class org.geotools.gce.imagemosaic.Utils

From: dany.geotools@…84… [mailto:dany.geotools@…84…] On Behalf Of Daniele Romagnoli
Sent: Tuesday, April 5, 2016 2:37 PM
To: Керимкулов Жандос Сеитович
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GDAL native lib error during instaling to version 2.8.2

Hi Zhandos,

please read below…

On Tue, Apr 5, 2016 at 6:52 AM, zh.kerimkulov@…7533… <zh.kerimkulov@…7533…> wrote:

Hi Daniele

Thanks for your tips and support.

Next my comments to your questions.

1. I tried to run gdalinfo with param –formats so I got next

root@…7544…:/var/lib/tomcat7/webapps/geoserver/gdal192# gdalinfo --formats

Supported Formats:

VRT -raster- (rw+v): Virtual Raster

GTiff -raster- (rw+vs): GeoTIFF

NITF -raster- (rw+vs): National Imagery Transmission Format

RPFTOC -raster- (rovs): Raster Product Format TOC format

ECRGTOC -raster- (rovs): ECRG TOC format

HFA -raster- (rw+v): Erdas Imagine Images (.img)

SAR_CEOS -raster- (rov): CEOS SAR Image

CEOS -raster- (rov): CEOS Image

JAXAPALSAR -raster- (rov): JAXA PALSAR Product Reader (Level 1.1/1.5)

GFF -raster- (rov): Ground-based SAR Applications Testbed File Format (.gff)

ELAS -raster- (rw+v): ELAS

AIG -raster- (rov): Arc/Info Binary Grid

AAIGrid -raster- (rwv): Arc/Info ASCII Grid

GRASSASCIIGrid -raster- (rov): GRASS ASCII Grid

SDTS -raster- (rov): SDTS Raster

OGDI -raster- (ros): OGDI Bridge

DTED -raster- (rwv): DTED Elevation Raster

PNG -raster- (rwv): Portable Network Graphics

JPEG -raster- (rwv): JPEG JFIF

MEM -raster- (rw+): In Memory Raster

JDEM -raster- (rov): Japanese DEM (.mem)

GIF -raster- (rwv): Graphics Interchange Format (.gif)

BIGGIF -raster- (rov): Graphics Interchange Format (.gif)

ESAT -raster- (rov): Envisat Image Format

BSB -raster- (rov): Maptech BSB Nautical Charts

XPM -raster- (rwv): X11 PixMap Format

BMP -raster- (rw+v): MS Windows Device Independent Bitmap

DIMAP -raster- (rov): SPOT DIMAP

AirSAR -raster- (rov): AirSAR Polarimetric Image

RS2 -raster- (ros): RadarSat 2 XML Product

PCIDSK -raster,vector- (rw+v): PCIDSK Database File

PCRaster -raster- (rw+): PCRaster Raster File

ILWIS -raster- (rw+v): ILWIS Raster Map

SGI -raster- (rw+): SGI Image File Format 1.0

SRTMHGT -raster- (rwv): SRTMHGT File Format

Leveller -raster- (rw+): Leveller heightfield

Terragen -raster- (rw+): Terragen heightfield

GMT -raster- (rw): GMT NetCDF Grid Format

netCDF -raster- (rw+s): Network Common Data Format

HDF4 -raster- (ros): Hierarchical Data Format Release 4

HDF4Image -raster- (rw+): HDF4 Dataset

ISIS3 -raster- (rov): USGS Astrogeology ISIS cube (Version 3)

ISIS2 -raster- (rw+v): USGS Astrogeology ISIS cube (Version 2)

PDS -raster- (rov): NASA Planetary Data System

VICAR -raster- (rov): MIPL VICAR file

TIL -raster- (rov): EarthWatch .TIL

ERS -raster- (rw+v): ERMapper .ers Labelled

L1B -raster- (rovs): NOAA Polar Orbiter Level 1b Data Set

FIT -raster- (rwv): FIT Image

GRIB -raster- (rov): GRIdded Binary (.grb)

JPEG2000 -raster,vector- (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1), based on Jasper library

RMF -raster- (rw+v): Raster Matrix Format

MSGN -raster- (ro): EUMETSAT Archive native (.nat)

RST -raster- (rw+v): Idrisi Raster A.1

INGR -raster- (rw+v): Intergraph Raster

GSAG -raster- (rwv): Golden Software ASCII Grid (.grd)

GSBG -raster- (rw+v): Golden Software Binary Grid (.grd)

GS7BG -raster- (rw+v): Golden Software 7 Binary Grid (.grd)

COSAR -raster- (rov): COSAR Annotated Binary Matrix (TerraSAR-X)

TSX -raster- (rov): TerraSAR-X Product

COASP -raster- (ro): DRDC COASP SAR Processor Raster

R -raster- (rwv): R Object Data Store

MAP -raster- (rov): OziExplorer .MAP

PNM -raster- (rw+v): Portable Pixmap Format (netpbm)

DOQ1 -raster- (rov): USGS DOQ (Old Style)

DOQ2 -raster- (rov): USGS DOQ (New Style)

ENVI -raster- (rw+v): ENVI .hdr Labelled

EHdr -raster- (rw+v): ESRI .hdr Labelled

GenBin -raster- (rov): Generic Binary (.hdr Labelled)

PAux -raster- (rw+): PCI .aux Labelled

MFF -raster- (rw+v): Vexcel MFF Raster

MFF2 -raster- (rw+): Vexcel MFF2 (HKV) Raster

FujiBAS -raster- (ro): Fuji BAS Scanner Image

GSC -raster- (rov): GSC Geogrid

FAST -raster- (rov): EOSAT FAST Format

BT -raster- (rw+v): VTP .bt (Binary Terrain) 1.3 Format

LAN -raster- (rw+v): Erdas .LAN/.GIS

CPG -raster- (ro): Convair PolGASP

IDA -raster- (rw+v): Image Data and Analysis

NDF -raster- (rov): NLAPS Data Format

EIR -raster- (rov): Erdas Imagine Raw

DIPEx -raster- (rov): DIPEx

LCP -raster- (rwv): FARSITE v.4 Landscape File (.lcp)

GTX -raster- (rw+v): NOAA Vertical Datum .GTX

LOSLAS -raster- (rov): NADCON .los/.las Datum Grid Shift

NTv2 -raster- (rw+vs): NTv2 Datum Grid Shift

CTable2 -raster- (rw+v): CTable2 Datum Grid Shift

ACE2 -raster- (rov): ACE2

SNODAS -raster- (rov): Snow Data Assimilation System

KRO -raster- (rw+v): KOLOR Raw

ROI_PAC -raster- (rw+v): ROI_PAC raster

ARG -raster- (rwv): Azavea Raster Grid format

RIK -raster- (rov): Swedish Grid RIK (.rik)

USGSDEM -raster- (rwv): USGS Optional ASCII DEM (and CDED)

GXF -raster- (ro): GeoSoft Grid Exchange Format

BAG -raster- (ro): Bathymetry Attributed Grid

HDF5 -raster- (ros): Hierarchical Data Format Release 5

HDF5Image -raster- (ro): HDF5 Dataset

NWT_GRD -raster- (rov): Northwood Numeric Grid Format .grd/.tab

NWT_GRC -raster- (rov): Northwood Classified Grid Format .grc/.tab

ADRG -raster- (rw+vs): ARC Digitized Raster Graphics

SRP -raster- (rovs): Standard Raster Product (ASRP/USRP)

BLX -raster- (rw): Magellan topo (.blx)

Rasterlite -raster- (rws): Rasterlite

PostGISRaster -raster- (rws): PostGIS Raster driver

SAGA -raster- (rw+v): SAGA GIS Binary Grid (.sdat)

KMLSUPEROVERLAY -raster- (rwv): Kml Super Overlay

XYZ -raster- (rwv): ASCII Gridded XYZ

HF2 -raster- (rwv): HF2/HFZ heightfield raster

PDF -raster,vector- (w+): Geospatial PDF

OZI -raster- (rov): OziExplorer Image File

CTG -raster- (rov): USGS LULC Composite Theme Grid

E00GRID -raster- (rov): Arc/Info Export E00 GRID

ZMap -raster- (rwv): ZMap Plus Grid

NGSGEOID -raster- (rov): NOAA NGS Geoid Height Grids

MBTiles -raster- (rov): MBTiles

IRIS -raster- (rov): IRIS data (.PPI, .CAPPi etc)

GPKG -raster,vector- (rw+vs): GeoPackage

The list of available formats looks really long to me. It seems like there is another GDAL installation around on your machine which is used instead of the downloaded one. (Could you try a “locate gdalinfo” command?)

I would use the gdalinfo.sh you can find within the javainfo folder instead.

2. I have configured the LD_LIBRARY_PATH with next commands

export LD_LIBRARY_PATH=/var/lib/tomcat7/webapps/geoserver/gdal192/

export PATH=$PATH:/var/lib/tomcat7/webapps/geoserver/gdal192/

export GDAL_DATA=/var/lib/tomcat7/webapps/geoserver/gdal-data/

3. The report what “ls -ls /var/lib/tomcat7/webapps/geoserver/gdal192/” returns is:

56 -rwxrwxrwx 1 tomcat7 odmin 54931 dec 10 2012 gdalinfo

4 drwxrwxrwx 2 tomcat7 odmin 4096 march 24 09:26 javainfo

112 -rwxrwxrwx 1 tomcat7 odmin 112705 nov. 22 2012 libgdalconstjni.so

1284 -rwxrwxrwx 1 tomcat7 odmin 1312184 nov. 22 2012 libgdaljni.so

4 -rwxrwxrwx 1 tomcat7 odmin 17 nov. 22 2012 libgdal.so

4 -rwxrwxrwx 1 tomcat7 odmin 17 nov. 22 2012 libgdal.so.1

43016 -rwxrwxrwx 1 tomcat7 odmin 44048076 nov. 22 2012 libgdal.so.1.16.2

4960 -rwxrwxrwx 1 tomcat7 odmin 5078163 nov. 26 2012 libltidsdk.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSCnet.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSCnet.so.0

580 -rwxrwxrwx 1 tomcat7 odmin 590457 nov. 22 2012 libNCSCnet.so.0.0.0

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSEcwC.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSEcwC.so.0

80 -rwxrwxrwx 1 tomcat7 odmin 81508 nov. 22 2012 libNCSEcwC.so.0.0.0

4 -rwxrwxrwx 1 tomcat7 odmin 18 nov. 22 2012 libNCSEcw.so

4 -rwxrwxrwx 1 tomcat7 odmin 18 nov. 22 2012 libNCSEcw.so.0

8444 -rwxrwxrwx 1 tomcat7 odmin 8644546 nov. 22 2012 libNCSEcw.so.0.0.0

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSUtil.so

4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSUtil.so.0

700 -rwxrwxrwx 1 tomcat7 odmin 713782 nov. 22 2012 libNCSUtil.so.0.0.0

596 -rwxrwxrwx 1 tomcat7 odmin 608641 nov. 22 2012 libogrjni.so

464 -rwxrwxrwx 1 tomcat7 odmin 472066 nov. 22 2012 libosrjni.so

I don’t see symbolic links in this output. How did you extract the tar.gz on your disk?

Using the archive manager or the “tar -zxvf” command should preserve the links so that your output should be similar to something like this:

4.0K drwxrwxr-x 2 dromagno dromagno 4.0K Mar 21 2013 javainfo

92K -rwxr-xr-x 1 dromagno dromagno 92K Dec 10 2012 libgdalconstjni.so
916K -rwxr-xr-x 1 dromagno dromagno 915K Dec 10 2012 libgdaljni.so
436K -rwxr-xr-x 1 dromagno dromagno 436K Dec 10 2012 libogrjni.so
340K -rwxr-xr-x 1 dromagno dromagno 339K Dec 10 2012 libosrjni.so
48K -rwxr-xr-x 1 dromagno dromagno 45K Dec 10 2012 gdalinfo
4.8M -rwxr-xr-x 1 dromagno dromagno 4.8M Dec 10 2012 libltidsdk.so
0 lrwxrwxrwx 1 dromagno dromagno 17 Dec 10 2012 libgdal.so → libgdal.so.1.16.2
0 lrwxrwxrwx 1 dromagno dromagno 17 Dec 10 2012 libgdal.so.1 → libgdal.so.1.16.2
34M -rwxr-xr-x 1 dromagno dromagno 34M Dec 10 2012 libgdal.so.1.16.2
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSCnet.so → libNCSCnet.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSCnet.so.0 → libNCSCnet.so.0.0.0
456K -rwxr-xr-x 1 dromagno dromagno 456K Dec 10 2012 libNCSCnet.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSEcwC.so → libNCSEcwC.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSEcwC.so.0 → libNCSEcwC.so.0.0.0
76K -rwxr-xr-x 1 dromagno dromagno 73K Dec 10 2012 libNCSEcwC.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 18 Dec 10 2012 libNCSEcw.so → libNCSEcw.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 18 Dec 10 2012 libNCSEcw.so.0 → libNCSEcw.so.0.0.0
6.9M -rwxr-xr-x 1 dromagno dromagno 6.8M Dec 10 2012 libNCSEcw.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSUtil.so → libNCSUtil.so.0.0.0
0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 libNCSUtil.so.0 → libNCSUtil.so.0.0.0
580K -rwxr-xr-x 1 dromagno dromagno 579K Dec 10 2012 libNCSUtil.so.0.0.0

Note the symbolic links (I have marked them in bold).

Could you double check?

Hope this helps.

Cheers,

Daniele

From: dany.geotools@…84… [mailto:dany.geotools@…84…] On Behalf Of Daniele Romagnoli
Sent: Monday, April 4, 2016 6:38 PM
To: Керимкулов Жандос Сеитович; geoserver-users@lists.sourceforge.net

Subject: Re: [Geoserver-users] GDAL native lib error during instaling to version 2.8.2

Hi Zandos,

please keep the list on CC so that other users can provide their feedbacks as well as retrieve information from the discussion in the future, though search.

On Mon, Apr 4, 2016 at 2:26 PM, zh.kerimkulov@…7533… <zh.kerimkulov@…7533…> wrote:

From: dany.geotools@…84… [mailto:dany.geotools@…84…] On Behalf Of Daniele Romagnoli
Sent: Monday, April 4, 2016 5:08 PM
To: Керимкулов Жандос Сеитович
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GDAL native lib error during instaling to version 2.8.2

Hi Zandos,

thanks for having moved the discussion from JIRA to this list.

On Mon, Apr 4, 2016 at 12:18 PM, zh.kerimkulov@…7533… <zh.kerimkulov@…7533…> wrote:

Hi there

During installation GDAL Image formats by http://docs.geoserver.org/latest/en/user/data/raster/gdal.html i had next errors on tomcat 7 logs.

24, 2016 10:55:50 AM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem unless you need to use the GDAL plugins: they won't be enabled.
java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path

This is the warning stating GeoServer (through GeoTools) is unable to load your native libs.


I test it by bash gdalinfo.sh which has next code

#!/bin/bash
input=$1
export LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH
CLASSPATH=imageio-ext-gdal-bindings-1.9.2.jar:.
java -classpath "${CLASSPATH}" gdalinfo $input

Which command did you executed?

Did you run “gdalinfo --formats” as suggested in the doc?

I downloaded GDAL192-Ubuntu12 –gcc4.6.3-x86-64.tar and inside /gdal192/javainfo there is gdalinfo.sh script file.

Yep, what I was meaning is which options/params did you used with “gdalinfo”? (as an instance: gdalinfo --formats)

So it give’s me next error log

Native library load failed.
java.lang.UnsatisfiedLinkError: /var/lib/tomcat7/webapps/geoserver/gdal192/libgdaljni.so: ../libgdal.so.1: file too small
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.AllRegister()V
        at org.gdal.gdal.gdalJNI.AllRegister(Native Method)
        at org.gdal.gdal.gdal.AllRegister(gdal.java:475)
        at gdalinfo.main(gdalinfo.java:87)

Could you please report how did you configured the LD_LIBRARY_PATH or your tomcat scripts ?

Yes, of course, this is result of my echo command

echo $LD_LIBRARY_PATH
/var/lib/tomcat7/webapps/geoserver/gdal192/

echo $GDAL_DATA
/var/lib/tomcat7/webapps/geoserver/gdal-data

Do you have any chance to report what “ls -ls /var/lib/tomcat7/webapps/geoserver/gdal192/” returns?

Cheers,

Daniele

I am using Geoserver 2.8.2 on Ubuntu 14.04 and with installed GDAL on my server.

In Image IO-Ext download link http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.12/ native libs available only for Ubuntu 12.04 version,

Note that this specific download should be installed on Ubuntu 12.04 version.

There is no guarantee that they would work on a 14.04 version of Ubuntu (there may be conflict with dependency libraries, resulting into loading, linking incompatibilities).

I would take a look to this discussion:

http://osgeo-org.1560.x6.nabble.com/Failed-to-load-the-GDAL-native-libs-GDAL-PLUGIN-cannot-be-enabled-td5222384.html

which covers the same topic.

Also 1 strange thing that this libs crash my current image mosaic layer.

What do you mean? Can you provide some more details on this?

Where I can find proper native libs?

See the link I provided above.

Please, let us know if you still have issues.

Cheers,

Daniele

Zhandos



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

On Tue, Apr 5, 2016 at 1:10 PM, zh.kerimkulov@anonymised.com <
zh.kerimkulov@anonymised.com> wrote:

Yes, I have gdal version 2.0.2 installed previously and I told about it on
my first message

I am using Geoserver 2.8.2 on Ubuntu 14.04 and with installed GDAL on my
server.

Ok. There was a misunderstanding then: I was thinking that you were
referring to the GDAL lib you have installed for GeoServer from ImageIO-EXT
since you didn't specified any version. Sorry about that.

But in discussion you gave me I understand that is not reason of this error

That could be the problem instead.
Checking back your configs:

*export LD_LIBRARY_PATH=/var/lib/tomcat7/webapps/geoserver/gdal192/*

*export PATH=$PATH:/var/lib/tomcat7/webapps/geoserver/gdal192/*

I would make sure that /var/lib/tomcat7/webapps/geoserver/gdal192 is the
first entry of your PATH and LD_LIBRARY_PATH.

Otherwise, there is high risk that the 2.0.2 version of GDAL is used
instead of the 1.9.2 which may results into GeoServer GDAL plugins unable
to being loaded.

So I use command “ tar –zxvf”

So are you seeing symbolic links now right? (Wondering if the previous
"File too small" error message was related to that)

and test gdalinfo.sh in javainfo folder and it give me usage info

( I would also add the --formats param to double check)

, but in catalina logs I still have the error message.

And my previous image mosaic layer crash with next error

*<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://10.1.99.42:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd
<http://10.1.99.42:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd&gt;&quot;&gt;
<ServiceExceptionReport version="1.1.1" > <ServiceException>*

* java.lang.NoClassDefFoundError: Could not initialize class
org.geotools.gce.imagemosaic.Utils*

*Could not initialize class org.geotools.gce.imagemosaic.Utils*

*</ServiceException></ServiceExceptionReport>*

Do you have a longer stack trace for this? (You may also consider
increasing the logging level).

Cheers,
Daniele

*From:* dany.geotools@anonymised.com [mailto:dany.geotools@anonymised.com] *On
Behalf Of *Daniele Romagnoli
*Sent:* Tuesday, April 5, 2016 2:37 PM

*To:* Керимкулов Жандос Сеитович
*Cc:* geoserver-users@lists.sourceforge.net
*Subject:* Re: [Geoserver-users] GDAL native lib error during instaling
to version 2.8.2

Hi Zhandos,

please read below...

On Tue, Apr 5, 2016 at 6:52 AM, zh.kerimkulov@anonymised.com <
zh.kerimkulov@anonymised.com> wrote:

Hi Daniele

Thanks for your tips and support.

Next my comments to your questions.

*1.* *I tried to run gdalinfo with param –formats so I got next*

root@anonymised.com:/var/lib/tomcat7/webapps/geoserver/gdal192# gdalinfo
--formats

*Supported Formats:*

* VRT -raster- (rw+v): Virtual Raster*

* GTiff -raster- (rw+vs): GeoTIFF*

* NITF -raster- (rw+vs): National Imagery Transmission Format*

* RPFTOC -raster- (rovs): Raster Product Format TOC format*

* ECRGTOC -raster- (rovs): ECRG TOC format*

* HFA -raster- (rw+v): Erdas Imagine Images (.img)*

* SAR_CEOS -raster- (rov): CEOS SAR Image*

* CEOS -raster- (rov): CEOS Image*

* JAXAPALSAR -raster- (rov): JAXA PALSAR Product Reader (Level 1.1/1.5)*

* GFF -raster- (rov): Ground-based SAR Applications Testbed File Format
(.gff)*

* ELAS -raster- (rw+v): ELAS*

* AIG -raster- (rov): Arc/Info Binary Grid*

* AAIGrid -raster- (rwv): Arc/Info ASCII Grid*

* GRASSASCIIGrid -raster- (rov): GRASS ASCII Grid*

* SDTS -raster- (rov): SDTS Raster*

* OGDI -raster- (ros): OGDI Bridge*

* DTED -raster- (rwv): DTED Elevation Raster*

* PNG -raster- (rwv): Portable Network Graphics*

* JPEG -raster- (rwv): JPEG JFIF*

* MEM -raster- (rw+): In Memory Raster*

* JDEM -raster- (rov): Japanese DEM (.mem)*

* GIF -raster- (rwv): Graphics Interchange Format (.gif)*

* BIGGIF -raster- (rov): Graphics Interchange Format (.gif)*

* ESAT -raster- (rov): Envisat Image Format*

* BSB -raster- (rov): Maptech BSB Nautical Charts*

* XPM -raster- (rwv): X11 PixMap Format*

* BMP -raster- (rw+v): MS Windows Device Independent Bitmap*

* DIMAP -raster- (rov): SPOT DIMAP*

* AirSAR -raster- (rov): AirSAR Polarimetric Image*

* RS2 -raster- (ros): RadarSat 2 XML Product*

* PCIDSK -raster,vector- (rw+v): PCIDSK Database File*

* PCRaster -raster- (rw+): PCRaster Raster File*

* ILWIS -raster- (rw+v): ILWIS Raster Map*

* SGI -raster- (rw+): SGI Image File Format 1.0*

* SRTMHGT -raster- (rwv): SRTMHGT File Format*

* Leveller -raster- (rw+): Leveller heightfield*

* Terragen -raster- (rw+): Terragen heightfield*

* GMT -raster- (rw): GMT NetCDF Grid Format*

* netCDF -raster- (rw+s): Network Common Data Format*

* HDF4 -raster- (ros): Hierarchical Data Format Release 4*

* HDF4Image -raster- (rw+): HDF4 Dataset*

* ISIS3 -raster- (rov): USGS Astrogeology ISIS cube (Version 3)*

* ISIS2 -raster- (rw+v): USGS Astrogeology ISIS cube (Version 2)*

* PDS -raster- (rov): NASA Planetary Data System*

* VICAR -raster- (rov): MIPL VICAR file*

* TIL -raster- (rov): EarthWatch .TIL*

* ERS -raster- (rw+v): ERMapper .ers Labelled*

* L1B -raster- (rovs): NOAA Polar Orbiter Level 1b Data Set*

* FIT -raster- (rwv): FIT Image*

* GRIB -raster- (rov): GRIdded Binary (.grb)*

* JPEG2000 -raster,vector- (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1),
based on Jasper library*

* RMF -raster- (rw+v): Raster Matrix Format*

* MSGN -raster- (ro): EUMETSAT Archive native (.nat)*

* RST -raster- (rw+v): Idrisi Raster A.1*

* INGR -raster- (rw+v): Intergraph Raster*

* GSAG -raster- (rwv): Golden Software ASCII Grid (.grd)*

* GSBG -raster- (rw+v): Golden Software Binary Grid (.grd)*

* GS7BG -raster- (rw+v): Golden Software 7 Binary Grid (.grd)*

* COSAR -raster- (rov): COSAR Annotated Binary Matrix (TerraSAR-X)*

* TSX -raster- (rov): TerraSAR-X Product*

* COASP -raster- (ro): DRDC COASP SAR Processor Raster*

* R -raster- (rwv): R Object Data Store*

* MAP -raster- (rov): OziExplorer .MAP*

* PNM -raster- (rw+v): Portable Pixmap Format (netpbm)*

* DOQ1 -raster- (rov): USGS DOQ (Old Style)*

* DOQ2 -raster- (rov): USGS DOQ (New Style)*

* ENVI -raster- (rw+v): ENVI .hdr Labelled*

* EHdr -raster- (rw+v): ESRI .hdr Labelled*

* GenBin -raster- (rov): Generic Binary (.hdr Labelled)*

* PAux -raster- (rw+): PCI .aux Labelled*

* MFF -raster- (rw+v): Vexcel MFF Raster*

* MFF2 -raster- (rw+): Vexcel MFF2 (HKV) Raster*

* FujiBAS -raster- (ro): Fuji BAS Scanner Image*

* GSC -raster- (rov): GSC Geogrid*

* FAST -raster- (rov): EOSAT FAST Format*

* BT -raster- (rw+v): VTP .bt (Binary Terrain) 1.3 Format*

* LAN -raster- (rw+v): Erdas .LAN/.GIS*

* CPG -raster- (ro): Convair PolGASP*

* IDA -raster- (rw+v): Image Data and Analysis*

* NDF -raster- (rov): NLAPS Data Format*

* EIR -raster- (rov): Erdas Imagine Raw*

* DIPEx -raster- (rov): DIPEx*

* LCP -raster- (rwv): FARSITE v.4 Landscape File (.lcp)*

* GTX -raster- (rw+v): NOAA Vertical Datum .GTX*

* LOSLAS -raster- (rov): NADCON .los/.las Datum Grid Shift*

* NTv2 -raster- (rw+vs): NTv2 Datum Grid Shift*

* CTable2 -raster- (rw+v): CTable2 Datum Grid Shift*

* ACE2 -raster- (rov): ACE2*

* SNODAS -raster- (rov): Snow Data Assimilation System*

* KRO -raster- (rw+v): KOLOR Raw*

* ROI_PAC -raster- (rw+v): ROI_PAC raster*

* ARG -raster- (rwv): Azavea Raster Grid format*

* RIK -raster- (rov): Swedish Grid RIK (.rik)*

* USGSDEM -raster- (rwv): USGS Optional ASCII DEM (and CDED)*

* GXF -raster- (ro): GeoSoft Grid Exchange Format*

* BAG -raster- (ro): Bathymetry Attributed Grid*

* HDF5 -raster- (ros): Hierarchical Data Format Release 5*

* HDF5Image -raster- (ro): HDF5 Dataset*

* NWT_GRD -raster- (rov): Northwood Numeric Grid Format .grd/.tab*

* NWT_GRC -raster- (rov): Northwood Classified Grid Format .grc/.tab*

* ADRG -raster- (rw+vs): ARC Digitized Raster Graphics*

* SRP -raster- (rovs): Standard Raster Product (ASRP/USRP)*

* BLX -raster- (rw): Magellan topo (.blx)*

* Rasterlite -raster- (rws): Rasterlite*

* PostGISRaster -raster- (rws): PostGIS Raster driver*

* SAGA -raster- (rw+v): SAGA GIS Binary Grid (.sdat)*

* KMLSUPEROVERLAY -raster- (rwv): Kml Super Overlay*

* XYZ -raster- (rwv): ASCII Gridded XYZ*

* HF2 -raster- (rwv): HF2/HFZ heightfield raster*

* PDF -raster,vector- (w+): Geospatial PDF*

* OZI -raster- (rov): OziExplorer Image File*

* CTG -raster- (rov): USGS LULC Composite Theme Grid*

* E00GRID -raster- (rov): Arc/Info Export E00 GRID*

* ZMap -raster- (rwv): ZMap Plus Grid*

* NGSGEOID -raster- (rov): NOAA NGS Geoid Height Grids*

* MBTiles -raster- (rov): MBTiles*

* IRIS -raster- (rov): IRIS data (.PPI, .CAPPi etc)*

* GPKG -raster,vector- (rw+vs): GeoPackage*

The list of available formats looks really long to me. It seems like there
is another GDAL installation around on your machine which is used instead
of the downloaded one. (Could you try a "locate gdalinfo" command?)

I would use the gdalinfo.sh you can find within the *javainfo* folder
instead.

*2.* *I have configured the LD_LIBRARY_PATH with next commands*

*export LD_LIBRARY_PATH=/var/lib/tomcat7/webapps/geoserver/gdal192/*

*export PATH=$PATH:/var/lib/tomcat7/webapps/geoserver/gdal192/*

*export GDAL_DATA=/var/lib/tomcat7/webapps/geoserver/gdal-data/*

*3.* *The report what "ls -ls
/var/lib/tomcat7/webapps/geoserver/gdal192/" returns is:*

56 -rwxrwxrwx 1 tomcat7 odmin 54931 dec 10 2012 gdalinfo

    4 drwxrwxrwx 2 tomcat7 odmin 4096 march 24 09:26 javainfo

  112 -rwxrwxrwx 1 tomcat7 odmin 112705 nov. 22 2012 libgdalconstjni.so

1284 -rwxrwxrwx 1 tomcat7 odmin 1312184 nov. 22 2012 libgdaljni.so

    4 -rwxrwxrwx 1 tomcat7 odmin 17 nov. 22 2012 libgdal.so

    4 -rwxrwxrwx 1 tomcat7 odmin 17 nov. 22 2012 libgdal.so.1

43016 -rwxrwxrwx 1 tomcat7 odmin 44048076 nov. 22 2012 libgdal.so.1.16.2

4960 -rwxrwxrwx 1 tomcat7 odmin 5078163 nov. 26 2012 libltidsdk.so

    4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSCnet.so

    4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSCnet.so.0

  580 -rwxrwxrwx 1 tomcat7 odmin 590457 nov. 22 2012
libNCSCnet.so.0.0.0

    4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSEcwC.so

    4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSEcwC.so.0

   80 -rwxrwxrwx 1 tomcat7 odmin 81508 nov. 22 2012
libNCSEcwC.so.0.0.0

    4 -rwxrwxrwx 1 tomcat7 odmin 18 nov. 22 2012 libNCSEcw.so

    4 -rwxrwxrwx 1 tomcat7 odmin 18 nov. 22 2012 libNCSEcw.so.0

8444 -rwxrwxrwx 1 tomcat7 odmin 8644546 nov. 22 2012 libNCSEcw.so.0.0.0

    4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSUtil.so

    4 -rwxrwxrwx 1 tomcat7 odmin 19 nov. 22 2012 libNCSUtil.so.0

  700 -rwxrwxrwx 1 tomcat7 odmin 713782 nov. 22 2012
libNCSUtil.so.0.0.0

  596 -rwxrwxrwx 1 tomcat7 odmin 608641 nov. 22 2012 libogrjni.so

  464 -rwxrwxrwx 1 tomcat7 odmin 472066 nov. 22 2012 libosrjni.so

I don't see symbolic links in this output. How did you extract the tar.gz
on your disk?

Using the archive manager or the "tar -zxvf" command should preserve the
links so that your output should be similar to something like this:

4.0K drwxrwxr-x 2 dromagno dromagno 4.0K Mar 21 2013 javainfo

92K -rwxr-xr-x 1 dromagno dromagno 92K Dec 10 2012 libgdalconstjni.so
916K -rwxr-xr-x 1 dromagno dromagno 915K Dec 10 2012 libgdaljni.so
436K -rwxr-xr-x 1 dromagno dromagno 436K Dec 10 2012 libogrjni.so
340K -rwxr-xr-x 1 dromagno dromagno 339K Dec 10 2012 libosrjni.so
48K -rwxr-xr-x 1 dromagno dromagno 45K Dec 10 2012 gdalinfo
4.8M -rwxr-xr-x 1 dromagno dromagno 4.8M Dec 10 2012 libltidsdk.so
   0 lrwxrwxrwx 1 dromagno dromagno 17 Dec 10 2012 *libgdal.so ->
libgdal.so.1.16.2*
   0 lrwxrwxrwx 1 dromagno dromagno 17 Dec 10 2012 *libgdal.so.1 ->
libgdal.so.1.16.2*
34M -rwxr-xr-x 1 dromagno dromagno 34M Dec 10 2012 libgdal.so.1.16.2
   0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 *libNCSCnet.so ->
libNCSCnet.so.0.0.0*
   0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 *libNCSCnet.so.0 ->
libNCSCnet.so.0.0.0*
456K -rwxr-xr-x 1 dromagno dromagno 456K Dec 10 2012 libNCSCnet.so.0.0.0
   0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 *libNCSEcwC.so ->
libNCSEcwC.so.0.0.0*
   0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 *libNCSEcwC.so.0 ->
libNCSEcwC.so.0.0.0*
76K -rwxr-xr-x 1 dromagno dromagno 73K Dec 10 2012 libNCSEcwC.so.0.0.0
   0 lrwxrwxrwx 1 dromagno dromagno 18 Dec 10 2012 *libNCSEcw.so ->
libNCSEcw.so.0.0.0*
   0 lrwxrwxrwx 1 dromagno dromagno 18 Dec 10 2012 *libNCSEcw.so.0 ->
libNCSEcw.so.0.0.0*
6.9M -rwxr-xr-x 1 dromagno dromagno 6.8M Dec 10 2012 libNCSEcw.so.0.0.0
   0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 *libNCSUtil.so ->
libNCSUtil.so.0.0.0*
   0 lrwxrwxrwx 1 dromagno dromagno 19 Dec 10 2012 *libNCSUtil.so.0 ->
libNCSUtil.so.0.0.0*
580K -rwxr-xr-x 1 dromagno dromagno 579K Dec 10 2012 libNCSUtil.so.0.0.0

Note the symbolic links (I have marked them in bold).

Could you double check?

Hope this helps.

Cheers,

Daniele

*From:* dany.geotools@anonymised.com [mailto:dany.geotools@anonymised.com] *On
Behalf Of *Daniele Romagnoli
*Sent:* Monday, April 4, 2016 6:38 PM
*To:* Керимкулов Жандос Сеитович; geoserver-users@lists.sourceforge.net

*Subject:* Re: [Geoserver-users] GDAL native lib error during instaling
to version 2.8.2

Hi Zandos,

please keep the list on CC so that other users can provide their feedbacks
as well as retrieve information from the discussion in the future, though
search.

On Mon, Apr 4, 2016 at 2:26 PM, zh.kerimkulov@anonymised.com <
zh.kerimkulov@anonymised.com> wrote:

*From:* dany.geotools@anonymised.com [mailto:dany.geotools@anonymised.com] *On
Behalf Of *Daniele Romagnoli
*Sent:* Monday, April 4, 2016 5:08 PM
*To:* Керимкулов Жандос Сеитович
*Cc:* geoserver-users@lists.sourceforge.net
*Subject:* Re: [Geoserver-users] GDAL native lib error during instaling
to version 2.8.2

Hi Zandos,

thanks for having moved the discussion from JIRA to this list.

On Mon, Apr 4, 2016 at 12:18 PM, zh.kerimkulov@anonymised.com <
zh.kerimkulov@anonymised.com> wrote:

Hi there

During installation GDAL Image formats by
http://docs.geoserver.org/latest/en/user/data/raster/gdal.html i had next
errors on tomcat 7 logs.

24, 2016 10:55:50 AM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL

WARNING: Failed to load the GDAL native libs. This is not a problem unless you need to use the GDAL plugins: they won't be enabled.

java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path

This is the warning stating GeoServer (through GeoTools) is unable to load
your native libs.

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

I test it by bash gdalinfo.sh which has next code

#!/bin/bash

input=$1

export LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH

CLASSPATH=imageio-ext-gdal-bindings-1.9.2.jar:.

java -classpath "${CLASSPATH}" gdalinfo $input

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

Which command did you executed?

Did you run "gdalinfo --formats" as suggested in the doc?

I downloaded GDAL192-Ubuntu12 –gcc4.6.3-x86-64.tar and inside
/gdal192/javainfo there is gdalinfo.sh script file.

Yep, what I was meaning is which options/params did you used with
"gdalinfo"? (as an instance: gdalinfo --formats)

So it give's me next error log

Native library load failed.

java.lang.UnsatisfiedLinkError: /var/lib/tomcat7/webapps/geoserver/gdal192/libgdaljni.so: ../libgdal.so.1: file too small

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.AllRegister()V

        at org.gdal.gdal.gdalJNI.AllRegister(Native Method)

        at org.gdal.gdal.gdal.AllRegister(gdal.java:475)

        at gdalinfo.main(gdalinfo.java:87)

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

Could you please report how did you configured the LD_LIBRARY_PATH or your
tomcat scripts ?

Yes, of course, this is result of my echo command

echo $LD_LIBRARY_PATH
/var/lib/tomcat7/webapps/geoserver/gdal192/

echo $GDAL_DATA
/var/lib/tomcat7/webapps/geoserver/gdal-data

Do you have any chance to report what "ls -ls
/var/lib/tomcat7/webapps/geoserver/gdal192/" returns?

Cheers,

Daniele

I am using Geoserver 2.8.2 on Ubuntu 14.04 and with installed GDAL on my
server.

In Image IO-Ext download link
http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.12/ native
libs available only for Ubuntu 12.04 version,

Note that this specific download should be installed on Ubuntu 12.04
version.

There is no guarantee that they would work on a 14.04 version of Ubuntu
(there may be conflict with dependency libraries, resulting into loading,
linking incompatibilities).

I would take a look to this discussion:

http://osgeo-org.1560.x6.nabble.com/Failed-to-load-the-GDAL-native-libs-GDAL-PLUGIN-cannot-be-enabled-td5222384.html

which covers the same topic.

Also 1 strange thing that this libs crash my current image mosaic layer.

What do you mean? Can you provide some more details on this?

Where I can find proper native libs?

See the link I provided above.

Please, let us know if you still have issues.

Cheers,

Daniele

Zhandos

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

--

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

--

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.