none
failure installation packages rgdal, rgeos RRS feed

  • Question

  • Hi 

    I get an error when I install 'rgdal' package (see below) Sorry it is in French but it should be easily understandable.

    Any idea?

    install.packages("rgdal")
    Installation du package dans ‘/Users/pbs/Library/R/3.4/library’
    (car ‘lib’ n'est pas spécifié)
    essai de l'URL 'https://mran.microsoft.com/snapshot/2018-06-01/src/contrib/rgdal_1.2-20.tar.gz'
    Content type 'application/octet-stream' length 1650449 bytes (1.6 MB)
    ==================================================
    downloaded 1.6 MB

    * installing *source* package ‘rgdal’ ...
    ** package ‘rgdal’ correctement décompressé et sommes MD5 vérifiées
    configure: CC: /usr/local/clang4/bin/clang
    configure: CXX: /usr/local/clang4/bin/clang++
    configure: rgdal: 1.2-20
    checking for /usr/bin/svnversion... yes

    Les packages source téléchargés sont dans
    ‘/private/var/folders/g9/q5pwbg7d7wngn9ywmr3z4p8c0000gr/T/RtmphiEHqi/downloaded_packages’
    Warning message:
    In install.packages("rgdal") :
      l'installation du package ‘rgdal’ a eu un statut de sortie non nul
    configure: svn revision: 725
    checking for gdal-config... no
    no
    configure: error: gdal-config not found or not executable.
    ERROR: configuration failed for package ‘rgdal’
    * removing ‘/Users/pbs/Library/R/3.4/library/rgdal’

    Wednesday, July 4, 2018 2:23 PM

All replies

  • Are you running Microsoft R on a Mac?

    If yes, you should be able to fix this issue by creating the following symbolic links on your system:

    sudo mkdir /usr/local/clang4/bin/
    sudo ln -s /usr/bin/clang /usr/local/clang4/bin/
    sudo ln -s /usr/bin/clang++ /usr/local/clang4/bin/

    Monday, July 9, 2018 7:54 PM