Skip to content

rgdal travis error: configure: error: gdal-config not found or not executable.

4 messages · Joe Lewis, Edzer Pebesma

#
Hi,

I'm testing a package using travis and I keep getting an error message
about rgdal not being found or executable. I've been trying to piece
together things I've found online but to no avail.

https://travis-ci.org/github/josephlewis/leastcostpath/builds/663944787

travis.yml

# R for travis: see documentation at
https://docs.travis-ci.com/user/languages/r

language: R
sudo: false
cache: packages

repos:
  CRAN: https://cran.rstudio.com
  rforge: http://R-Forge.R-project.org

apt_packages:
    - gdal-bin

before_install:
install.packages("rgdal", repos="http://R-Forge.R-project.org")


Any help would be appreciated.

Thanks.

Kind regards,
Joseph Lewis
#
At least libgdal-dev and libproj-dev are missing. You can have a look at
https://github.com/r-spatial/sf/blob/master/.travis.yml (but that tries
to do quite a bit more).
On 3/18/20 3:21 PM, Joe Lewis wrote:

  
    
1 day later
#
Hi,

Thanks for the help.

I've incorporated some from sf's travis file, but it's still failing
unfortunately.

# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: R
sudo: false
cache: packages

r:
  - oldrel
  - release
  - devel

repos:
  CRAN: https://cran.rstudio.com
  rforge: http://R-Forge.R-project.org

before_install:
  - R -e 'install.packages("rgdal", repos="http://R-Forge.R-project.org")'

apt_packages:
- gdal-bin
- libgdal-dev
- libxml2-dev
- libproj-dev
- libprotobuf-dev
- protobuf-compiler
- libv8-3.14-dev
- libjq-dev
- libudunits2-dev
- libproj-dev
- libgeos-dev
- libspatialite-dev
- libgdal-dev

- libjson-c-dev


https://travis-ci.org/github/josephlewis/leastcostpath/builds/664541703

Any ideas?

Thanks.

Kind regards,
Joseph Lewis

On Wed, Mar 18, 2020 at 4:04 PM Edzer Pebesma <edzer.pebesma at uni-muenster.de>
wrote:

  
  
#
Maybe this:
https://github.com/edzer/sf_dep/blob/master/.travis.yml
On 3/19/20 8:26 PM, Joe Lewis wrote: