-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install sf
in Ubuntu 20.04 - 2
#1700
Comments
The origin of your troubles seems to be linuxbrew. The last issues you point to seem to be related to gnutls, a library GDAL may link to. Do you have multiple installs of that? Other people here have run into problems when linuxbrew was installed; don't expect support for that. |
Thanks a lot @edzer for the reply!
As you can see, there is apparently no installed I also deleted I then install all three libraries following the README by running:
I then run the following to see installed versions of
I then try to install
This then lead to a successful installation procedure with:
but when I try to load
What do you think is the reason for that and how can I solve it? Thanks a lot for your help |
I wrote:
Did you check that? |
Okay, so I ran
and obtained:
so apparently there are different versions of Thanks! |
Should I just go to Thanks! |
I have no clue. |
See #1685. |
Following my previous issue #1685, I followed #1628 and updated all the UbuntuGIS packages. (thanks @rsbivand ).
I still however had the issue with
checking PROJ: checking whether PROJ and sqlite3 are available for linking:... no
discussed for example in #1268.I then found a solution with
remotes::install_github('r-spatial/sf', configure.args= '--with-proj-lib=/lib/x86_64-linux-gnu')
discussed in #1670 and asHowever, I know have the following:
Also, the
PKG_CONFIG_PATH
is set to:and this is my sessionInfo
EDIT 1:
After this last output, I ran:
and tried the installation with:
and this time it worked with
* DONE (sf)
at the end of the installation.However, I get the following error when trying to load the library:
EDIT 2:
Following #1158, I given the output of
locate geos-config
showed above, I remove the brewgeos
installation with▶ brew uninstall geos
and I now have:but still this error when trying to load
sf
:EDIT3:
After reading various issues that mentioned a similar issue (i.e.
Error: package or namespace load failed for ‘sf’ in dyn.load(file, DLLpath = DLLpath, ...):
), I did a complete cleanup of allGDAL
,GEOS
andPROJ
and reinstalled them as described in the README.The simple command
install.packages("sf")
then worked and I could installsf
However I know have this error message when I try
library(sf)
:EDIT 4:
After reinstalling
sf
, I now have this error when trying to load the library:I have found issue #1158 and can see that this suggests that there are multiple GDAL installations on my system @rsbivand in #1158 (comment)_.
I have the following output:
Does this indicates two versions of
GDAL
installed (28 and 28.0.1)?EDIT 5:
I just tried to remove all
GDAL
installed on my installation and reinstall it with▶ sudo apt-get install libgdal-dev
.Checkin at installed version of
GDAL
after this operation returnsSo I don't think there are 2 installed versions of
GDAL
, right?@edzer or @rsbivand any issues or directions that you may suggest given this output?
Thanks a lot!
The text was updated successfully, but these errors were encountered: