cant install RStudio "tmap" package on linux mint 20.1 running RStudio
Version 1.4.1106
You need to be more specific, What is the error message you get when you try to install it?
install.packages("tmap")
Installing package into ‘/home/luiz/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘lwgeom’, ‘tmaptools’, ‘sf’, ‘stars’, ‘leafem’
- installing source package ‘sf’ ...
** package ‘sf’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: gcc -std=gnu99
configure: CXX: g++ -std=gnu++11
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘sf’ - removing ‘/home/luiz/R/x86_64-pc-linux-gnu-library/3.6/sf’
Warning in install.packages :
installation of package ‘sf’ had non-zero exit status
ERROR: dependency ‘sf’ is not available for package ‘lwgeom’ - removing ‘/home/luiz/R/x86_64-pc-linux-gnu-library/3.6/lwgeom’
Warning in install.packages :
installation of package ‘lwgeom’ had non-zero exit status
ERROR: dependency ‘sf’ is not available for package ‘leafem’ - removing ‘/home/luiz/R/x86_64-pc-linux-gnu-library/3.6/leafem’
Warning in install.packages :
installation of package ‘leafem’ had non-zero exit status
ERROR: dependencies ‘sf’, ‘lwgeom’ are not available for package ‘stars’ - removing ‘/home/luiz/R/x86_64-pc-linux-gnu-library/3.6/stars’
Warning in install.packages :
installation of package ‘stars’ had non-zero exit status
ERROR: dependencies ‘sf’, ‘lwgeom’, ‘stars’ are not available for package ‘tmaptools’ - removing ‘/home/luiz/R/x86_64-pc-linux-gnu-library/3.6/tmaptools’
Warning in install.packages :
installation of package ‘tmaptools’ had non-zero exit status
ERROR: dependencies ‘tmaptools’, ‘sf’, ‘stars’, ‘leafem’ are not available for package ‘tmap’ - removing ‘/home/luiz/R/x86_64-pc-linux-gnu-library/3.6/tmap’
Warning in install.packages :
installation of package ‘tmap’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmppYOnZ9/downloaded_packages’
#maybe its dependencies problems
You are missing the gdal
system library, for Unix-alikes, GDAL (>= 2.0.1), GEOS (>= 3.4.0) and Proj.4 (>= 4.8.0) are required.
Since Linux Mint is Ubuntu based, this might work
sudo apt install libudunits2-dev libgdal-dev libgeos-dev libproj-dev
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.