GDAL1.9.1 安装脚本

#!/bin/bash
# complie gdal 1.9.1
# zhaosiling 2012-9-28


# tools
yum install gcc-c++
yum install gcc
yum install libpng
yum install libtiff


# proj
wget http://download.osgeo.org/proj/proj-4.8.0.tar.gz
tar -zvxf proj-4.8.0.tar.gz
cd proj-4.8.0
./configure --prefix=/usr/local
make
make install


# geos
cd ..
wget http://download.osgeo.org/geos/geos-3.3.5.tar.bz2
tar -xjf geos-3.3.5.tar.bz2
cd geos-3.3.5
./configure --prefix=/usr/local
make
make install


# gdal
cd .. 
wget http://download.osgeo.org/gdal/gdal-1.9.1.tar.gz
tar -zvxf gdal-1.9.1.tar.gz
cd gdal-1.9.1
./configure --with-static-proj4=/usr/local/lib --with-static-geos=/usr/local/lib --with-threads --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-gif=internal --with-png=internal --with-libz=internal
make 
make install
cd ..


# test
gdal_translate --version
gdalwarp --formats

你可能感兴趣的:(GDAL)