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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Linux Support Linux - Operating Systems and Applications Support

Reply
 
LinkBack Thread Tools
Old 07-25-2008, 12:21 AM   #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.
iconicmoronic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 07-25-2008, 08:24 AM   #2 (permalink)
Moderator/Fedora Amb.
 
wmorri's Avatar
 
Join Date: May 2008
Location: /pm/etc
Posts: 2,821
OS: Window 7/Fedora 10

My System

Send a message via AIM to wmorri
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
Cheers!
__________________


Linux Forever!

wmorri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-25-2008, 10:01 AM   #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!
iconicmoronic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-25-2008, 10:39 AM   #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
iconicmoronic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-25-2008, 02:34 PM   #5 (permalink)
Registered User
 
dragonember's Avatar
 
Join Date: Jan 2006
Location: The voices in my head disagree...
Posts: 163
OS: Windows XP: Home Edition SP2/Ububtu 8.04

My System

Send a message via AIM to dragonember Send a message via MSN to dragonember Send a message via Yahoo to dragonember
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
dragonember is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-25-2008, 02:47 PM   #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.
lensman3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-25-2008, 03:02 PM   #7 (permalink)
Registered User
 
dragonember's Avatar
 
Join Date: Jan 2006
Location: The voices in my head disagree...
Posts: 163
OS: Windows XP: Home Edition SP2/Ububtu 8.04

My System

Send a message via AIM to dragonember Send a message via MSN to dragonember Send a message via Yahoo to dragonember
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
dragonember is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-25-2008, 08:19 PM   #8 (permalink)
Manager
 
shuuhen's Avatar
 
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

My System

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.
shuuhen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-26-2008, 02:00 PM   #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.
iconicmoronic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-26-2008, 02:02 PM   #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$
iconicmoronic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-26-2008, 02:04 PM   #11 (permalink)
Registered User
 
Join Date: Jul 2008
Posts: 30
OS: Ubuntu 8.04 LTS


Re: ./configure

where can i find a dependencies list,website,database or whatever?
iconicmoronic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-30-2008, 09:21 PM   #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.
lensman3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-01-2008, 07:40 AM   #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.
iconicmoronic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-01-2008, 04:37 PM   #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.
lensman3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-01-2008, 06:19 PM   #15 (permalink)
Manager
 
shuuhen's Avatar
 
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

My System

Re: ./configure

Quote:
Originally Posted by iconicmoronic View Post
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.
I doubt the permissions have issues. What it looks like to me is one of the authors put in a pretty big typo. In most source packages I've dealt with, there was a README or INSTALL file (yes, usually capitalized - but not always), sometimes both. The README and/or INSTALL file should just be a text file and should have install instructions and sometimes dependencies.

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.
shuuhen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-01-2008, 06:53 PM   #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.
iconicmoronic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-02-2008, 04:25 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 !!
iconicmoronic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 01:35 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85