rgdal installation difficulty on ubuntu 16.04 LTS
Here is what I use to install on Ubuntu 16.04 with the latest R-cran PPA repositories:
sudo add-apt-repository 'deb https://mirror.ibcp.fr/pub/CRAN/bin/linux/ubuntu xenial/'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get install libgdal1-dev libproj-dev libgeos-dev
sudo apt-get install r-base-core
You can use another CRAN mirror depending on your location:
https://cran.r-project.org/mirrors.html
Then, install.packages("rgdal")
should work.
If you want the latest spatial libraries on Ubuntu LTS versions, you can also use ubuntugis
PPA: https://launchpad.net/~ubuntugis/+archive/ubuntu/ppa
sudo add-apt-repository 'deb http://ppa.launchpad.net/ubuntugis/ppa/ubuntu xenial main'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160
sudo apt update
sudo apt upgrade
More trouble Installing rgdal on ubuntu 16.04
The only way to solve this was to completely remove anaconda installation, following the instructions on https://conda.io/docs/user-guide/install/linux.html#uninstalling-anaconda-or-miniconda with some minor modifications for ubuntu 16.04, you have to open a terminal and remove the anaconda install directory:
rm -rf ~/anaconda3
rm -rf ~/.condarc ~/.conda ~/.continuum
Edit ~/.bashrc
to remove the anaconda directory from your PATH environment variable.
After that the installation of rgdal
install.packages("rgdal")
goes without problems.
trouble in installing rgdal on ubuntu 16.04
I have finally been able to find a solution.
I followed the answer of this post
The miracle code is
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo apt update
sudo apt install gdal-bin python-gdal python3-gdal libgdal1-dev
thank you for your help
rgdal installation error on ubuntu 17.10
error: gdal-config not found
Is gdal installed ? ....
Solution : sudo apt install libgdal-dev
: Provides /usr/bin/gdal-config
Unable to install ‘sf’ R package on Ubuntu 16.04 LTS
This worked for me. Using
sudo aptitude install libgdal-dev
and then
devtools::install_github("r-spatial/sf")
rgdal installed in Ubuntu 18.04 LTS, but R 3.5 not recognized it
The solution was to uninstall QGIS, and install GDAL first and re-install QGIS after.
Finally, the rGDAL was possible to be installed in R.
Related Topics
Downloading Files from Ftp with R
List and Description of All Packages in Cran from Within R
Importing Multiple Excel Files with Filenames in R
How to Get Discrete Factor Levels to Be Treated as Continuous
Iteratively Constructed Dataframe in R
R: Replacing Nas in a Data.Frame with Values in the Same Position in Another Dataframe
How to Create a Line Plot with Groups in Base R Without Loops
How to Efficiently Read the First Character from Each Line of a Text File
R, Sweave, Latex - Escape Variables to Be Printed in Latex
Displaying Image on Point Hover in Plotly
Efficient Multiplication of Columns in a Data Frame
Boxplot, How to Match Outliers' Color to Fill Aesthetics
Inserting a New Row to Data Frame for Each Group Id
Replace Nan Values in a List with Zero (0)
Extracting Orthogonal Polynomial Coefficients from R's Poly() Function
Why Doesn't Comparison Between Numeric and Character Variables Give a Warning