ERROR: configuration failed for package ‘magick’


#1

I have a failed build that appears to be caused by a failed installation of the R package ape, due to a failed installation / configuration of magick:

ERROR: configuration failed for package ‘magick’

  • removing ‘/home/travis/R/Library/magick’

Error in i.p(…) :

(converted from warning) installation of package ‘magick’ had non-zero exit status

Calls: <Anonymous> … with_rprofile_user -> with_envvar -> force -> force -> i.p

Execution halted

The command “Rscript -e ‘deps <- devtools::dev_package_deps(dependencies = NA);devtools::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing: “, paste(setdiff(deps$package, installed.packages()), collapse=”, ")); q(status = 1, save = “no”)}’” failed and exited with 1 during .

My local builds are working fine. Please advise.


#2

Did you try the magick ropensci Travis.yml

addons:
  apt:
    update: true
    sources:
      - sourceline: 'ppa:opencpu/imagemagick'
      - sourceline: 'ppa:ubuntugis/ppa'
    packages:
      - libmagick++-dev
      - librsvg2-dev
      - libwebp-dev
      - libpoppler-cpp-dev
      - libtesseract-dev
      - libleptonica-dev
      - tesseract-ocr-eng
      - r-cran-rgdal
      - libfftw3-dev
      - cargo

For me this did the trick


#3

Fabulous! Thanks you, it worked.


#4

Thanks for the answer @zappingseb; if I may, this is a barebones version of your solution, since my package doesn’t use the same deps as yours. I added this to my .travis.yml:

     addons:
       apt:
         update: true
         sources:
           - sourceline: 'ppa:opencpu/imagemagick'
         packages:
           - libmagick++-dev