./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: |
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. |
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. |
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?
|
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. |
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. |
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 |
where can I find a C compiler?
|
try http://gcc.gnu.org for a compiler
|
thanx everybody, I got things working.:Pengy:
|
All times are GMT -5. The time now is 02:23 AM. |