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

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Joe Lewis
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

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

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

edzer
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:

> 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
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> [hidden email]
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Edzer Pebesma
Institute for Geoinformatics
Heisenbergstrasse 2, 48149 Muenster, Germany
Phone: +49 251 8333081

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

pEpkey.asc (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Joe Lewis
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 <[hidden email]>
wrote:

> 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:
> > 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
> >
> >       [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-sig-Geo mailing list
> > [hidden email]
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> >
>
> --
> Edzer Pebesma
> Institute for Geoinformatics
> Heisenbergstrasse 2, 48149 Muenster, Germany
> Phone: +49 251 8333081
> _______________________________________________
> R-sig-Geo mailing list
> [hidden email]
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

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

edzer
Maybe this:
https://github.com/edzer/sf_dep/blob/master/.travis.yml

On 3/19/20 8:26 PM, Joe Lewis wrote:

> 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 <[hidden email]>
> wrote:
>
>> 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:
>>> 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
>>>
>>>       [[alternative HTML version deleted]]
>>>
>>> _______________________________________________
>>> R-sig-Geo mailing list
>>> [hidden email]
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>>
>>
>> --
>> Edzer Pebesma
>> Institute for Geoinformatics
>> Heisenbergstrasse 2, 48149 Muenster, Germany
>> Phone: +49 251 8333081
>> _______________________________________________
>> R-sig-Geo mailing list
>> [hidden email]
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> [hidden email]
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Edzer Pebesma
Institute for Geoinformatics
Heisenbergstrasse 2, 48149 Muenster, Germany
Phone: +49 251 8333081

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

pEpkey.asc (3K) Download Attachment