Re: Apache.pm failed to load!
Hi, thanks to all for the help I found the answer. I ran strace against httpd and found it was loading an old version of Apache.pm from /usr/lib/perl5/site_perl/5.6.1 not sure how it got there. Removed it and all worked. thanks James - Original Message - From: James Kirkland To: [EMAIL PROTECTED] Sent: Tuesday, June 04, 2002 11:09 Subject: Apache.pm failed to load! Hi, I am getting the "Apache.pm failed to load!" error. I need help to resolve: [root@fisher mysql]# perl -MApache -e 1 Can't load '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Slash/Apache/Apache.so' for module Slash::Apache: /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Slash/Apache/Apache.so: undefined symbol: perl_cmd_perl_TAKE1 at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. at -e line 0Compilation failed in require.BEGIN failed--compilation aborted. the end of the strace output is: read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\*\0\000"..., 1024) = 1024fstat64(5, {st_mode=S_IFREG|0755, st_size=41994, ...}) = 0brk(0x87ed000) = 0x87ed000old_mmap(NULL, 37492, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0x40b32000mprotect(0x40b3a000, 4724, PROT_NONE) = 0old_mmap(0x40b3a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 5, 0x7000) = 0x40b3a000close(5) = 0open("/usr/lib/mysql/i686/mmx/libmysqlclient.so.10", O_RDONLY) = -1 ENOENT (No such file or directory)stat64("/usr/lib/mysql/i686/mmx", 0xbfffef30) = -1 ENOENT (No such file or directory)open("/usr/lib/mysql/i686/libmysqlclient.so.10", O_RDONLY) = -1 ENOENT (No such file or directory)stat64("/usr/lib/mysql/i686", 0xbfffef30) = -1 ENOENT (No such file or directory)open("/usr/lib/mysql/mmx/libmysqlclient.so.10", O_RDONLY) = -1 ENOENT (No such file or directory)stat64("/usr/lib/mysql/mmx", 0xbfffef30) = -1 ENOENT (No such file or directory)open("/usr/lib/mysql/libmysqlclient.so.10", O_RDONLY) = 5read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\200"..., 1024) = 1024fstat64(5, {st_mode=S_IFREG|0755, st_size=251027, ...}) = 0old_mmap(NULL, 216960, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0x40b84000mprotect(0x40ba1000, 98176, PROT_NONE) = 0old_mmap(0x40ba1000, 98304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 5, 0x1d000) = 0x40ba1000close(5) = 0brk(0x87ee000) = 0x87ee000brk(0x87ef000) = 0x87ef000brk(0x87f) = 0x87frt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0write(2, "Apache.pm failed to load!.\n", 27) = 27_exit(2) [root@fisher mysql]# rpm -qa |grep perlperl-SGMLSpm-1.03ii-4perl-DB_File-1.75-34.99.6groff-perl-1.17.2-12perl-libxml-enno-1.02-15perl-libwww-perl-5.63-9perl-libxml-perl-0.07-14perl-5.6.1-34.99.6perl-CPAN-1.59_54-34.99.6perl-NDBM_File-1.75-34.99.6perl-DateManip-5.40-15perl-Digest-MD5-2.16-15perl-Parse-Yapp-1.05-15perl-URI-1.17-16perl-XML-Encoding-1.01-9perl-XML-Parser-2.30-15perl-XML-Dumper-0.4-12perl-Crypt-SSLeay-0.35-15perl-Frontier-RPC-0.06-14perl-suidperl-5.6.1-34.99.6perl-TimeDate-1.10-14mod_perl-1.26-5perl-CGI-2.752-34.99.6perl-Storable-1.0.14-15perl-XML-Grove-0.46alpha-11perl-XML-Twig-2.02-9perl-Devel-Symdump-2.01-15perl-Time-HiRes-1.20-14 thanksJames
Re: Apache.pm failed to load!
Hi, For more information I get that error when I run: httpd -f conf/httpd.conf -DHAVE_PERL thanks James - Original Message - From: James Kirkland To: [EMAIL PROTECTED] Sent: Tuesday, June 04, 2002 11:09 Subject: Apache.pm failed to load! Hi, I am getting the "Apache.pm failed to load!" error. I need help to resolve: [root@fisher mysql]# perl -MApache -e 1 Can't load '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Slash/Apache/Apache.so' for module Slash::Apache: /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Slash/Apache/Apache.so: undefined symbol: perl_cmd_perl_TAKE1 at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. at -e line 0Compilation failed in require.BEGIN failed--compilation aborted. the end of the strace output is: read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\*\0\000"..., 1024) = 1024fstat64(5, {st_mode=S_IFREG|0755, st_size=41994, ...}) = 0brk(0x87ed000) = 0x87ed000old_mmap(NULL, 37492, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0x40b32000mprotect(0x40b3a000, 4724, PROT_NONE) = 0old_mmap(0x40b3a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 5, 0x7000) = 0x40b3a000close(5) = 0open("/usr/lib/mysql/i686/mmx/libmysqlclient.so.10", O_RDONLY) = -1 ENOENT (No such file or directory)stat64("/usr/lib/mysql/i686/mmx", 0xbfffef30) = -1 ENOENT (No such file or directory)open("/usr/lib/mysql/i686/libmysqlclient.so.10", O_RDONLY) = -1 ENOENT (No such file or directory)stat64("/usr/lib/mysql/i686", 0xbfffef30) = -1 ENOENT (No such file or directory)open("/usr/lib/mysql/mmx/libmysqlclient.so.10", O_RDONLY) = -1 ENOENT (No such file or directory)stat64("/usr/lib/mysql/mmx", 0xbfffef30) = -1 ENOENT (No such file or directory)open("/usr/lib/mysql/libmysqlclient.so.10", O_RDONLY) = 5read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\200"..., 1024) = 1024fstat64(5, {st_mode=S_IFREG|0755, st_size=251027, ...}) = 0old_mmap(NULL, 216960, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0x40b84000mprotect(0x40ba1000, 98176, PROT_NONE) = 0old_mmap(0x40ba1000, 98304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 5, 0x1d000) = 0x40ba1000close(5) = 0brk(0x87ee000) = 0x87ee000brk(0x87ef000) = 0x87ef000brk(0x87f) = 0x87frt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0write(2, "Apache.pm failed to load!.\n", 27) = 27_exit(2) [root@fisher mysql]# rpm -qa |grep perlperl-SGMLSpm-1.03ii-4perl-DB_File-1.75-34.99.6groff-perl-1.17.2-12perl-libxml-enno-1.02-15perl-libwww-perl-5.63-9perl-libxml-perl-0.07-14perl-5.6.1-34.99.6perl-CPAN-1.59_54-34.99.6perl-NDBM_File-1.75-34.99.6perl-DateManip-5.40-15perl-Digest-MD5-2.16-15perl-Parse-Yapp-1.05-15perl-URI-1.17-16perl-XML-Encoding-1.01-9perl-XML-Parser-2.30-15perl-XML-Dumper-0.4-12perl-Crypt-SSLeay-0.35-15perl-Frontier-RPC-0.06-14perl-suidperl-5.6.1-34.99.6perl-TimeDate-1.10-14mod_perl-1.26-5perl-CGI-2.752-34.99.6perl-Storable-1.0.14-15perl-XML-Grove-0.46alpha-11perl-XML-Twig-2.02-9perl-Devel-Symdump-2.01-15perl-Time-HiRes-1.20-14 thanksJames
Re: Apache.pm failed to load!
[Please make sure to reply to the list on follow-ups, and not to the person who has answered your question. Thank you!] James Kirkland wrote: > Hi, > > Thanks for replying. I continue to get the errors when adding that line to > httpd.conf. Is there any specific point in the file to place it? When do you get this error >>James Kirkland wrote: >> >>>Hi, >>> >>>I am getting the "Apache.pm failed to load!" error. I need help to >>>resolve: >>> >>>[root@fisher mysql]# perl -MApache -e 1 >> >> >>You shouldn't be testing mod_perl modules from the command line. it >>won't work. >> >>If it happens under mod_perl, see: >> > > >http://perl.apache.org/release/docs/1.0/guide/troubleshooting.html#_Apache_pm_failed_to_load__ __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Apache.pm failed to load!
James Kirkland wrote: > > Hi, > > I am getting the "Apache.pm failed to load!" error. I need help to > resolve: > > [root@fisher mysql]# perl -MApache -e 1 You shouldn't be testing mod_perl modules from the command line. it won't work. If it happens under mod_perl, see: http://perl.apache.org/release/docs/1.0/guide/troubleshooting.html#_Apache_pm_failed_to_load__ -- __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Apache.pm failed to load!.
___cliff rayman___ wrote: > > first off, that looks like a spanking brand new version > of apache but an older version of mod_perl. you will > probaby be happier with mod_perl-1.26 > > what happens when you try the following from the command line? > perl -MApache -e 1 > > Rasoul Hajikhani wrote: > > > Folks, > > After installing mod_perl-1.25 & apache_1.3.22 I get this error message! > > I know this is a really serious error, but I was wondering if any one > > could tell me why I would get this since the installation of both > > mod_perl and apache went through without a problem?! > > -r > > -- > ___cliff [EMAIL PROTECTED]http://www.genwax.com/ Well don't know... I removed them both and are in the middle of reinstalling them. Will let you know asap ... -r
Re: Apache.pm failed to load!.
first off, that looks like a spanking brand new version of apache but an older version of mod_perl. you will probaby be happier with mod_perl-1.26 what happens when you try the following from the command line? perl -MApache -e 1 Rasoul Hajikhani wrote: > Folks, > After installing mod_perl-1.25 & apache_1.3.22 I get this error message! > I know this is a really serious error, but I was wondering if any one > could tell me why I would get this since the installation of both > mod_perl and apache went through without a problem?! > -r -- ___cliff [EMAIL PROTECTED]http://www.genwax.com/
Re: Apache.pm failed to load!.
On Thu, 24 Aug 2000, Alexander Farber (EED) wrote: > Sorry, I have forgotten to set PERL5LIB. After > > setenv PERL5LIB /home/eedalf/lib/perl5/site_perl/5.005/sun4-solaris > > everything seems to work. Can I specify this location > somewhere in httpd.conf? http://perl.apache.org/guide/config.html#PerlSetVar_PerlSetEnv_and_PerlP http://perl.apache.org/guide/config.html#PerlSetupEnv _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://jazzvalley.com http://singlesheaven.com http://perlmonth.com perl.org apache.org
Re: Apache.pm failed to load!.
Sorry, I have forgotten to set PERL5LIB. After setenv PERL5LIB /home/eedalf/lib/perl5/site_perl/5.005/sun4-solaris everything seems to work. Can I specify this location somewhere in httpd.conf?
Re: Apache.pm failed to load
On Mon, 21 Aug 2000, Clayton Mitchell wrote: > I think I followed the directions, and I also added "PerlModule Apache" in > httpd.conf, > > but I still get the error "Apache.pm failed to load!." when trying to start > httpsd. > > I am on Sol 2.7, gcc 2.8.1 apache-1.3.12 and openssl_0.9.5 and > mod_perl-1.24. > > I have performed the steps outlined in this page with the exception noted > below. > > Any help is greatly appreciated. > > http://perl.apache.org/guide/install.html#Source_Configuration_perl_Makef > > Under the section for > > mod_perl and apache-ssl (+openssl) > > Configure and install openssl: > > % cd openssl-x.x.x > % ./config > % make && make test && make install > > > Patch Apache with SSLeay paths > > % cd apache_x.xx > % tar xzvf ../apache_x.x.x+ssl_x.xx.tar.gz > % FixPatch > Do you want me to apply the fixed-up Apache-SSL patch for you? > [n] y > > > Now edit the src/Configuration file if needed and then configure: > > % cd ../mod_perl-x.xx > % perl Makefile.PL USE_APACI=1 EVERYTHING=1 \ > DO_HTTPD=1 SSL_BASE=/usr/local/ssl \ > APACHE_SRC=../apache_x.x.x/src > > > Build, test and install: > > % make && make test && make install > % cd ../apache_x.x.x > % make certificate > % make install > > > make cert and make install steps I skipped. I had a prior version of > apache-ssl I am replacing. Don't skip the 'make install'! > Here is what the perl library has: > > # find /opt/local/lib/perl5 -name Apache > /opt/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Apache > /opt/local/lib/perl5/site_perl/5.005/Apache > # ls /opt/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Apache > AuthenSmb Sandwich > # ls /opt/local/lib/perl5/site_perl/5.005/Apache > AuthenSmb.pm Sandwich.pm > # find /opt/local/lib/perl5 -name Apache.pm > /opt/local/lib/perl5/5.00503/CGI/Apache.pm > # cp /opt/local/lib/perl5/5.00503/CGI/Apache.pm . > > ..still didn't work. > _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://jazzvalley.com http://singlesheaven.com http://perlmonth.com perl.org apache.org
Re: Apache.pm failed to LOAD!
On Wed, 3 May 2000, Wang, Pin-Chieh wrote: > Hi, > I build the apache1.3.12 using mod_perl 1.23 on Solaris 2.6 machine, > everything looks fine and installed successfully (at least the installation > program told me so...) > But when I start httpd using apachectl start, httpd did not start within > error_log there is a message "Apache.pm failed to LOAD!" assuming you did 'make install' in the mod_perl directory, does adding 'PerlModule Apache' to your httpd.conf make any difference?
Re: Apache.pm failed to LOAD!
Did it pass 'make test'? And, not meaning to insult, did you run 'make install' in the mod_perl directory? --Jeff At 07:01 PM 5/3/00, Wang, Pin-Chieh wrote: >Hi, >I build the apache1.3.12 using mod_perl 1.23 on Solaris 2.6 machine, >everything looks fine and installed successfully (at least the installation >program told me so...) >But when I start httpd using apachectl start, httpd did not start within >error_log there is a message "Apache.pm failed to LOAD!" >Any one have any ideal? Thanks in advance >P C Wang Jeff Beard _ Web:www.cyberxape.com Email: jeff at cyberxape.com Location: Boulder, CO, USA