-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Installation error, libgeos files missing after install #1377
Comments
Do a clean (re-)install of everything. |
That is what I've been attempting, is there something you'd add to this?
I've also deleted my installation of Thanks |
What you might have ended up with is different versions of libraries installed at the same time, and not removed after removal of the package needing them; See https://github.com/r-spatial/sf#multiple-gdal-geos-andor-proj-versions-on-your-system |
I'm getting closer...I found With a faint idea of what's going on and carefully copying the file path, I put this into R (following others):
but got
I moved The
This comment looks promising but I don't know what they are talking about:
from #844 (comment) |
That is the usual location, you shouldn't have to do anything to get that found when installing R packages. You may want to try $ locate libgeos_c.so
/usr/lib/x86_64-linux-gnu/libgeos_c.so
/usr/lib/x86_64-linux-gnu/libgeos_c.so.1
/usr/lib/x86_64-linux-gnu/libgeos_c.so.1.13.1 to find out whether other versions are standing in the way. And similar for GDAL and PROJ. |
Maybe this one in
But these too?
That's after running Can I just delete those |
I deleted the
and I get the same message from
sorry, I really don't know where to go from here. I notice I don't have the same |
No, they look all good. |
well, that's unfortunate cause I'm out of ideas. This won't be much help to others---I re-installed ubuntu to 'fix' it, it was not a bad time for me to do that anyways. |
This SO comment and blog solved it for me sudo apt remove libudunits2-dev libgdal-dev libgeos-dev libproj-dev
sudo apt install libudunits2-dev libgdal-dev libgeos-dev libproj-dev libfontconfig1-dev
sudo apt install r-base-dev r-cran-sf r-cran-raster r-cran-rjava remove.packages("rgdal")
remove.packages("sf")
install.packages("sf") |
For the record if you are using conda that coud be the problem (it was in my case) so I use |
I've been using sf without problems, but tried to install GRASS and QGIS and it must have introduced some issues.
After uninstalling QGIS and GRASS and then some failed attempts to fix this, I manually deleted all
/usr/lib/libgeos*
files (see below) and I uninstalled allsf
dependencies for Ubuntu 18.04. Then I re-installed thesf
dependencies withsudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev
I've noticed that
/usr/lib/
hasbut no
libgeos*
files. They aren't being replaced.Now
library(sf)
returnsand
install.packages("sf")
givesI'm thinking its related to this comment:
Any advice to get
sf
working again would be greatly appreciated.The text was updated successfully, but these errors were encountered: