# "configuration failed for package \<name\>"

**URL:** <https://travis-ci.community/t/configuration-failed-for-package-name/10944>\
**Category:** R\
**Tags:** r, travis-build\
**Created:** [January 2, 2021, 9:33am UTC](https://travis-ci.community/t/configuration-failed-for-package-name/10944 "2021-01-02T09:33:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnoushiravanR](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/anoushiravanr/32/5952_2.png) [@AnoushiravanR](https://travis-ci.community/u/AnoushiravanR)\
**Post date:** [January 2, 2021, 9:33am UTC](https://travis-ci.community/t/configuration-failed-for-package-name/10944/1 "2021-01-02T09:33:52Z")

</div>

I have recently built and R package for my online course. However, when I run travis-ci build, it grounds to a halt due to the following error:

> **[AnoushiravanR/fars](https://github.com/AnoushiravanR/fars)**
>
> Contribute to AnoushiravanR/fars development by creating an account on GitHub.

```auto
ERROR: configuration failed for package ‘gert’

* removing ‘/home/travis/R/Library/gert’

Error in i.p(...) : 

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

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

Execution halted

The command "Rscript -e 'deps <- remotes::dev_package_deps(dependencies = NA);remotes::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 .

Your build has been stopped.

```

I would appreciate it if you could give me some hints on how to pass this test.  
I also run R cmd check on my package and the only warning I receive is the following:

```auto
WARNING
  'qpdf' is needed for checks on size reduction of PDFs

```

However, this check in also halted.

I will also leave my github package address:

> **[AnoushiravanR/fars](https://github.com/AnoushiravanR/fars)**
>
> Contribute to AnoushiravanR/fars development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [January 2, 2021, 2:59pm UTC](https://travis-ci.community/t/configuration-failed-for-package-name/10944/2 "2021-01-02T14:59:37Z")

</div>

“`configuration failed`” usually means that the R package needs headers for some C libraries to be built.

- Check the output before that message to see which header files are required
- Search by package contents at [https://packages.ubuntu.com/](https://packages.ubuntu.com/) (scroll down to the search form) to find out which Apt packages you need to install to get them.
- Install them in the build as per [Building an R Project - Travis CI](https://docs.travis-ci.com/user/languages/r/#apt-packages)
