Tom*_*Geo 13 postgis postgres-9.6
我在Windows机器上安装了Postgres,下载了PostGIS的二进制安装程序并安装了它.我只有一个版本的Postgres,所以没有可能搞乱.
使用二进制安装程序安装PostGIS非常简单,也不会弄乱安装目录.它必须进入Postgres目录.
现在,当我想创建PostGIS扩展时,我收到以下错误:
ERROR: could not open extension control file "C:/APPS/POSTGR~1/pg96/../pg96/share/postgresql/extension/postgis.control": No such file or directory
********** Error **********
ERROR: could not open extension control file "C:/APPS/POSTGR~1/pg96/../pg96/share/postgresql/extension/postgis.control": No such file or directory
SQL state: 58P01
Run Code Online (Sandbox Code Playgroud)
虽然当我进入目录C:\APPS\PostgreSQL\pg96\share\extension然后我确实有一个postgis.control文件存在.
如何使扩展工作?我检查了压缩的PostGIS二进制文件的内容,看起来好像结构保存完好,并且在安装过程中通过二进制安装程序将所有文件复制到相应的目录中.
LKa*_*ipo 24
似乎情况与postgres(PostgreSQL-9.6.3-1-win64-bigsql.exe)和postgis(postgis-bundle-pg96x64-setup-2.3.2-1.exe)的最新版本相同.我复制了文件,直到可以解决所有路径:
C:\PostgreSQL\pg96\share\extension到C:\PostgreSQL\pg96\share\postgresql\extensionpostgis_topology-2.3.dll,postgis-2.3.dll,rtpostgis-2.3.dll,address_standardizer-2.3.dll和ogr_fdw.dll来自C:\PostgreSQL\pg96\lib于C:\PostgreSQL\pg96\lib\postgresql| 归档时间: |
|
| 查看次数: |
8932 次 |
| 最近记录: |