Find the answer to your Linux question:
Results 1 to 3 of 3
I am new to linux. Learning things as I am working on the project, I have a ./configure executable. I find that it has been obtained using the configure.ac file. ...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    13

    Configure Issue

    I am new to linux. Learning things as I am working on the project,

    I have a ./configure executable. I find that it has been obtained using the configure.ac file. Can any one explain how this configuration executable is created ?

    I get the following error when i try to run the ./configure
    bash-3.2$ ../configure
    bash: ../configure: /bin/sh^M: bad interpreter: No such file or directory

    Any pointers or guidelines on some tutorials, if this was very simple issue , will be highly useful.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    First ensure that it is executable.
    Then cd into the directory where the file is and run it as follows;

    Code:
    ./configure
    Notice the single '.' not a double.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    The first line in a configure script is the shell intended to execute the code it contains. Your's has specified to use /bin/sh, but your system doesn't seem to have that file. It may be in /usr/bin or not there at all (unlikely, but possible). Go to a command-line window and execute the command: which sh
    That will show you where (if found) the standard shell (sh) is located. If it isn't in /bin/sh but exists, then you can either change the configure script to point to the correct location, or you can copy it to /bin as root.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...