LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-17-2004, 09:21 AM   #1
gbrewste
Member
 
Registered: Jun 2004
Location: Illinois
Distribution: Fedora 2
Posts: 44

Rep: Reputation: 15
problem with apache install


Hi,

I am trying to install apache. Following the directions on the apache homepage, I got the following output when I ran ./configure

[gbrewste@brewster httpd-2.0.49]$ ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 0.9.5
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr


I see there is an error involving the C compiler; I have no idea what this means. Can someone clarify?

Thanks,

Geoff
 
Old 06-17-2004, 09:45 AM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
At a command line prompt, type cc and press Enter. If it returns a response like "cc: No input files specified" then it means you have successfully found your c compiler. If the response is somethign else, it doesn't necessarily mean you don't have one installed. You might, but maybe it isn't in your path. Of course it could also mean that you don't have one. Try these:

/usr/bin/cc
/usr/bin/gcc
/usr/local/bin/cc
/usr/local/bin/gcc
/usr/ccs/bin/cc

If none of these works, you'll have to try something little more platform specific. At the prompt try one of these, depending on which OS you're using:

Red Hat Linux: rpm -qa | grep gcc or rpm -qa | grep egcs
FreeBSD: includes GCC by default

If you can't find a compiler installed, you'll have to locate one and install it. Let us know what OS you're using (and version!) and maybe we can suggest a way to install one.
 
Old 06-17-2004, 09:59 AM   #3
gbrewste
Member
 
Registered: Jun 2004
Location: Illinois
Distribution: Fedora 2
Posts: 44

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Donboy
At a command line prompt, type cc and press Enter. If it returns a response like "cc: No input files specified" then it means you have successfully found your c compiler. If the response is somethign else, it doesn't necessarily mean you don't have one installed. You might, but maybe it isn't in your path. Of course it could also mean that you don't have one. Try these:

/usr/bin/cc
/usr/bin/gcc
/usr/local/bin/cc
/usr/local/bin/gcc
/usr/ccs/bin/cc

If none of these works, you'll have to try something little more platform specific. At the prompt try one of these, depending on which OS you're using:

Red Hat Linux: rpm -qa | grep gcc or rpm -qa | grep egcs
FreeBSD: includes GCC by default

If you can't find a compiler installed, you'll have to locate one and install it. Let us know what OS you're using (and version!) and maybe we can suggest a way to install one.
Thanks for the tips. I am using Mandrake 10, and I can't remember whether I installed C compiler or not.

I typed in cc and all the other suggestions, and got a command not found message.

And, excuse my newbie ignorance, but how to check (and ultimately edit) my path?

Thanks for the assistance

Geoff
 
Old 06-17-2004, 10:06 AM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
In your home directory, you should find a file called .bashrc. Edit this file and look for a line that says PATH=..... There will be a bunch of stuff on this line. Each one of these are directories that are in your path. Just add a colon at the end and add any path you want to use.
 
Old 06-17-2004, 11:57 AM   #5
gbrewste
Member
 
Registered: Jun 2004
Location: Illinois
Distribution: Fedora 2
Posts: 44

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Donboy
In your home directory, you should find a file called .bashrc. Edit this file and look for a line that says PATH=..... There will be a bunch of stuff on this line. Each one of these are directories that are in your path. Just add a colon at the end and add any path you want to use.
I didn't actually see the .bashrc file in my home directory, but when I typed joe .bashrc I came up with the following

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

There doesn't seem to be any path statement in here, so maybe I don't have any defined.

First of all, though, I am going to try to install a C compiler. Any suggestions on where I can get a good one?

Geoff
 
Old 06-17-2004, 12:13 PM   #6
gbrewste
Member
 
Registered: Jun 2004
Location: Illinois
Distribution: Fedora 2
Posts: 44

Original Poster
Rep: Reputation: 15
I think I have determined that I need to install something like gcc before I can finish installing apache.

I have found a mirror with the following files

Jun 17 08:14 text/plain .listing 1Kb
Jun 9 04:33 Directory diffs
Jun 1 05:24 bzip2 gcc-3.3.4.tar.bz2 22784Kb
Jun 1 05:17 GNU Compr. Tar gcc-3.3.4.tar.gz 30058Kb
Jun 1 05:24 bzip2 gcc-ada-3.3.4.tar.bz2 3435Kb
Jun 1 05:17 GNU Compr. Tar gcc-ada-3.3.4.tar.gz 4869Kb
Jun 1 05:27 bzip2 gcc-core-3.3.4.tar.bz2 11299Kb
Jun 1 05:18 GNU Compr. Tar gcc-core-3.3.4.tar.gz 14834Kb
Jun 1 05:25 bzip2 gcc-g++-3.3.4.tar.bz2 2030Kb
Jun 1 05:17 GNU Compr. Tar gcc-g++-3.3.4.tar.gz 2806Kb
Jun 1 05:25 bzip2 gcc-g77-3.3.4.tar.bz2 1109Kb
Jun 1 05:17 GNU Compr. Tar gcc-g77-3.3.4.tar.gz 1444Kb
Jun 1 05:26 bzip2 gcc-java-3.3.4.tar.bz2 3548Kb
Jun 1 05:18 GNU Compr. Tar gcc-java-3.3.4.tar.gz 4501Kb
Jun 1 05:26 bzip2 gcc-objc-3.3.4.tar.bz2 201Kb
Jun 1 05:18 GNU Compr. Tar gcc-objc-3.3.4.tar.gz 248Kb
Jun 1 05:26 bzip2 gcc-testsuite-3.3.4.tar.bz2 1057Kb
Jun 1 05:18 GNU Compr. Tar gcc-testsuite-3.3.4.tar.gz 1361Kb
Jun 1 10:54 text/plain md5.sum 898 bytes

