CentOS6 + MapServer7.4编译
先升级gcc
1.python3.6
./configure --enable-shared --enable-profiling
make –j 20
make install
2.proj-4.9.3
wget http://download.osgeo.org/proj/proj-4.9.3.tar.gz
tar -zxvf proj-4.9.3.tar.gz
cd proj-4.9.3
./configure
make
make install
3.geos-3.7.2
wget http://download.osgeo.org/geos/geos-3.7.2.tar.bz2
tar -xjf geos-3.7.2.tar.bz2
cd geos-3.7.2
./configure
4.swig-3.0.12
wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz
tar -zxvf swig-3.0.12.tar.gz
/usr/local/bin/ccache-swig
./configure --enable-python PYTHON=
make -j20
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.6 1
sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.6 2
5.GDAL2.3.2
./configure --with-libz=yes --with-libtiff=yes --with-geotiff=yes --with-liblzma=yes --with-geos=/usr/local/bin/geos-config --with-sqlite3=/usr/local --with-proj=/usr/local --with-expat=yes --with-libz=internal --with-libtiff=internal --with-epsilon=yes --with-webp=yes --with-freexl=yes --with-libjson-c=internal --with-python=/usr/local/bin/python3.6 --with-java=/arcgis/java/jdk1.8.0_191 --with-pg=/usr/pgsql-10/bin/pg_config
6.PostGIS10
参考
http://wiki.postgresql.org/wiki/YUM_Installation
https://yum.postgresql.org/repopackages.php
rpm install https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum list postgres*
…..
yum list postgis*
……
9.
vi /etc/profile
export JAVA_HOME=/arcgis/java/jdk1.8.0_191
export JRE_HOME=/arcgis/java/jdk1.8.0_191/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export PATH=/arcgis/java/gdal192-CentOS5.8-gcc4.1.2-x86_64:$PATH
export PATH=/usr/local/bin:/usr/pgsql-10/bin:/arcgis/java/gdal-data:$PATH
export LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/sqlite3/lib:/usr/local/lib:$LD_LIBRARY_PATH
export LD_RUN_PATH=/usr/local/lib64:/usr/local/sqlite3/lib:/usr/local/lib:$LD_RUN_PATH
10.