3

I am on Ubuntu 14.04. When I am installing PostGIS-2.1, it's asking for libgdal1 library. But when I am installing libgdal1, it's removing Grass and GDAL.

Can someone please guide me how to install Grass, GDAL and PostGIS?

GforGIS
  • 3,126
  • 3
  • 19
  • 38
Zia
  • 1,158
  • 1
  • 11
  • 28
  • Duplicate to http://gis.stackexchange.com/questions/99788/qgis-2-2-0-database-tab-missing – user30184 Jun 08 '14 at 14:19
  • http://scigeo.org/articles/howto-install-latest-geospatial-software-on-linux.html – mdsumner Jun 08 '14 at 21:48
  • 1
    How are you installing PostGIS? In 14.04, the postgis package depends upon libgdal1h, not libgdal1: http://packages.ubuntu.com/trusty/postgis - so you presumably are not installing it on a clean install. – M Somerville Jun 10 '14 at 09:44
  • Yaa, you are right. Somehow I have installed too many libraries and they are conflicting. https://gist.github.com/djq/2846196 link helped me a lot. – Zia Jun 20 '14 at 17:39

1 Answers1

3

I had a similar problem. PostGIS wanted libgdal1 and QGIS wanted libgdal1h. The problem was that I had my Repo for QGIS set to the main QGIS site, and Postgresql set to their main site. Postgresql kept wanting to upgrade past what QGIS wanted. Finally something gave and I ended up with circular conflicts between the two.

I ended up backing up my Postgres/PostGis databases. Then uninstalling just about everything GIS on my system. I had to do a "Complete" uninstall of Postgresql 9.1, because it was not uninstalling cleanly. Then I changed my repo over to UbuntuGIS and reinstalled everything from there. Restored my databases, and all was good.

dvdhns
  • 462
  • 3
  • 13
  • Thanks a lot for this explanation and solution. Although I have already solved this issue long ago but I wasn't sure why this all happened before you explained things nicely. Regards! – Zia Jan 30 '15 at 09:10