LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 05-10-2009, 09:57 PM   #1
ajaygoeslinux
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Rep: Reputation: 0
Missing "./configure" executables preventing successful install of tar files


Hello All,

Thank you for your previous help. For the past two days, since installing Apache, PHP and a number of perl dependencies and packages for applications on my CentO 5.3 x64 VPS and CentOS 5.3 i386 dedicated server, I have been getting "-bash: ./configure: No such file or directory."

Everything is updated properly, including my kernels and all of the other packages on my servers. I'm not getting other install errors (except the typical Linux dependency resolving errors) when I use rpm or smart install.

I tried to find a recent error log (since I've only had the server three weeks), but the data contained in /var/log/yum.log don't provide data after January 21, 2009

Please let me know if you have any solutions-oriented ideas about how to solve this annoying problem. If you need more information, please let me know. Thank you.

Sasha
 
Old 05-10-2009, 10:32 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ajaygoeslinux View Post
Hello All,

Thank you for your previous help. For the past two days, since installing Apache, PHP and a number of perl dependencies and packages for applications on my CentO 5.3 x64 VPS and CentOS 5.3 i386 dedicated server, I have been getting "-bash: ./configure: No such file or directory."

Everything is updated properly, including my kernels and all of the other packages on my servers. I'm not getting other install errors (except the typical Linux dependency resolving errors) when I use rpm or smart install.

I tried to find a recent error log (since I've only had the server three weeks), but the data contained in /var/log/yum.log don't provide data after January 21, 2009

Please let me know if you have any solutions-oriented ideas about how to solve this annoying problem. If you need more information, please let me know. Thank you.

Sasha
YOu have been "getting" that message. How about telling us WHERE you're 'getting' it? What happens when it occurs? What's not working?
 
Old 05-11-2009, 12:22 AM   #3
erwincas
LQ Newbie
 
Registered: May 2006
Posts: 7

Rep: Reputation: 0
I have the same problem when I try to recompile the squid proxy using
this:

./configure --enable-arp-acl

I get this message:

-bash: ./configure: No such file or directory

Fedora 10
 
Old 05-11-2009, 02:55 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Commands and scripts to be run to start building Linux software:

'perl Makefile.PL' , 'perl Build.PL' , 'python setup.py build' ,
# 'python setup.py install' , 'cmake ..' , 'scons' , './waf' , 'jam' ,
'./install' , './autogen.sh' , './configure' ( or 'sh configure' ), etc.

( and sometimes 'autoconf' and 'automake' )

'./configure' is used, when the application has a configure script
in the top directory or somewhere else, e.g. src/ , else not.
( Sometimes configure is created by "other command" )

And if existing, ./configure is the second command to be run.
The first command is : 'cd <directory-with-configure-script>'
.....

Last edited by knudfl; 05-11-2009 at 03:08 AM.
 
Old 05-11-2009, 10:28 AM   #5
ajaygoeslinux
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs down

Quote:
Originally Posted by TB0ne View Post
YOu have been "getting" that message. How about telling us WHERE you're 'getting' it? What happens when it occurs? What's not working?
Um, 'TBOne', maybe I don't understand your question or just think the answer is obvious so you'll have to excuse me if I get the sense that you're annoyed at my not having provided 'enough' information. Anyway, I "get" the message where one would typically "get" it--after I untar my package and type "./configure", the message occurs. Maybe you can tell me if there is another time it occurs because, clearly, I don't know.

Moreover, I "get" this message with any package that has to be built this way and have ever since I installed Apache 2, PHP and all of the perl packages I need for other apps on my server. Since that is the case, I did not bother to post any instances because they all look exactly the same.

I surmise that, since this only began happening after I installed the above-mentioned packages, the issue is either a conflict with some other installed package that is meant to configure packages but that are dependencies for some packages or the inability of the OS to locate the "./configure" executable associated with the particular package.

So, since I don't "get" why it's happening and am just trying to get some input from people here who want to be helpful without behaving like I slapped them because I didn't ask the question correctly.

April

P.S. For those who think my answer is over the top, I'm not the only Linux newbie who feels this way when we get responses with a tone like this one. I'm just one of those who doesn't feel my lack of knowledge about Linux means I'm just a plain moron, period, and, as such, should expect to be treated as such by those with far more superior knowledge about the OS. (See this article: Top 7 Reasons Why People Quit Linux)

I mean, don't get it twisted but I need to set the record straight. I appreciate responses--but I appreciate them more if they're helpful like those of most of the people who have been kind enough to post responses to my questions. (Read the next response from another senior member, knudfl, to know what I (and I'm sure most Linux users) mean. Expertise without snobbery or snarkiness. Love it!) I usually make a request in my posts that those whose answer will be like this one, and, therefore, unhelpful and a bit offensive in tone, not post responses to my questions. Yes, it limits the number of responses I get but it prevents debates and posting of useless information and responses (which I and others have to then read repeatedly, going back years, each time I research an issue I'm having and that's annoying!). It also precludes responses that discourage Linux newbs posting queries.

I get the most helpful answers and others find information they, too, can use when they come across the threads. Anyway, I've had it with these kinds of responses (which are often defended by others who say "so-and-so is one of our gurus so any information you get from them is like manna from Heaven" as harps play in the background while they type their obsequious post). I think it's time to speak up and I hope it's the last time I have to. (Well, actually, if my post isn't removed, I'll just link back to it. If it is, I'll post it all over the blogosphere.

Like many other Linux newbs who post here, I know far more about things that most people, never mind Linux experts, will ever know and am regarded as a knowledge resource (encyclopedia as some have said) in many areas. I write about some of those things and I don't treat those less knowledgeable than I in those areas or any other like idiots because they ask questions. I try to encourage them and let them know they CAN learn this or that.

The bottom line is I find this kind of behavior by a minority of Linux experts unnecessary and I would just like the Linux experts to either NOT to treat newbs like annoying butt sores OR NOT participate in forums like this where the clearly perceived by some as the great unwashed of the Windows world are coming to glean Linux knowledge. Just don't respond to the posts if you have little more to offer than sarcasm or snarkiness because just as you're free to speak, I'm free to respond.

Last edited by ajaygoeslinux; 05-11-2009 at 10:31 AM.
 
Old 05-11-2009, 10:45 AM   #6
ajaygoeslinux
LQ Newbie
 
Registered: Apr 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by knudfl View Post
Commands and scripts to be run to start building Linux software:

'perl Makefile.PL' , 'perl Build.PL' , 'python setup.py build' ,
# 'python setup.py install' , 'cmake ..' , 'scons' , './waf' , 'jam' ,
'./install' , './autogen.sh' , './configure' ( or 'sh configure' ), etc.

( and sometimes 'autoconf' and 'automake' )

'./configure' is used, when the application has a configure script
in the top directory or somewhere else, e.g. src/ , else not.
( Sometimes configure is created by "other command" )

And if existing, ./configure is the second command to be run.
The first command is : 'cd <directory-with-configure-script>'
.....
Thank you for your response because it is helpful and makes sense. From my research, I got the impression all of these applications had './configure' scripts and, although I usually read the installation instruction carefully before installing, I don't always see the reference to './configure'. I have tried "Makefile.PL" or "Build.PL" after reading someone's incomplete instructions on how to use the commands that I have to enter 'perl' first.

Here's a follow up question or two. How do I know which of these to use and how many can I try before I get the Windows BSOD equivalent (okay, I'm exaggerating but this is just as frustrating) on Linux--the fatal command, file lost forever message that requires me to start a square one?

Finally, I do switch directories but, clearly, not to the one where the './configure' script is located. Is there away to find out where that is without having to run "yum -c" between untarring and configuring?

Again, thank you for being as clear as I've seen instructions in a while. I wish others would remember that not everyone understands Linux when they post responses to these queries and would post their responses with that understanding.

April
 
Old 05-11-2009, 03:07 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The most common ( and most easy ) way to do it :

Assume /home/"username"/tmp

cd tmp/
tar xvf <application>
cd <application>
Then you should be in the right directory ( most often.)

A good idea is to look for 'configure' in that directory,
using a file manager. No guaranty, 'configure' exists,
you may have to run run './autogen.sh' or something else
to create it. But please read the README, INSTALL, or
available documentation in the application or on the
internet for install instructions.

Lots of applications also have changed to 'cmake' or one
of the other build tools in the latest versions.
.....
If you see : Makefile.PL, run 'perl Makefile.PL' to
create the 'Makefile' .
CMakeLists.txt : run 'cmake ..' from a build directory.
setup.py : run 'python setup.py' etc.
.....

Last edited by knudfl; 05-11-2009 at 03:14 PM.
 
Old 05-11-2009, 03:38 PM   #8
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by ajaygoeslinux View Post
P.S. For those who think my answer is over the top, I'm not the only Linux newbie who feels this way when we get responses with a tone like this one. I'm just one of those who doesn't feel my lack of knowledge about Linux means I'm just a plain moron, period, and, as such, should expect to be treated as such by those with far more superior knowledge about the OS. (See this article: Top 7 Reasons Why People Quit Linux)
I really shouldn't do this, but I don't think TB0ne was out of line. See this article: How to Ask Questions the Smart Way
 
Old 05-11-2009, 03:50 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ajaygoeslinux View Post
Um, 'TBOne', maybe I don't understand your question or just think the answer is obvious so you'll have to excuse me if I get the sense that you're annoyed at my not having provided 'enough' information. Anyway, I "get" the message where one would typically "get" it--after I untar my package and type "./configure", the message occurs. Maybe you can tell me if there is another time it occurs because, clearly, I don't know.
Great..you answered the question, which is why I asked it. In your original post, you didn't say when you got the message, or what you were doing to get it, just this:

Quote:
Thank you for your previous help. For the past two days, since installing Apache, PHP and a number of perl dependencies and packages for applications on my CentO 5.3 x64 VPS and CentOS 5.3 i386 dedicated server, I have been getting "-bash: ./configure: No such file or directory."
You didn't say "this happens when I untar package XXX, and type in ./configure". If you took it as being frustrated or whatever, that's fine. There was no "tone" in the message, just a question.

If you brought a car to your mechanic, and said "The warning light comes on", it stands to reason the mechanic would ask "WHICH warning light? When does it come on?". This is no different...if you ask for help, be sure to include all the details and describe the situation. It may be obvious to YOU, but it won't be to us.
 
Old 05-11-2009, 03:59 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ajaygoeslinux View Post
Thank you for your response because it is helpful and makes sense. From my research, I got the impression all of these applications had './configure' scripts and, although I usually read the installation instruction carefully before installing, I don't always see the reference to './configure'. I have tried "Makefile.PL" or "Build.PL" after reading someone's incomplete instructions on how to use the commands that I have to enter 'perl' first.

Here's a follow up question or two. How do I know which of these to use and how many can I try before I get the Windows BSOD equivalent (okay, I'm exaggerating but this is just as frustrating) on Linux--the fatal command, file lost forever message that requires me to start a square one?

Finally, I do switch directories but, clearly, not to the one where the './configure' script is located. Is there away to find out where that is without having to run "yum -c" between untarring and configuring?

Again, thank you for being as clear as I've seen instructions in a while. I wish others would remember that not everyone understands Linux when they post responses to these queries and would post their responses with that understanding.

April
Which to use will depend on the package. I'd say well over 90% of Linux software will either include a readme or an install file (either in text or HTML that you can open with your web browser), that tells you the basics for installation. As knudfl said, there are lots of options.

Some basics:

Most software will create a directory of the same name. So if you download mypackage.tar.gz, then untar it, it'll *PROBABLY* create a "mypackage" directory. So, "cd mypackage", then you'll find the config scripts/software/instructions in there. For simplicity's sake, you may want to create a directory that you do nothing but download files to. A quick "ls" will tell you what's in there, and you'll easily be able to tell what new directories got created when you untar something. Also be aware that Linux is case sensitive...so "./Configure" is different from "./configure".

For Perl modules: Untar the file, and go into the directory it creates. Then "perl Makefile.PL", "make", "make test", then (as root) "make install".
For other software: Untar as above, go to directory. Then type in "./configure", "make", then (as root)"make install".

BUT you could also have to do an automake, edit a text file, or some other step(s). Be sure to always check the docs that come with it, and reference the web page if you get stuck.

And the BSOD doesn't apply, in the sense it does in Windows. A program may die, but it's very rare that you'll have to reboot....
 
  


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
can't compile; configure won't complete: "C compiler cannot create executables" pbhj Slackware 5 12-15-2010 06:59 AM
error: "c compiler cannot create executables" when trying to run ./configure fedoraemu Linux - Software 2 04-24-2007 07:43 PM
How to install from ".tar.gz" files or from source file in FC3 firewiz87 Linux - Newbie 2 03-05-2006 10:38 AM
"Successful install" results in "Boot device not found" slackr007 Fedora 2 06-21-2005 04:05 PM
"Successful install" results in "Boot device not found" slackr007 Linux - Newbie 2 05-31-2005 08:02 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 03:30 AM.

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