Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Fairly newbie. Fresh Debian install. I need to compile a package but the "./configure command" does not work ? Getting the following error :

-bash ./configure : No such file or directory

Where is that script ? Locate did not give something

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

locate will not work unless you have a up-to-date database.

Try find . -type f -name configure instead, or issue a updatedb command first, then do the locate (make sure the current path isn't excluded)

share|improve this answer
    
OK thx, got it fixed. –  Mille Bii Feb 18 '13 at 10:45
add comment

usually configure is in the top directory after you extracted the source of a package.

example:

mst@mst-gentoo-ws /tmp $ tar -xzf nginx-1.2.0.tar.gz 
mst@mst-gentoo-ws /tmp $ ls nginx-1.2.0/configure 
nginx-1.2.0/configure

so after unpacking, you have to cd into the newly created folder, and thats where configure should be.

share|improve this answer
add comment

The 'configure' command is NOT a standard Linux/UNIX command.

configure is a script that is generally provided with the source of most standardized type Linux packages and contains code that will "patch" and localize the source distribution so that it will compile and load on your local Linux system. Sometimes configure is put on your disk without the execute bit set, so the configuration could be invoked by sh ./configure....depending on the package, that is why they tell you to look at any type of README file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.