LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2001, 01:50 AM   #1
KyleMaher
LQ Newbie
 
Registered: Nov 2001
Posts: 5

Rep: Reputation: 0
Question ./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.
 
Old 11-05-2001, 02:45 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 11-05-2001, 08:16 AM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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.
 
Old 11-05-2001, 09:17 AM   #4
KyleMaher
LQ Newbie
 
Registered: Nov 2001
Posts: 5

Original Poster
Rep: Reputation: 0
Unhappy

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?
 
Old 11-05-2001, 10:40 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 11-05-2001, 08:14 PM   #6
KyleMaher
LQ Newbie
 
Registered: Nov 2001
Posts: 5

Original Poster
Rep: Reputation: 0
Unhappy

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.
 
Old 11-05-2001, 10:44 PM   #7
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
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
 
Old 11-05-2001, 11:41 PM   #8
KyleMaher
LQ Newbie
 
Registered: Nov 2001
Posts: 5

Original Poster
Rep: Reputation: 0
where can I find a C compiler?
 
Old 11-05-2001, 11:50 PM   #9
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
try http://gcc.gnu.org for a compiler
 
Old 11-07-2001, 12:35 AM   #10
KyleMaher
LQ Newbie
 
Registered: Nov 2001
Posts: 5

Original Poster
Rep: Reputation: 0
Talking

thanx everybody, I got things working.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure dhcpd (Configure DHCP Server) hanserver2004 LinuxQuestions.org Member Success Stories 3 10-23-2006 06:39 AM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 12:35 PM
Configure dhcpd (Configure DHCP Server) hanserver2004 General 1 08-16-2004 01:39 PM
How to use GNU autoconf to generate a new configure from configure.in ?? vanhelsing Programming 5 08-05-2004 10:02 AM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration