Search code examples
rubuntugeospatialgdalrgdal

rgdal not working in ubuntu 12.04


I have recently switched from windows to ubuntu and can't make the rgdal package working properly.

I know there are a lot of posts on this but I just can't make it work.

I have installed gdal following https://gist.github.com/lossyrob/4348503 but still rgdal is in my list of installed packages according to rgdal%in%installed.packages() but when I include with library(rgdal) it returns Error in library(rgdal) : there is no package called ‘rgdal’.

Any help is appreciated.


Solution

  • So it was the gmail notifier after all that I had installed according to this post (in Italian sorry)...

    This is how I did it, thanks to everybody, I wouldn't have made it without you guys!

    So according to what was returned by sudo apt-get update and according to this post I unticked the similarly named PPA with the URL shown in the error message.

    I re-ran what @EDi suggested sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable ; sudo apt-get update; sudo apt-get install libproj-dev and it worked like a charm!

    I spent so much time on this.... Thanks everybody!