![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Linux Support Linux - Operating Systems and Applications Support |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 30
OS: Ubuntu 8.04 LTS
|
./configure
does someone know the name of the package and the repository where i can find it to properly install the ./configure utility? everytime i use it I get this message from the terminal:
bash: ./configure: No such file or directory i'm in the pwd where i have extracted my file so this has me stumped except to assume that the ./configure utility is not properly installed or configured itself. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Moderator/Fedora Amb.
|
Re: ./configure
Bash is correct ./configure isn't a file or directory, it is a function. What are you trying to configure and install? The way that you use ./configure is when you download a file that is in the file systems of .rpm, .tar, .tar.gz. Plus you have to use the whole thing
Code:
./configure make make install
__________________
![]() Linux Forever!
|
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 30
OS: Ubuntu 8.04 LTS
|
Re: ./configure
then that is what i'm doing wrong, i thought i had to issue ./configure and then make, and then make install waiting for the outcome inbetween each command given.
other than that i was using it with a .tar.gz file -- which was ardour. thanks! |
|
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 30
OS: Ubuntu 8.04 LTS
|
Re: ./configure
what exactly does this mean because i typed these commands as directed by the LFS book:
(on the second try after tar -xvjf) root@XXXX:/tmp# cd e2fsprogs-1.40.2 root@XXXX:/tmp/e2fsprogs-1.40.2# mkdir -v build mkdir: cannot create directory `build': File exists root@XXXX:/tmp/e2fsprogs-1.40.2# cd build root@XXXX:/tmp/e2fsprogs-1.40.2/build# ../configure make configure: WARNING: you should use --build, --host, --target Generating configuration file for e2fsprogs version 1.40.2 Release date is July, 2007 checking build system type... Invalid configuration `make': machine `make' not recognized configure: error: /bin/bash ../config/config.sub make failed make install is intentionally left out according to the book, although i did try it with make install after the first failure and got the same message |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Jan 2006
Location: The voices in my head disagree...
Posts: 163
OS: Windows XP: Home Edition SP2/Ububtu 8.04
|
Re: ./configure
just for giggles did you try:
"root@XXXX:/tmp/e2fsprogs-1.40.2/build# ./configure" I'm not sure how the ./configure make command works exactly but my thoughts (which may be wrong) are that when ./configure finishes it may try to make the file. if the configure ran into errors (which is likely due to dependencies) then it may not have told you that there were unfilled dependencies and tried to make the files anyway, causing it to fail. anyway try ./configure without "make" on the line after it
__________________
Extrico subjectio quod verum ero evidens No one can make you feel inferior without your consent. -- Eleanor Roosevelt "it may be alright to be content with what you have; never with what you are."--B.C. Forbes |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Oct 2007
Location: Littleton, Colorado USA
Posts: 470
OS: xp 64 sp2 Fedora Core 8 (vmware xp core 8 x32) Minix
|
Re: ./configure
Some configures have a dot in front of the name: .configure Note the prepended dot. So to run the configure type in "./.configure": two dots in a row separated by a forward slash. Since Linux does NOT, by default, put the current working directory in the path, to run a script/program that is in the current directory, then you have to prepend the ./ (dot-slash) for it to run.
The .configure file, itself, is a very convoluted shell file. It tests to see if all the libraries, needed programs, etc have been installed. Try running the configure as: "sh -x .configure". (Hope you can ready very fast). Last edited by lensman3; 07-25-2008 at 02:55 PM. |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Jan 2006
Location: The voices in my head disagree...
Posts: 163
OS: Windows XP: Home Edition SP2/Ububtu 8.04
|
Re: ./configure
ah ok that makes sense. thanks for that explanation. thats why when a file is named .configure instead of configure and I type ./configure it tells me that the file can't be found.
__________________
Extrico subjectio quod verum ero evidens No one can make you feel inferior without your consent. -- Eleanor Roosevelt "it may be alright to be content with what you have; never with what you are."--B.C. Forbes |
|
|
|
|
|
#8 (permalink) |
|
Manager
Join Date: Sep 2004
Location: Colorado
Posts: 987
OS: Mac OS 9.1, Mac OS X 10.5.8, WinXP Pro, FreeBSD 6.0, Gentoo Linux
|
Re: ./configure
As lensman3 said, ./configure is a script. The "./" part just means "the directory I'm currently in." So generally if you extract a tarball (.tar.gz, .tar.bz2, etc.) to somedirectory-1.2.3, you will need to cd path/to/somedirectory-1.2.3 then run ./configure.
Often there will be a "read me" file (usually called README) that will tell you if there are any slightly less common steps. You might sometimes run into packages that require you to run a different script that will generate the "./configure" script. Out of curiosity, what page are those instructions on? e2fsprogs should have a "./configure" script.
__________________
![]() Has it been a few days since I replied to your thread? Don't panic! I'm a busy college student and may forget a post if I'm extra busy (or it might just take me a while to be able to do a decent reply). If you still need help and are awaiting my reply after a few days, PM me about it. When posting what errors you get, please give the full message. It makes helping you much easier. |
|
|
|
|
|
#9 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 30
OS: Ubuntu 8.04 LTS
|
Re: ./configure
okay the previous error i understood, this one i do not. this is only the second command!!!!
home@home-desktop:/tmp: tar -zxvf e2fsprogs-1.40.2.tar.gz ... e2fsprogs-1.40.2/po/tr.gmo e2fsprogs-1.40.2/po/it.gmo e2fsprogs-1.40.2/po/pl.gmo e2fsprogs-1.40.2/po/en@boldquot.header e2fsprogs-1.40.2/po/cs.po e2fsprogs-1.40.2/po/fr.gmo home@home-desktop:/tmp$ cd e2fsprogs-1.40.2 home@home-desktop:/tmp/e2fsprogs-1.40.2$ mkdir -v build mkdir: created directory `build' home@home-desktop:/tmp/e2fsprogs-1.40.2$ cd build home@home-desktop:/tmp/e2fsprogs-1.40.2/build$ ../configure Generating configuration file for e2fsprogs version 1.40.2 Release date is July, 2007 checking build system type... i686-pc-linux-gnulibc1 checking host system type... i686-pc-linux-gnulibc1 CC defaults to cc checking for gcc... cc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. |
|
|
|
|
|
#10 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 30
OS: Ubuntu 8.04 LTS
|
Re: ./configure
trying dragonmembers "solution" i got this:
home@home-desktop:/tmp/e2fsprogs-1.40.2/build$ ./configure bash: ./configure: No such file or directory home@home-desktop:/tmp/e2fsprogs-1.40.2/build$ ls config.log home@home-desktop:/tmp/e2fsprogs-1.40.2/build$ ../configure make configure: WARNING: you should use --build, --host, --target Generating configuration file for e2fsprogs version 1.40.2 Release date is July, 2007 checking build system type... Invalid configuration `make': machine `make' not recognized configure: error: /bin/bash ../config/config.sub make failed home@home-desktop:/tmp/e2fsprogs-1.40.2/build$ |
|
|
|
|
|
#12 (permalink) |
|
Registered User
Join Date: Oct 2007
Location: Littleton, Colorado USA
Posts: 470
OS: xp 64 sp2 Fedora Core 8 (vmware xp core 8 x32) Minix
|
Re: ./configure
./configure should tell you what the dependecies are. Yours died on gcc, it found cc, but couldn't create an executable (probably a temp file called a.out). It doesn't look like you have gcc, the GNU C compiler, installed. It later failed to find a program called "make". The "make" program will have to be installed.
You might try to find the list a programs that turnsUbuntu into a "development" machine. A development configured machine will have cc, gcc, g++, make, rcs/sccs, gdb, nm, ldd and so on. The cc, gcc, g++ will probably only be soft links since the "C" compiler bundles all that together now. You might have to install the "development" kernel headers too. Look at the tail-end of configure.log to see the ./configure errors. Until you get the "development" built, the compilers, you won't even get to the required libraries that will be needed. Use the "tail" command to see the end of the log file. Hope this helps. A good command to know is "which <command>" where <command>, like "make", is substituted. The shell will look through its PATH's and find which program you will be executing. That is a quick way to see if the the command has even been installed. If in you path you have the same command twice, "which" will tell you which executable will be used. The "locate <command>" will tell you the same thing, but you will get pages and pages of output. Last edited by lensman3; 07-30-2008 at 09:24 PM. |
|
|
|
|
|
#13 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 30
OS: Ubuntu 8.04 LTS
|
Re: ./configure
au contraire mon ami
i have all the versions of gcc installed from gcc to gcc 4.1, and i just installed make. the program i'm trying to build is e2fsprogs-1.40.2 for use with the LFS book version 6.3 i'm kind of at a loss, the only thing that i can think of is that the folder gcc is trying to write this a.out file to does not have permissions? could this be possible? LFS also says specifically not to do make install but ../configure make, either way its done as you suggest or the book suggests, the error is the same, 'make' not recognized although i have installed make already. Last edited by iconicmoronic; 08-01-2008 at 07:46 AM. |
|
|
|
|
|
#14 (permalink) |
|
Registered User
Join Date: Oct 2007
Location: Littleton, Colorado USA
Posts: 470
OS: xp 64 sp2 Fedora Core 8 (vmware xp core 8 x32) Minix
|
Re: ./configure
The instructions say to do (probably) three things.
1) ./configure (this will build a file called "Makefile". Note the the capital M. This will have the instructions needed in "make" syntax to build the e2fsprogs binary. (In the traditional, Unix development environment, the Makefile with the capital M would be sorted in the directory before the "C" files which "tradtionally" are all lower case letters). 2) Then at the prompt you will run "make". "make" the program, will read the "Makefile" file and execute the steps needed to build the e2fsprogs binary. This step will run the gcc compiler as needed. It will probably build some libraries. The libraries will be named "lib???.a" for static libraries and "lib???.so" for relocatable libraries. Eventually, as the last step, the linker, named "ld" will run which will combine all the dot-oh (.o) and the libraries in to a executable binary. By default, if a binary isn't given a name by gcc or ld, it will be called "a.out". You can rename a.out to any valid program name. 3) "make install" command will read the Makefile and install the libraries and the e2fsprogs binary in the correct place in the file system. To answer your questions about gcc writing the binary into a directory that doesn't have write permissions: Yes that is very possible. But if any libraries or .o files are written the "make" will abort as soon as a file can't be written. As a test, when you type "make", type in "make -n". This will dump to the screen all the commands that make would be run but not execute them. Another switch for "make" is -i, run "make -i", this tells make to ignore all errors, just blow through them, and go to the end. Remember is a file fails to compile you won't get an executable at the end. Hang in there. The first one you do is always the hardest. Last edited by lensman3; 08-01-2008 at 04:39 PM. |
|
|
|
|
|
#15 (permalink) | |
|
Manager
Join Date: Sep 2004
Location: Colorado
Posts: 987
OS: Mac OS 9.1, Mac OS X 10.5.8, WinXP Pro, FreeBSD 6.0, Gentoo Linux
|
Re: ./configure
Quote:
e2fsprogs-1.40.2 is a little out of the ordinary as far as instructions - most I've seen don't tell you to make a directory OR run a configure script from a different directory. The LFS instructions were fine up until the ../configure make. Instead you should run ../configure then make Just wondering, what page were these instructions on?
__________________
![]() Has it been a few days since I replied to your thread? Don't panic! I'm a busy college student and may forget a post if I'm extra busy (or it might just take me a while to be able to do a decent reply). If you still need help and are awaiting my reply after a few days, PM me about it. When posting what errors you get, please give the full message. It makes helping you much easier. |
|
|
|
|
|
|
#16 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 30
OS: Ubuntu 8.04 LTS
|
Re: ./configure
http://www.linuxfromscratch.org/lfs/...ilesystem.html
these are the first steps of the process. to get to the link go to www.linuxfromscratch.org and then click the LFS link. When it loads, click read online on the left hand side and after this loads, follow 'Stable' link that is just below stable erata. Follow the next button to creating a partition thanks again for your posts, especially that nice long informative one sir!! i'm gonna give it another try when I get back home. Last edited by iconicmoronic; 08-01-2008 at 06:54 PM. |
|
|
|
|
|
#17 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 30
OS: Ubuntu 8.04 LTS
|
Re: ./configure
well i got it installed, the problem was that i had autoconf and make installed, but no automake. so it was obvious problem i overlooked because i was staring at the LFS package requirements too much! thanks for your help !!
|
|
|
|
![]() |
| Thread Tools | |
|
|