(轉)Win10下PostgreSQL10與PostGIS安裝


版權聲明:本文為博主原創文章,歡迎轉載。 https://blog.csdn.net/LWJ285149763/article/details/79380643

 

最近在使用矢量數據,因此需要用空間數據庫存儲一下,這里就用到了PostgreSQL10與PostGIS。這里將如何下載安裝和安裝過程中遇到的問題記錄下來。

1.下載和安裝PostgreSQL10

訪問官網: https://www.postgresql.org/,之后跳轉到官網,在官網選擇【Download】
之后,跳轉到下載頁面,如下圖選擇:

在新的頁面,會看到其實是有兩個組織給出的安裝包的,Interactive installer by EnterpriseDB和Graphical installer by BigSQL,強烈建議選擇【Interactive installer by EnterpriseDB】下的下載方式,原因后面會講。這里下載的文件是:

之后下載安裝即可。

 

期間可能遇到VC runtime的問題,結局方案為:

管理員運行cmd,工作目錄切換到postgresql安裝文件所在目錄,運行postgresql-10.2-1-windows-x64.exe --install_runtimes 0 即可

 

2.下載和安裝PostGIS

訪問官網: http://postgis.net/,之后跳轉到官網,在官網選擇【Download】,之后安裝到PostgreSQL的目錄下即可:
之前必須下載那個版本的PostgreSQL的原因是(鏈接: 點擊打開鏈接):
The installers are designed to work with EnterpriseDb PostgreSQL distributions. If you are using BigSQL distribution use the PostGIS available via the BigSQL distribution. If you are on BigSQL (PostgreSQL 9.5+) and need items not available in BigSQL distribution (e.g. SFCGAL, pgRouting, or development versions of PostGIS), you can use the binaries in the experimental section. Note the path you copy to in BigSQL is a little different (e.g. postgresql/lib instead of lib).
意思就是PostGIS的安裝版是為EnterpriseDb PostgreSQL准備的。

 


免責聲明!

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



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