Hi,
I'm having a problem getting mod_perl set-up with LinksSQL (I was wanting to use it with community as well but I'm starting with LinksSQL) :
I get this error :
[Fri Sep 17 01:20:52 2004] [error] Can't locate Apache/DBI.pm in @INC
(@INC contains: /usr/local/apache/perl/my_site_name/admin
/www/perl/my_site_name/admin
/usr/local/lib/perl5/5.6.1/i386-freebsd
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.00503
/usr/local/lib/site_perl .
/usr/local/apache/
/usr/local/apache/lib/perl)
at /www/perl/my_site_name/admin/Links/mod_perl.pm line 24.\
nBEGIN failed--compilation aborted at /www/perl/my_site_name/admin/Links/mod_perl.pm line 26.\
nCompilation failed in require at /usr/local/apache/conf/startup.pl line 10.\
nBEGIN failed--compilation aborted at /usr/local/apache/conf/startup.pl line 10.\
nCompilation failed in require at (eval 2) line 1.\n
Syntax error on line 985 of /usr/local/apache/conf/httpd.conf:
This my httpd.conf file at line 985 (985 is the PerlRequire line):
<IfModule mod_perl.c>
# mod_perl directives
PerlRequire /usr/local/apache/conf/startup.pl
<Location /usr/local/apache/perl/>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
This is my startup.pl file :
#!/usr/bin/perl5
$ENV{GATEWAY_INTERFACE} =~ /^CGI-Perl/ or die "GATEWAY_INTERFACE not Perl!";
use strict;
use lib
'/www/perl/my_site_name/admin';
use Links::mod_perl;
1; # return true
And so I had just installed DBI so I checked and get this :
cpan> install DBI
DBI is up to date.
(location: /usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/DBI)
cpan> exit
Can anyone figure out what is wrong here !
Significant Media
I'm having a problem getting mod_perl set-up with LinksSQL (I was wanting to use it with community as well but I'm starting with LinksSQL) :
I get this error :
[Fri Sep 17 01:20:52 2004] [error] Can't locate Apache/DBI.pm in @INC
(@INC contains: /usr/local/apache/perl/my_site_name/admin
/www/perl/my_site_name/admin
/usr/local/lib/perl5/5.6.1/i386-freebsd
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.00503
/usr/local/lib/site_perl .
/usr/local/apache/
/usr/local/apache/lib/perl)
at /www/perl/my_site_name/admin/Links/mod_perl.pm line 24.\
nBEGIN failed--compilation aborted at /www/perl/my_site_name/admin/Links/mod_perl.pm line 26.\
nCompilation failed in require at /usr/local/apache/conf/startup.pl line 10.\
nBEGIN failed--compilation aborted at /usr/local/apache/conf/startup.pl line 10.\
nCompilation failed in require at (eval 2) line 1.\n
Syntax error on line 985 of /usr/local/apache/conf/httpd.conf:
This my httpd.conf file at line 985 (985 is the PerlRequire line):
<IfModule mod_perl.c>
# mod_perl directives
PerlRequire /usr/local/apache/conf/startup.pl
<Location /usr/local/apache/perl/>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
This is my startup.pl file :
#!/usr/bin/perl5
$ENV{GATEWAY_INTERFACE} =~ /^CGI-Perl/ or die "GATEWAY_INTERFACE not Perl!";
use strict;
use lib
'/www/perl/my_site_name/admin';
use Links::mod_perl;
1; # return true
And so I had just installed DBI so I checked and get this :
cpan> install DBI
DBI is up to date.
(location: /usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/DBI)
cpan> exit
Can anyone figure out what is wrong here !
Significant Media