I assume I download the gcc-3.3.4.tar.gz file. However, I have no idea where to download it or what to do from there. This all stems mainly from my confusion about how to install packages in general (I have been using my Mandrake 10 installation for about 2 days now.

I would really appreciate it if someone could assist me with installing this package. I think that would go a long way to helping me understand how to install packages in general.

Thanks,

Geoff
 
Old 06-17-2004, 12:14 PM   #7
gbrewste
Member
 
Registered: Jun 2004
Location: Illinois
Distribution: Fedora 2
Posts: 44

Original Poster
Rep: Reputation: 15
Oh, and btw, I am connected to my home machine from work through SSH, and I plan on using Lynx to download the file.

Do I need to login as su to install this?
 
Old 06-17-2004, 12:33 PM   #8
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Well, I don't personally feel 100% comfortable installing anything unless it's an RPM. I grew up on Redhat and now Fedora which uses RPMs to install everything. If you have the ability to install RPMs that is what I can best advise you about. Maybe somebody here can better guide you through the install process for gcc installing from source. But usually, it's just a matter of downloading the gz file to your computer, then do...

tar xvzf packagename

A directory will be created with the same name as the package. CD into that directory and type..

./configure
make
install

But that isn't always true. Better check around in the unzipped directory that got created and look for a README or Install directions of some kind. This should clearly explain what you need to do in order to install without hosing up your system.

I'd also make absolutely sure you don't have gcc already installed. It may be installed somewhere else that I'm not sure about. Maybe do a find or locate and see if you can find gcc. I'm really surprised it's not already installed somewhere. Most distro's have it installed already.
 
Old 06-17-2004, 12:46 PM   #9
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Missed a couple of yoru questions from before... yes, you need to be root when you install it, and you can download it anywhere you like, but a good place is /usr/local/src, which is where I normally download all my source code that I'm about to install.
 
Old 06-17-2004, 01:06 PM   #10
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Note that gcc requires gcc to build (seems strange, doesn't it), so if you don't have gcc, downloading the source is not going to help you one bit. You should install the gcc RPM that came with your distro.
 
Old 06-17-2004, 01:09 PM   #11
gbrewste
Member
 
Registered: Jun 2004
Location: Illinois
Distribution: Fedora 2
Posts: 44

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by btmiller
Note that gcc requires gcc to build (seems strange, doesn't it), so if you don't have gcc, downloading the source is not going to help you one bit. You should install the gcc RPM that came with your distro.
Man, I wish I had read this a few seconds ago; I just downloaded gcc and proceded to untar it; man there are a lot of files.


I was actually wondering about whether I needed a c compiler to install this from source. Guess I am not as stupid as I think.

Geoff
 
Old 06-17-2004, 01:47 PM   #12
gbrewste
Member
 
Registered: Jun 2004
Location: Illinois
Distribution: Fedora 2
Posts: 44

Original Poster
Rep: Reputation: 15
Ok, I downloaded what I think is the rpm for gcc for Mandrake 10

It is in my /usr/src/ directory

This is what I typed and what happens.

rpm -ivh gcc-3.3.2-6mdk.src.rpm
Retrieving http://rpm.pbone.net/index.php3/stat...2-6mdk.src.rpm
error: open of <!-- failed: No such file or directory
error: open of X-URL: failed: No such file or directory

What am I doing wrong, and why is it trying to connect to rpm.pbone.net again? I just downloaded it from there.

argh, this can be frustrating sometimes.

Geoff
 
Old 06-17-2004, 02:21 PM   #13
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Mmmm... we're getting a little out of my neighborhood on this one, but at first glance, I'd say maybe you got the wrong RPM. I think you don't want the src RPM... I think you want the i386 one. But listen... I could be way off here... I've only had to install gcc like one time.
 
Old 06-17-2004, 02:44 PM   #14
gbrewste
Member
 
Registered: Jun 2004
Location: Illinois
Distribution: Fedora 2
Posts: 44

Original Poster
Rep: Reputation: 15
I think that is probably it. Is there a difference between i386 and i586. I can't seem to find the i386 rpm, but I find an i586 rpm.

Geoff
 
Old 06-17-2004, 02:49 PM   #15
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Yeah, that's the one you want. I remember reading what the difference is, but I don't remember it now, so I guess it doesn't really matter, otherwise I would have remembered. LOL! I think the higher number is always best, but if you can't find a higher one, then it doesn't really matter.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
apache install problem ssfrstlstnm Debian 2 09-09-2005 08:03 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
apache install problem- redhat enterprise einherjar Linux - Software 0 06-29-2004 07:54 PM
RH8.0 : Need to uninstall Apache 2 and install Apache 1 ericcarlson Linux - Software 1 02-10-2003 02:13 PM
Removing apache rpm and install apache from source john lee Linux - Software 2 11-15-2001 08:44 PM

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

All times are GMT -5. The time now is 02:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration