LinuxQuestions.org
Visit Jeremy's Blog.
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 04-17-2004, 08:11 AM   #1
wurzul
LQ Newbie
 
Registered: Jul 2003
Location: New Zealand
Distribution: red Hat 9
Posts: 8

Rep: Reputation: 0
installing apache


Hi all
I started today with a windows machine and now have a functioning linux box.
to top of this feat I decided to turn it into a server using apache. I have managed to unzip apache but the whole thing ground to a halt when I tried to configure it this is the result I got


bash-2.05b# ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i586-pc-linux-gnuoldld
checking host system type... i586-pc-linux-gnuoldld
checking target system type... i586-pc-linux-gnuoldld
Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i586-pc-linux-gnuoldld
checking host system type... i586-pc-linux-gnuoldld
checking target system type... i586-pc-linux-gnuoldldConfiguring APR library
Platform: i586-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


Most of this is meaningless to me so I hope some one out there can help
If I havn't given enough details please let me know
ta
 
Old 04-17-2004, 08:13 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
You need to install GCC, but it's probably easier if you use precompiled package provided by your distro.
 
Old 04-17-2004, 08:17 AM   #3
wurzul
LQ Newbie
 
Registered: Jul 2003
Location: New Zealand
Distribution: red Hat 9
Posts: 8

Original Poster
Rep: Reputation: 0
ok what's gcc
 
Old 04-17-2004, 08:27 AM   #4
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
gcc is a compiler. Nearly every distribution provides it. You need to install it if you want to compile things, which is useful if you like to get the very latest (bleeding edge) versions of software or use non-standard software where pre-compiled packages may not be available.

You don't need it if you use only intend to use binary packages though.
 
Old 04-17-2004, 08:12 PM   #5
wurzul
LQ Newbie
 
Registered: Jul 2003
Location: New Zealand
Distribution: red Hat 9
Posts: 8

Original Poster
Rep: Reputation: 0
thanks to Demonbane and Muzzy for that info

Sorry I didnt reply went to bed 1 30 am NZ time.
OK I tried to install the compiler but the more I installed the more seemed to be needed is this whats known as dependancy hell I will try and install a binary and see if I have more luck
Contrary to what my profile says I am using a debian release called morphix which came on a single cd and I have installed it to my hard drive.
Also I don't seem to be able to access the cdrom any Ideas
 
Old 04-17-2004, 08:41 PM   #6
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 30
Yes, this is dependancy hell.
Your best bet in my opinion?
Wipe your install, and pick a diff distro - possibly a more complete one.
If you are really hating dependancy hell, and want to avoid it altogether, and on top of all that, are up for a bit of a challenge? http://www.gentoo.org
 
Old 04-17-2004, 11:08 PM   #7
wurzul
LQ Newbie
 
Registered: Jul 2003
Location: New Zealand
Distribution: red Hat 9
Posts: 8

Original Poster
Rep: Reputation: 0
Hi there penguinpwrdbox
I suspect you may be right about the reinstall I have a copy of red hat 9 which I installed on another machine (unfortunatly no longer with us) and was quite happy with it but when I tried to install it on this machine all I got was a warning saying that this machine was not supported by this version of redhat some thing to do with the mother board I think.
All that not withstanding I have managed to do a complete install of apache with every thing in the correct folders and directorys and was rewarded by a message in the terminal saying it was installed. Except that when I go to start it I get this message on the terminal


bash-2.05b# ./apachectl start
./apachectl: line 67: /usr/local/apache2/bin/httpd: cannot execute binary file
bash-2.05b#

I sort of understand what it means but have no idea what to do about it
any help would be appreciated
 
Old 04-18-2004, 12:52 AM   #8
wurzul
LQ Newbie
 
Registered: Jul 2003
Location: New Zealand
Distribution: red Hat 9
Posts: 8

Original Poster
Rep: Reputation: 0
OK a bit of windoz thinking here
I suspected that as the release of apache i was trying to install was the latest maybe the older kernel on this Debian distro didn't recognise it so I tried an earlier release of apache unfortunately the same result. So it looks like dependency hell or a new distro
I quite liked red hat but it won't run on this machine so any one got any recommendations
 
Old 04-18-2004, 02:27 AM   #9
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
Run "apt-get install gcc". If that fails, it's probably because your source list hasn't been created/updated. In that case, do an apt-setup to update your source list.
 
Old 04-20-2004, 10:03 AM   #10
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 30
To answer your httpd question.
This means that your httpd daemon is corrupt.
httpd is the app that handles www requests.
Try d/l'ing and reinstalling as has been recommended so far...
 
  


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
Installing Apache Gins Linux - General 31 09-11-2005 02:08 PM
Installing Apache 2.0.53 dashp Linux - Newbie 5 03-06-2005 07:25 PM
Installing Apache 1.3 cmccully Linux - Software 2 02-04-2005 12:49 AM
Installing Apache 1.3.26 with Thinkgeekness Linux - Software 1 03-17-2003 01:51 PM
installing apache carlcromer Linux - Security 1 07-01-2002 08:36 AM

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

All times are GMT -5. The time now is 05:45 PM.

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