wget https://download.osgeo.org/geos/geos-3.8.1.tar.bz2 tar -jxf geos-3.8.1.tar.bz2 cd geos-3.8.1 ./configure --prefix=/usr/local/geos-3.8.1 make && make install
:blush:
安装proj-6.3.2
1 2 3 4 5 6
wget http://download.osgeo.org/proj/proj-6.3.2.tar.gz tar -zxvf proj-6.3.2.tar.gz cd proj-6.3.2 ./configure --prefix=/usr/local/proj-6.3.2 # 编译时遇到下面的问题,说是sqlite版本太低!编译成功再进行下一步! make && make install
wget https://download.osgeo.org/gdal/3.0.4/gdal-3.0.4.tar.gz tar -zxvf gdal-3.0.4.tar.gz cd gdal-3.0.4 # 带pg的配置,具体需要啥可以./configure --help 查看 ./configure --prefix=/usr/local/gdal-3.0.4 --with-pg=yes make # 编译时遇到下面的问题,成功则进行下一步! make install
遇到
1 2 3
collect2: error: ld returned 1 exit status make[1]: *** [GNUmakefile:82: gdalinfo] Error 1 make: *** [GNUmakefile:112: apps-target] Error 2
wget https://github.com/protobuf-c/protobuf-c/releases/download/v1.3.3/protobuf-c-1.3.3.tar.gz tar -xzvf protobuf-c-1.3.3.tar.gz cd protobuf-c-1.3.3 export PKG_CONFIG_PATH=/usr/local/protobuf-3.11.4/lib/pkgconfig ./configure --prefix=/usr/local/protobuf-c-1.3.3 make && make install
wget http://distfiles.macports.org/cgal/cgal-4.14.3.tar.xz xz -d CGAL-4.14.3.tar.xz tar -xvf CGAL-4.14.3.tar cd CGAL-4.14.3 mkdir build && cd build cmake .. make && make install
安装pcre
1 2 3 4 5 6 7
wget https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz tar -xzvf pcre-8.44.tar.gz cd pcre-8.44 ./configure --enable-utf8 --prefix=/usr/local/pcre-8.44 make && make intall echo"/usr/local/pcre/lib" > /etc/ld.so.conf.d/pcre-8.44.conf ldconfig
安装SFCGAL
遇到以下这个问题:
1 2
c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report
wget https://github.com/Oslandia/SFCGAL/archive/v1.3.7.tar.gz tar -zxvf SFCGAL-1.3.7.tar.gz cd SFCGAL-1.3.7 mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr/local/sfcgal-1.3.7 .. make && make install
装完之后释放空间:
1 2 3
swapoff -a #详细的用法可以:swapoff --help #查看当前内存使用情况:free -m
wget https://github.com/pgRouting/pgrouting/releases/download/v3.0.2/pgrouting-3.0.2.tar.gz tar -zxvf pgrouting-3.0.2.tar.gz cd pgrouting-3.0.2 mkdir build && cd build #引入postgres的环境变量 source /home/postgres/.bashrc cmake .. make make install