[R-pkg-devel] Library not loaded =?utf-8?Q?=E2=80=98libgdal.dylib=E2=80=99_?=when building package on travis (osx)

Patrick Schratz patrick.schratz at gmail.com
Fri Apr 28 17:19:51 CEST 2017

Hi everyone,

the following error gives me headaches. When building my package on Travis CI (OS X build), I get the following error:

Building with: R CMD build
4.64s$ R CMD build  .
* checking for file ‘./DESCRIPTION’ ... OK
* preparing ‘RQGIS’:
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* installing *source* package ‘RQGIS’ ...
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/Users/travis/R/Library/rgdal/libs/rgdal.so':
  dlopen(/Users/travis/R/Library/rgdal/libs/rgdal.so, 6): Library not loaded: /Builds/unix/recipes/build/gdal-2.1.3-obj/libgdal.dylib
  Referenced from: /Users/travis/R/Library/rgdal/libs/rgdal.so
  Reason: image not found

• rgdal 1.2-7 is installed successfully
• GDAL 1.11.5 and GDAL 2.1.3 installed via homebrew
• Package builds correctly locally (osx) and on my linux travis build

Build log: https://travis-ci.org/jannes-m/RQGIS/jobs/226822143

PhD Student at Department of Geography - GIScience group
Friedrich-Schiller-University Jena, Germany
Tel.: +49-3641-9-48973
Web: https://pat-s.github.io

	[[alternative HTML version deleted]]

More information about the R-package-devel mailing list