Startring apache I get the following error:
/etc/init.d/httpd start
Starting httpd: Syntax error on line 1465 of /etc/httpd/conf/httpd.conf:
Can’t locate Apache/DBI.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at (eval 3) line 3.
After adding the following to httpd.conf:
DocumentRoot /opt/rt2/WebRT/html
ServerName server.my.domain
PerlModule Apache::DBI
PerlFreshRestart On
PerlRequire /opt/rt2/bin/webmux.pl
SetHandler perl-script
PerlHandler RT::Mason
I did as you suggested:
-cut-
/usr/local/bin/perl -MCPAN -e 'install Apache::DBI’
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Fri, 01 Mar 2002 12:41:04 GMT
HTTP::Date not available
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Apache::DBI is up to date.
-cut-
And when I started again I got:
/etc/init.d/httpd start
Starting httpd: Syntax error on line 1465 of /etc/httpd/conf/httpd.conf:
Can’t locate Apache/DBI.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at (eval 3) line 3.
Any other ideas?----- Original Message -----
From: Alexander, John
To: 'Randy Millis (Lists Acct.)'
Sent: Friday, March 01, 2002 2:11 PM
Subject: RE: [rt-users] Can’t locate Apache/DBI.pm in @INC
/usr/local/bin/perl -MCPAN -e ‘install Apache::DBI’
should do it. Substitue your perl path…
Thanks I’ll try that.----- Original Message -----
From: Alexander, John
To: ‘Randy Millis (Lists Acct.)’
Sent: Friday, March 01, 2002 3:04 PM
Subject: RE: [rt-users] Can’t locate Apache/DBI.pm in @INC
Randy,
You can also get rid of that HTTP::Date thing by installing libwww
perl -MCPAN -e ‘install Bundle::LWP’
If that fails, you can go here:
Search for "dist:libwww-perl" - metacpan.org
and get it and do the gunzip, tar, perl Makefile.PL, make, make test, make install
John
-----Original Message-----
From: Randy Millis (Lists Acct.) [mailto:rmillisl@fse.enel.ucalgary.ca]
Sent: Friday, March 01, 2002 4:25 PM
To: Alexander, John
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Can’t locate Apache/DBI.pm in @INC
I did as you suggested:
-cut-
/usr/local/bin/perl -MCPAN -e 'install Apache::DBI'
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Fri, 01 Mar 2002 12:41:04 GMT
HTTP::Date not available
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Apache::DBI is up to date.
-cut-
And when I started again I got:
/etc/init.d/httpd start
Starting httpd: Syntax error on line 1465 of /etc/httpd/conf/httpd.conf:
Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at (eval 3) line 3.
Any other ideas?
----- Original Message -----
From: Alexander, John
To: 'Randy Millis (Lists Acct.)'
Sent: Friday, March 01, 2002 2:11 PM
Subject: RE: [rt-users] Can't locate Apache/DBI.pm in @INC
/usr/local/bin/perl -MCPAN -e 'install Apache::DBI'
should do it. Substitue your perl path...
What’s that doing (or not in this case) for me? It appears installed though now:-)
Writing /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/libwww-perl/.packlist
Appending installation info to /usr/lib/perl5/5.6.0/i386-linux/perllocal.pod
/usr/bin/make install – OK----- Original Message -----
From: Alexander, John
To: ‘Randy Millis (Lists Acct.)’
Sent: Friday, March 01, 2002 3:04 PM
Subject: RE: [rt-users] Can’t locate Apache/DBI.pm in @INC
Randy,
You can also get rid of that HTTP::Date thing by installing libwww
perl -MCPAN -e ‘install Bundle::LWP’
If that fails, you can go here:
Search for "dist:libwww-perl" - metacpan.org
and get it and do the gunzip, tar, perl Makefile.PL, make, make test, make install
John
-----Original Message-----
From: Randy Millis (Lists Acct.) [mailto:rmillisl@fse.enel.ucalgary.ca]
Sent: Friday, March 01, 2002 4:25 PM
To: Alexander, John
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Can’t locate Apache/DBI.pm in @INC
I did as you suggested:
-cut-
/usr/local/bin/perl -MCPAN -e 'install Apache::DBI'
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Fri, 01 Mar 2002 12:41:04 GMT
HTTP::Date not available
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Apache::DBI is up to date.
-cut-
And when I started again I got:
/etc/init.d/httpd start
Starting httpd: Syntax error on line 1465 of /etc/httpd/conf/httpd.conf:
Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at (eval 3) line 3.
Any other ideas?
----- Original Message -----
From: Alexander, John
To: 'Randy Millis (Lists Acct.)'
Sent: Friday, March 01, 2002 2:11 PM
Subject: RE: [rt-users] Can't locate Apache/DBI.pm in @INC
/usr/local/bin/perl -MCPAN -e 'install Apache::DBI'
should do it. Substitue your perl path...
What’s that doing (or not in this case) for me? It appears installed though now:-)
Writing /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/libwww-perl/.packlist
Appending installation info to /usr/lib/perl5/5.6.0/i386-linux/perllocal.pod
/usr/bin/make install – OK----- Original Message -----
From: Alexander, John
To: ‘Randy Millis (Lists Acct.)’
Sent: Friday, March 01, 2002 3:04 PM
Subject: RE: [rt-users] Can’t locate Apache/DBI.pm in @INC
Randy,
You can also get rid of that HTTP::Date thing by installing libwww
perl -MCPAN -e ‘install Bundle::LWP’
If that fails, you can go here:
Search for "dist:libwww-perl" - metacpan.org
and get it and do the gunzip, tar, perl Makefile.PL, make, make test, make install
John
-----Original Message-----
From: Randy Millis (Lists Acct.) [mailto:rmillisl@fse.enel.ucalgary.ca]
Sent: Friday, March 01, 2002 4:25 PM
To: Alexander, John
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Can’t locate Apache/DBI.pm in @INC
I did as you suggested:
-cut-
/usr/local/bin/perl -MCPAN -e 'install Apache::DBI'
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Fri, 01 Mar 2002 12:41:04 GMT
HTTP::Date not available
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Apache::DBI is up to date.
-cut-
And when I started again I got:
/etc/init.d/httpd start
Starting httpd: Syntax error on line 1465 of /etc/httpd/conf/httpd.conf:
Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at (eval 3) line 3.
Any other ideas?
----- Original Message -----
From: Alexander, John
To: 'Randy Millis (Lists Acct.)'
Sent: Friday, March 01, 2002 2:11 PM
Subject: RE: [rt-users] Can't locate Apache/DBI.pm in @INC
/usr/local/bin/perl -MCPAN -e 'install Apache::DBI'
should do it. Substitue your perl path...
When I attempt to load Apache I get the following error message:
Syntax error on line 1078 of /etc/httpd/httpd.conf:
Can’t locate Apache/DBI.pm in @INC (@INC contains: /sw/lib/perl5
/sw/lib/perl5 /System/Library/Perl/5.8.1/darwin-thread-multi-2level
/System/Library/Perl/5.8.1
/Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1
/Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
/Network/Library/Perl/5.8.1 /Network/Library/Perl . /usr/
/usr/lib/perl) at (eval 3) line 3.
/usr/sbin/apachectl start: httpd could not be started
This happened after I added the following code:
<VirtualHost 127.0.0.1>
ServerName rt3.localhost
DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl
SetHandler perl-script
PerlHandler RT::Mason
I have Apache::DBI installed, and I am using Perl 5.8.6, so I am
wondering why I am getting this error message, and why I see Perl 5.8.1
in my @INC path.
Line 1078 in my httpd.conf is:
PerlRequire /opt/rt3/bin/webmux.pl
Any clues?
Thanks
Because you’ve upgraded your perl from 5.8.1 to 5.8.6 and didn’t rebuilt
mod_perl. See Request Tracker Wiki
Everett Littles wrote:
anyone understand why im catching this error
apachectl start
[Wed Aug 10 04:00:18 2005] [error] Can’t locate Apache/DBI.pm in @INC
(@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .
/etc/httpd/ /etc/httpd/lib/perl) at (eval 3) line 3.!
[Wed Aug 10 04:00:18 2005] [error] Can’t load Perl module Apache::DBI
for server localhost:0, exiting…!
perl -le ‘print join(“\n”, @INC);’
/usr/local/lib/perl5/5.8.7/i686-linux
/usr/local/lib/perl5/5.8.7
/usr/local/lib/perl5/site_perl/5.8.7/i686-linux
/usr/local/lib/perl5/site_perl/5.8.7
/usr/local/lib/perl5/site_perl
.
locate DBI.pm
/root/.cpan/build/Apache-Session-1.6/Session/Store/DBI.pm
/root/.cpan/build/Apache-Session-1.6/blib/lib/Apache/Session/Store/DBI.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/DBI.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Bundle/DBI.pm
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/Bundle/DBI.pm
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/DBI.pm
/usr/local/lib/perl5/site_perl/5.8.7/i686-linux/DBI.pm
/usr/local/lib/perl5/site_perl/5.8.7/i686-linux/Bundle/DBI.pm
/usr/local/lib/perl5/site_perl/5.8.7/Apache/Session/Store/DBI.pm
/usr/local/lib/perl5/site_perl/5.8.7/Apache/AuthDBI.pm
/usr/local/lib/perl5/site_perl/5.8.7/Apache/DBI.pm
/home/foo/zo/cvs/perl_modules/cpan/DBI-1.14/DBI.pm
/home/foo/zo/cvs/perl_modules/cpan/DBI-1.14/lib/Bundle/DBI.pm
/home/foo/.cpan/build/Apache-Session-1.6/Session/Store/DBI.pm
/home/foo/.cpan/build/Apache-Session-1.6/blib/lib/Apache/Session/Store/DBI.pm
anyone understand why im catching this error
You have compiled a new perl. You need to also rebuild
apache/mod_perl to match or switch to fastcgi.
Les Mikesell
les@futuresource.com