[gdal-dev] Not able to build GDAL on RHEL_5 64 bit?

sablok sablok at amazon.com
Wed Jun 22 17:09:16 PDT 2016


I am trying to compile gdal-2.0.2 from source using this tarball
https://trac.osgeo.org/gdal/wiki/DownloadSource I have tried to navigate
through every conceivable error on this mailing list archive to resolve the
issues I have encountered while compiling it from source. The set of
commands I am using to compile it are as follows -:

/export GDAL_BUILD_VERSION=2.0.2
cd ${path}/config/gdal/gdal-$GDAL_BUILD_VERSION && ./configure
--prefix=${build_root} --without-xml2
cd ${path}/config/gdal/gdal-$GDAL_BUILD_VERSION && make clean
cd ${path}/config/gdal/gdal-$GDAL_BUILD_VERSION && make
cd ${path}/config/gdal/gdal-$GDAL_BUILD_VERSION && make install/

and this keeps on failing with the following error -:

/config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_create_module_v2'
config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_malloc'
config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_vfs_register'
config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_prepare_v2'
config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_realloc'
config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_open_v2'
config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_declare_vtab'
config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_vfs_unregister'
config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_vfs_find'
config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_auto_extension'
config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_create_module'
config/gdal/gdal-2.0.2/.libs/libgdal.so: undefined reference to
`sqlite3_clear_bindings'
collect2: ld returned 1 exit status
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory `config/gdal/gdal-2.0.2/apps'
make: *** [apps-target] Error 2/

I have no clue as to why is this happening as this is kinda my first
experience installing gdal from source and with gdal as well. It would be
great if someone can help me out with this issue as this is kinda important.

Thanks in advance.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Not-able-to-build-GDAL-on-RHEL-5-64-bit-tp5272915.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list