LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-09-2004, 09:35 AM   #1
treotan
Member
 
Registered: Jun 2004
Posts: 126

Rep: Reputation: 15
Install Apache


I just try install Apache, but it shown the problem as following:

[root@localhost httpd-2.0.52]# ./configure --prefix=/usr/apache2 --enable-module
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
Configuring APR library
Platform: i686-pc-linux-gnuoldld
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
 
Old 12-09-2004, 09:52 AM   #2
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
You need gcc installed. What distro are you using? If mandrake, do:

urpmi gcc

and if anything else, do you have a package manager installed? If so, open it and search for gcc...then install it...

Good luck,
 
Old 12-09-2004, 01:04 PM   #3
bostontech
LQ Newbie
 
Registered: Dec 2004
Location: Boston
Distribution: all
Posts: 23

Rep: Reputation: 15
gcc may be installed, but it might not be in your $path during installation. make sure that the path to the gcc binary is in you path and try again.

BTG
 
Old 12-09-2004, 08:44 PM   #4
treotan
Member
 
Registered: Jun 2004
Posts: 126

Original Poster
Rep: Reputation: 15
Hi!
I don't know the Fedoral core 2 is installed the gcc or not! please tell me how to check?
I tried as following:
[root@localhost tmp]# locate gcc
/lib/modules/2.6.5-1.358/build/include/linux/compiler-gcc+.h
/lib/modules/2.6.5-1.358/build/include/linux/compiler-gcc3.h
/lib/modules/2.6.5-1.358/build/include/linux/compiler-gcc.h
/lib/modules/2.6.5-1.358/build/include/linux/compiler-gcc2.h
/lib/modules/2.6.5-1.358/build/include/acpi/platform/acgcc.h
/lib/modules/2.6.5-1.358/build/scripts/gcc-version.sh
/lib/libgcc_s-3.3.3-20040413.so.1
/lib/libgcc_s.so.1
/usr/lib/gcc-lib
/usr/lib/gcc-lib/i386-redhat-linux
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/cc1
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3
/usr/lib/gcc-lib/i386-redhat-linux
/usr/lib/gcc-lib
/usr/java/j2sdk1.4.2_06/jre/plugin/i386/ns610-gcc32
/usr/java/j2sdk1.4.2_06/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
/usr/java/j2sdk1.4.2_06/jre/plugin/i386/ns610-gcc32
/usr/share/ghostscript/Resource/ac14/CMap/HKgccs-B5-H
/usr/share/ghostscript/Resource/ac14/CMap/HKgccs-B5-V
/usr/share/ghostscript/Resource/CMap/HKgccs-B5-H
/usr/share/ghostscript/Resource/CMap/HKgccs-B5-V

and How to add the path?
If the machine didnt install gcc lib, what is the simple way to install? I already downloaded the gcc-3.4.3.tar.gz; How to install it? I looked through the online installation guide, dont understand??
 
Old 12-09-2004, 10:47 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,276

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Looks like you have the gcc-libs, but not the compiler itself. You can look for the RPM on your install disks, or do "yum install gcc" (no quotes) if you have Yum set up. I think redhat-config-packages will bring up a pretty GUI that will tell you which install CD gcc is on. Don't try to install the tarball -- that's for those who want to compile gcc from source, which you can't do, because you don't have a compiler.
 
Old 12-10-2004, 01:47 AM   #6
treotan
Member
 
Registered: Jun 2004
Posts: 126

Original Poster
Rep: Reputation: 15
[root@localhost tmp]# rpm -ivh gcc-2.95.3-1owl.i386.rpm
error: Failed dependencies:
binutils >= 2.9.1.0.25 is needed by gcc-2.95.3-1owl
cpp = 2.95.3 is needed by gcc-2.95.3-1owl

What do it needed?
 
Old 12-11-2004, 07:58 AM   #7
backroger
Member
 
Registered: Dec 2004
Posts: 81

Rep: Reputation: 15
You could try to add gcc/cc compiler in the application program itself sort of update or add program but on your distro itself.
 
Old 12-11-2004, 02:19 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,276

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
You need the binutils and cpp RPMs. Out of curiousity, why are you installing a gcc-2.96 RPM? RH9 ships with 3.2.2, so it looks like you're not using the official RH package. You should probably do so, since it's guaranteed compatible with your system. For that matter, you can also install Apache via RPM and save yourself the trouble of compiling, unless you need to set some strange compile time options.
 
  


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
How to install Apache stanleytiew Linux - Newbie 2 04-27-2005 11:07 AM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-10-2003 12:16 AM
RH8.0 : Need to uninstall Apache 2 and install Apache 1 ericcarlson Linux - Software 1 02-10-2003 03:13 PM
Apache 1.3.24 Install Help Lorddraco98 Slackware 5 04-27-2002 01:18 PM
Removing apache rpm and install apache from source john lee Linux - Software 2 11-15-2001 09:44 PM


All times are GMT -5. The time now is 06:21 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