Jump to content

Apache wont start and wont compile


mosteal
 Share

Recommended Posts

Hello all linux gurus,

 

i downloaded linux for one purpose and one purpose only--for use a webserver--and when the install screen came up-- that was about the only choice I made--ok cut the crap right? what the prob?

 

When i goto start apache 2.0 I get the following error:

 

[root@localhost apache2]# apachectl start

Starting httpd2: httpd2: Could not determine the server's fully qualified domain

name, using 127.0.0.1 for ServerName

[Wed Apr 28 20:03:16 2004] [error] Can't locate File/Spec/Functions.pm in @INC (

@INC contains: /var/www/perl /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-

multi/Apache2 /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3

/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/ 5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-threa d-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2/i386-l inux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5. 8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vend or_perl . /etc/httpd/2.0/ /etc/httpd/2.0/lib/perl) at /usr/lib/perl5/vendor_perl /5.8.3/i386-linux-thread-multi/Apache2/ModPerl/RegistryCooker.pm line 30.

BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.3/i386-linux -thread-multi/Apache2/ModPerl/RegistryCooker.pm line 30.

Compilation failed in require at (eval 2) line 3.

...propagated at /usr/lib/perl5/5.8.3/base.pm line 70.

BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.3/i386-linux -thread-multi/Apache2/ModPerl/Registry.pm line 11.

Compilation failed in require at /etc/httpd/conf/addon-modules/apache2-mod_perl- startup.pl line 30.

BEGIN failed--compilation aborted at /etc/httpd/conf/addon-modules/apache2-mod_p erl-startup.pl line 30.

Compilation failed in require at (eval 1) line 1.

 

[Wed Apr 28 20:03:16 2004] [error] Can't load Perl file: /etc/httpd/conf/addon-m odules/apache2-mod_perl-startup.pl for server 127.0.0.1:0, exiting...

 

[FAILED]

[root@localhost apache2]# apachectl start

Starting httpd2: httpd2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

[Wed Apr 28 20:04:35 2004] [error] Can't locate File/Spec/Functions.pm in @INC (@INC contains: /var/www/perl /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/Apache2 /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl . /etc/httpd/2.0/ /etc/httpd/2.0/lib/perl) at /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/Apache2/ModPerl/RegistryCooker.pm line 30.

BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/Apache2/ModPerl/RegistryCooker.pm line 30.

Compilation failed in require at (eval 2) line 3.

...propagated at /usr/lib/perl5/5.8.3/base.pm line 70.

BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/Apache2/ModPerl/Registry.pm line 11.

Compilation failed in require at /etc/httpd/conf/addon-modules/apache2-mod_perl-startup.pl line 30.

BEGIN failed--compilation aborted at /etc/httpd/conf/addon-modules/apache2-mod_perl-startup.pl line 30.

Compilation failed in require at (eval 1) line 1.

 

[Wed Apr 28 20:04:35 2004] [error] Can't load Perl file: /etc/httpd/conf/addon-modules/apache2-mod_perl-startup.pl for server 127.0.0.1:0, exiting...

 

 

Being about a week into linux so far I have no clue whats going on --but that does not mean I am out of ideas. So I goto apache.org download the latest version of Apache 2.0 and press the ./configure command (cause thats what they say on their website)--when i do that, this happens:

 

[root@localhost /]# cd httpd-2.0.49

[root@localhost 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

 

 

The third to the last line really gets me. No C compiler? I say whatever, I will just reinstall that! I goto the RPM files on CD1 and try to reinstall GCC. But guess what it tells me? ALREADY INSTALLED! Ok so then I the configure file in the new downloaded apache file and try to guess where to put this path. So whereever I see this $PATH sign I replace it with where the GCC compiler supposedly is (hey this taught me the locate command!) but this does not work either and I get the same error as above. My only real victory so far in mandrake is 1) I got my flash drive to work 2) I haven't thrown this computer out the window (but its coming close). I will perservere---but no one in my crowd knows a thing about Linux and I need your help.

 

So reinstate my questions:

 

How do I get Apache 2.0 started with all the above Perl related errors? or how do I get the new downloaded apache to compile?

 

Any and all tips are appreciated.

 

Mosteal

Link to comment
Share on other sites

. What version of Linux are you using? if its Mandrake try the following.

My advice would be to use the mandrake control centre to remove the files you installed and then start over.

Go to the mandrake control centre and install

  • Bind
  • Webmin
  • Apache

You can start and configure apache and all other services from the Webmin interface. So after installing the above, type into your browser

127.0.0.1:10000/

this will ask for your root password and then launch Webmin.

If Webmin is not running or doesn't start, go into a consol and type su followed by your root password.

Then just type

webmin

then try again in your browser.

Link to comment
Share on other sites

Thanks for the advice. I tried to follow it but i got more error messages.

 

I went to the mandrake control center, clicked on Software management and then Install.

 

A warning message then came up that said "This program has exited abnormally"

 

It said this for Remove and Updates Icon too. Is my Mandrake too corrupted to continue? What do ya think? Fresh install again?

 

Mosteal

Link to comment
Share on other sites

If the control centre isn't working either, it was probably a bad install.

Sounds like a fresh clean install might be your best bet as your new to linux.

What version are you running?

 

Its also possible you had a bad download and your ISOs are corrupted, so check the md5sums to verify mandrake is OK.

How to do that? http://www.MandrakeUsers.org/index.php?sho...indpost&p=32853

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...