Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.