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
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
if you are using windows system download the postgis.bundle.exe
and manually install in C:/(PostgreSQLdirectory/version/ )
and that's all .
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!
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..
Installing this package did the trick for me on my Linux Mint 16 box:
# install hstore postgresql extension.
sudo apt-get install postgresql-contrib
On 14.04, there is postgresql-9.3-postgis-scripts, which contains the postgis.control
file.