# Cryptic Error Message "./configure: No such file or directory" while I don't use ./configure

**URL:** <https://travis-ci.community/t/cryptic-error-message-configure-no-such-file-or-directory-while-i-dont-use-configure/2482>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [February 28, 2019, 6:37am UTC](https://travis-ci.community/t/cryptic-error-message-configure-no-such-file-or-directory-while-i-dont-use-configure/2482 "2019-02-28T06:37:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaimast](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kaimast/32/1239_2.png) [@kaimast](https://travis-ci.community/u/kaimast)\
**Post date:** [February 28, 2019, 6:37am UTC](https://travis-ci.community/t/cryptic-error-message-configure-no-such-file-or-directory-while-i-dont-use-configure/2482/1 "2019-02-28T06:37:24Z")

</div>

When a job fails with the following message, how do I find out what is wrong with my configuration?

`/home/travis/.travis/functions: line 104: ./configure: No such file or directory`

---

<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:** [February 28, 2019, 9:15pm UTC](https://travis-ci.community/t/cryptic-error-message-configure-no-such-file-or-directory-while-i-dont-use-configure/2482/2 "2019-02-28T21:15:48Z")

</div>

Without a link to the build, it’s hard to say anything. My blind guess is that your project is C and you didn’t specify a build or prebuild step, so Travis logic is invoking the default "run `/configure`" logic for that step.

---

<div class="post-metadata">

**Author:** ![kaimast](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kaimast/32/1239_2.png) [@kaimast](https://travis-ci.community/u/kaimast)\
**Post date:** [February 28, 2019, 9:34pm UTC](https://travis-ci.community/t/cryptic-error-message-configure-no-such-file-or-directory-while-i-dont-use-configure/2482/3 "2019-02-28T21:34:06Z")

</div>

Here’s the build script. It works fine now after I changed all instances of “scripts” to “script”.

Still I think Travis is horrible at showing me errors in my config file. Also, maybe this is because I do not have a web developer background, but I find the YML format not very straighforward…

```auto
dist: xenial
sudo: required
language: cpp

cache:
    directories:
        - $HOME/prereq
        - $HOME/local

jobs:
    include:
        - name: "Build"
          script:
            - bash ci/install-packages.sh
            - bash ci/setup-prereq-ext.sh
            - bash ci/setup-prereq.sh
            - bash ci/setup-weave.sh
            - bash ci/unit-tests.sh
            - bash ci/clang-tidy.sh

        - name: "Many Ops"
          script:
            - bash ci/install-packages.sh
            - bash ci/multi_op.sh

        - name: "Relays"
          script:
            - bash ci/install-packages.sh
            - bash ci/relay.s

```

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [March 1, 2019, 12:34am UTC](https://travis-ci.community/t/cryptic-error-message-configure-no-such-file-or-directory-while-i-dont-use-configure/2482/4 "2019-03-01T00:34:27Z")

</div>

Your error message indicates that you are somehow invoking `./configure` in a directory that doesn’t have it. Without logs, it is impossible to give any more advice than that.

---

<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:** [March 3, 2019, 12:06am UTC](https://travis-ci.community/t/cryptic-error-message-configure-no-such-file-or-directory-while-i-dont-use-configure/2482/5 "2019-03-03T00:06:21Z")

</div>

> [@kaimast](#):
>
> It works fine now after I changed all instances of “scripts” to “script”.

Duh! There’s no “`scripts:`” directive, so you essentially had no `script:`, and [“`./configure && make && make test`” is the default for `language: cpp`.](https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/script/c.rb#L25)

---

<div class="post-metadata">

**Author:** ![kaimast](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kaimast/32/1239_2.png) [@kaimast](https://travis-ci.community/u/kaimast)\
**Post date:** [March 3, 2019, 12:33am UTC](https://travis-ci.community/t/cryptic-error-message-configure-no-such-file-or-directory-while-i-dont-use-configure/2482/6 "2019-03-03T00:33:01Z")

</div>

Yeah… my point is that Travis shouldn’t silently ignore errors in your configuration but actually point them out in your logfile.

---

<div class="post-metadata">

**Author:** ![Michal](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/michal/32/2848_2.png) [@Michal](https://travis-ci.community/u/Michal)\
**Post date:** [November 20, 2019, 10:36am UTC](https://travis-ci.community/t/cryptic-error-message-configure-no-such-file-or-directory-while-i-dont-use-configure/2482/7 "2019-11-20T10:36:01Z")

</div>

Hi @kaimast

Have you seen recently released [Build Config Validation](https://blog.travis-ci.com/2019-10-24-build-config-validation)?

Happy building!
