Install the following (all this is in the install.sh-script):
-
@development (in repo)
-
SFCGAL-devel (in repo)
-
openjpeg2.0 (from source)
- cmake (in repo)
-
Oracle instant client
-
postgresql96
-
postgresql96-contrib
-
postgresql96-devel
-
postgresql96-libs
-
postgresql96-server
-
postgis2_96
-
postgis2_96-client
-
libpqxx-devel
-
libsqlite3x
GDAL already has built in libraries for the following:
- libz
- libtiff
- libgeotiff
- libpng
- libgif
- libjpeg
- dependencies
- Oracle instant client unzipped and ready
- OpenJpeg source code, must be compiled first
- compile
- gdal-2.2.1.tar.xz (The source code)
- gdal-2.2.1 (Dir with the untouched source code)
- The compile.sh script
- Directories for the different tests
- all for the one with all flags
- none for the one with no flags
There is a directory for every flag we need to compile with. The none
dir is
for the standard compilation, with no flags. The all
is for the one with all
the flags.
- curl
- ecw
- geos
- geotiff
- gif
- jpeg
- libtiff
- openjpeg (jpeg2000)
- oracle (oci)
- png
- postgres
- sqlite3
--with-curl=ARG
ARG
needs to be the location of the file curl-config
.
type locate curl-config
to find out where it is. In this case, it was in
/opt/puppetlabs/puppet/bin/curl-config
--with-ecw=ARG
ARG
needs to be the path to libecw.
Also, libecwj2 must be installed.
- Do not install the rpms. Unzip the zips in stead to an install dir
- You only need these 3 packages - they will all unzip to the same dir: b. basic a. sdk c. sqlplus
- Symbolic links to libocci.so and liblntsh.so
- Symbolic link for every .so-file to new folder /installdir/lib/
- ./configure --with-oci-lib=/installdir/ (It will automatically append /lib)
Get the source code here: 2
Project home page here: 3
- go to source dir
- mkdir build install
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=
pwd
/../install - make
- sudo make install
- sudo make clean
This will need the package libpqxx-devel. Probably also some of the postgresql96-packages, but I am not sure which ones are the minimal requirement.
This will need the package libsqlite3x