r-spatial / sf

Simple Features for R
https://r-spatial.github.io/sf/
Other
1.35k stars 299 forks source link

Unable to locate package libsqlite0-dev for sf install on Ubuntu #2423

Closed mmothersole closed 2 months ago

mmothersole commented 3 months ago

I need to install 'ggseg' in RStudio but it requires the 'sf' package installation. Because I run Ubuntu 24.04, I cannot install sf in RStudio and when I try to run the preliminary packages for the sf install in terminal, I get the error message "Unable to locate package libsqlite0-dev". I've tried to install libsqlite3-dev and I get the error message "Package 'libsqlite3-dev' has no installation candidate".

I'm at a dead end on what to do. Any help would be greatly appreciated.

Screenshot from 2024-08-14 16-01-25 Screenshot from 2024-08-14 17-11-06

edzer commented 2 months ago

Try sudo apt-get install libsqlite0-dev

mmothersole commented 2 months ago

Screenshot from 2024-08-24 14-35-23

mmothersole commented 2 months ago

@edzer How do I reopen the issue? There is no reopen issue button.

edzer commented 2 months ago

It's not an issue with package sf, but with your operating system setup.

PaulMelloy commented 3 weeks ago

Hello i ran into this issue as well. Perhaps an issue with the documentation on the sf website installation instructions for ubuntu. debian (what ubuntu is based on) is not supporting libsqlite0-dev by the look of it. Try version 3 i.e.

sudo apt-get install libsqlite3-dev

This allowed me to install sf on my Linux Mint distro

mmothersole commented 3 weeks ago

On Ubuntu 24.04, I'm getting this: Screenshot from 2024-10-27 15-15-10

edzer commented 3 weeks ago

See the ubuntu section in README:

sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev libsqlite0-dev