This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
forked from klokantech/gdal-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-gdal-deps.sh
executable file
·44 lines (35 loc) · 1.56 KB
/
install-gdal-deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/env sh
##
# Install GDAL source dependencies
#
# mapbox, mb-util, json
# https://github.com/mapbox/mapbox-cli-py#installation
# https://github.com/mapbox/mbutil#installation
# https://www.npmjs.com/package/json
cd /tmp && \
pip install --user mapboxcli && \
easy_install mbutil && \
sudo ln -sf "$(which nodejs)" /usr/bin/node
# Get source packages
cd /tmp/ && \
wget -q http://s3.amazonaws.com/etc-data.koordinates.com/gdal-travisci/install-libecwj2-ubuntu12.04-64bit.tar.gz && \
wget -q http://s3.amazonaws.com/etc-data.koordinates.com/gdal-travisci/install-libkml-r864-64bit.tar.gz && \
wget -q http://s3.amazonaws.com/etc-data.koordinates.com/gdal-travisci/install-openjpeg-2.0.0-ubuntu12.04-64bit.tar.gz || exit 1
# Install libecwj2
tar xzf install-libecwj2-ubuntu12.04-64bit.tar.gz && \
cp -r install-libecwj2/include/* /usr/local/include && \
cp -r install-libecwj2/lib/* /usr/local/lib || exit 1
# Install libkml
tar xzf install-libkml-r864-64bit.tar.gz && \
cp -r install-libkml/include/* /usr/local/include && \
cp -r install-libkml/lib/* /usr/local/lib || exit 1
# Install openjpeg
tar xzf install-openjpeg-2.0.0-ubuntu12.04-64bit.tar.gz && \
cp -r install-openjpeg/include/* /usr/local/include && \
cp -r install-openjpeg/lib/* /usr/local/lib || exit 1
# Install PDFium
wget --no-verbose http://even.rouault.free.fr/install-pdfium-static-64bit.tar.bz2
tar xjf install-pdfium-static-64bit.tar.bz2
sudo cp -r install-pdfium-static/include/pdfium /usr/local/include
sudo cp -r install-pdfium-static/lib/pdfium /usr/local/lib
ldconfig