LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ./configure (https://www.linuxquestions.org/questions/linux-newbie-8/configure-8324/)

KyleMaher 11-05-2001 01:50 AM

./configure
 
I am trying to run a command that begins with ./configure, but it will not work. I keep getting the error "No such file or directory". I am running Red Hat Linux 7.1 with Kernel 2.4.2-2. The exact command is as follows:

./configure --enable-static-link --prefix=$LFS/usr \
--bindir=$LFS/bin --with-curses &&
make &&
make install &&
cd $LFS/bin &&
ln -sf bash sh

Any help would be greatly appreciated.

Thank you in advance.
:Pengy:

acid_kewpie 11-05-2001 02:45 AM

well, knock off all the &&'s and run each part separately, to find which part is whinging.

if it is ./configure then you must be in the source directory for whichever program you're trying to compile.

Thymox 11-05-2001 08:16 AM

The ./ part of any command means 'don't look in the default directories (i.e. /bin, /usr/bin, etc) to find this command, look in the current directory'.

If you list the files in the current directory, and there is no file called 'configure' then typing ./configure will do nothing anyway.

Also, you must make sure that the 'configure' file has the correct attributes (i.e. it must be an executable file). If you downloaded the source to something in .ZIP format (as opposed to .TAR.GZ), then you will have to manually make the file executable.

Post here again if you've still got probs.

KyleMaher 11-05-2001 09:17 AM

It is ./configure that is bad. I am trying to compile a program (BASH to be exact), and the book says to use that command. Is there a special directory that I could find it? Or could it be a seperate RPM on my linux CD's?

acid_kewpie 11-05-2001 10:40 AM

NO NO NO!!!!! LISTEN! sorry....

the ./configure file is part of the installation for EVERY [ well... 98% ] of programs distributed in .tar.gz format.

./ means the current directory, so ./configure will be in the current directory, which is the directroy containg all the source files. for example..

/home/chris> cd /usr/src
/usr/src> tar zxvf /home/chris/aprogram.tar.gz/usr/src> cd aprogram/usr/src/aprogram> ./configure
/usr/src/aprogram> make
/usr/src/aprogram> make install

get the idea? All source programs should have configure, it's THE way it's done.

but erm.. you're trying to compile bash? why? you're 99% likely to already be using bash.

KyleMaher 11-05-2001 08:14 PM

okay, I think I got the ./configure part working okay, but I get an error when I run the command:

configure: error: no acceptable cc found in $PATH

I thought this meant I didn't have the cc packages installed, but when I try to install the RPM package for it, it says I have it.

b0b0 11-05-2001 10:44 PM

its telling you that you dont have the proper (or any) C compiler listed in the path$ directive.

when you install an rpm, its all there (as far as compiling, headers, libs, etc). when you actually compile something you have to have all of the required goodies.

laters,
jason

KyleMaher 11-05-2001 11:41 PM

where can I find a C compiler?

isajera 11-05-2001 11:50 PM

try http://gcc.gnu.org for a compiler

KyleMaher 11-07-2001 12:35 AM

thanx everybody, I got things working.:Pengy:


All times are GMT -5. The time now is 02:23 AM.