Rgdal installation failed on ubuntu 16.04

前端 未结 2 1266
鱼传尺愫
鱼传尺愫 2020-12-21 17:21

I have been trying to install rgdal from RStudio Version 1.0.44 on ubuntu 16.04 then I was getting the gdal-config not found error. I resolved

相关标签:
2条回答
  • 2020-12-21 17:36

    For Rh6, you have just to install:

    yum install proj-devel-4.8.0-4.1.x86_64.rpm
    

    N.B: in my case, my server is not connected to internet, So I download the package from repo to my local machine and then I copied it to my server.

    0 讨论(0)
  • 2020-12-21 17:40

    I have had some issues trying to install rgdal package but finally I succeeded. My problem was that gdal > 2.0 is needed, and it does not ship with ubuntu 16.04 by default, so extra packages are needed.

    I ended up installing the following packages:

    sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
    sudo apt update
    sudo apt install gdal-bin python-gdal python3-gdal libgdal1-dev
    

    Additionally, r > 3.3 is needed too, so I ended up updating ubuntu's default r-base installation like this:

    sudo add-apt-repository 'deb https://cran.rediris.es/bin/linux/ubuntu xenial/'
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
    sudo apt update
    

    Hope it works for you too.

    0 讨论(0)
提交回复
热议问题