Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Mod_Perl Problems

Quote Reply
Mod_Perl Problems
Restarting Apache after configuring for mod_perl, I get this
error related to Links:

Can't locate Apache/DBI.pm in @INC (@INC contains:...

Links runs OK without mod_perl.



Quote Reply
Re: Mod_Perl Problems In reply to
You will need to install the DBI module.

From telnet/ssh

shell> install -MCPAN -e 'install Apache::DBI'

If you don't have root access you will need to get your host to do it.

Links SQL shouldn't work without the DBI module whether you are using mod_perl or not (I think).

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: Mod_Perl Problems In reply to
> Links SQL shouldn't work without the DBI module whether you are using mod_perl or not (I think).

This is what I thought, but my setup works fine so I assume the module is loaded but the error still persists during a mod_perl/Links SQL configuration!


Quote Reply
Re: Mod_Perl Problems In reply to
Well loading in the module should fix it.

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: Mod_Perl Problems In reply to
Hi Paul, thanks for the answer.

The module installed fine but now on apache restart I get:

Preloading Links SQL scripts into mod_perl:
. . . . . . . . . . . . . . . . . . .
All scripts compiled and loaded ok!

[Sat Mar 24 16:36:00 2001] [error] /usr/local/www/conf/startup.pl did not return a true value at (eval 2) line 1.

Syntax error on line 39 of /usr/local/www/conf/httpd.conf:
/usr/local/www/conf/startup.pl did not return a true value at (eval 2) line 1.

Never seen this error before, any ideas?

Edit
---------

This fixed it:

use lib '/full/path/to/admin';
use Links::mod_perl;
1; <------<

- Eraser.
Quote Reply
Re: Mod_Perl Problems In reply to
Glad you fixed it.

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/