PostgreSQL error when trying to create an extension

后端 未结 15 837

ERROR: could not open extension control file \"/usr/share/postgresql/9.1/extension/postgis.control\": No such file or directory

Is what I get when I tr

相关标签:
15条回答
  • 2020-12-23 19:59

    this work for me

       SELECT PostGIS_full_version();
    

    To create postgisis run above query in query panel

    And for remove postgis from your database run bellow query

       drop extension postgis
    
    0 讨论(0)
  • 2020-12-23 19:59

    if you are using windows system download the postgis.bundle.exe and manually install in C:/(PostgreSQLdirectory/version/ ) and that's all .

    0 讨论(0)
  • 2020-12-23 20:02

    I had the same problem on my Window 8.1 setup.

    I solved it by simply using Application StackBuilder which comes with Postgres and installing PostGIS again (despite not having uninstalled it)

    Works fine now!

    0 讨论(0)
  • 2020-12-23 20:02

    In C:\Program Files\PostgreSQL\9.4 I found uninstall-postgis-bundle-pg94x64-2.1.5-2.exe. Running that fixed my problem, which was caused by a reinstall of PostgreSQL without first uninstalling, and without installing PostGIS the second time around. That's what happens when you more than one person installing stuff..

    0 讨论(0)
  • 2020-12-23 20:06

    Installing this package did the trick for me on my Linux Mint 16 box:

    # install hstore postgresql extension.
    sudo apt-get install postgresql-contrib
    
    0 讨论(0)
  • 2020-12-23 20:06

    On 14.04, there is postgresql-9.3-postgis-scripts, which contains the postgis.control file.

    0 讨论(0)
提交回复
热议问题