Francois Gaudin wrote:
> error while executing /../components/loginchecknoform:
> DBI->connect failed: OpenClient message: LAYER = (5) ORIGIN = (3)
> SEVERITY
> (5) NUMBER = (6)
> Message String: ct_connect(): network packet layer: internal net library
> erro
Are you able to connect to the database via the isql utility
when using the same userid/password? Is the SYBASE variable
set to the correct path (conatining the interfaces file) in
the environment of your web server?
I have the following block in my CGI-scripts which use Sybase
(I'm not sure about mod_perl):
BEGIN
{
$ENV{PATH} = ''; # undef path for security
$ENV{LD_LIBRARY_PATH} = '/opt/local/sybase/lib'; # path to Sybase libraries
$ENV{SYBASE} = '/opt/local/sybase'; # dir with "interfaces"
$SIG{ALRM} = sub {die "$0 timed out"}; # remove when using
mod_perl?
alarm 900; # remove when using
mod_perl?
}
You may get better help when asking in the dbi-users list.
See http://www.xray.mpe.mpg.de/mailing-lists/dbi/