Linux postgis升級(卸載)


注:postgis卸載或升級都可以按照底下思路執行
 
postgresql安裝在:/usr/local/pgsql
postgis也安裝在:/usr/local/pgsql
 
 
總:
a.由於postgresql和postgis都是源碼安裝, 按理源碼安裝的軟件直接刪除安裝目錄即可
 
b. 但是postgis是安裝到了postgresql底下的,所以直接刪除目錄就不行了
 
c.可以用 make uninstall方法解決
 
cd /usr/resource/pg/plugin/postgis-2.5.0
 
#卸載
make uninstall
 
 
d.升級(或者重裝)
 
#刪除之前的文件
cd ../
rm -f -r postgis-2.5.0
 
#重新解壓安裝
tar -zxvf postgis-2.5.0.tar.gz
cd postgis-2.5.0
./configure --prefix=/usr/local/pgsql --with-gdalconfig=/usr/local/gdal-2.1.2/bin/gdal-config --with-pgconfig=/usr/local/pgsql/bin/pg_config --with-geosconfig=/usr/local/geos-3.7.1/bin/geos-config --with-projdir=/usr/local/proj-4.9.3 --with-xml2config=/usr/local/libxml2-2.9.7/bin/xml2-config --with-jsondir=/usr/local/json-c-0.13.1
make
make install


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM