Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

BDD:Sybase under Apache reports an error

4 views
Skip to first unread message

Dmitri Gorbatchev

unread,
Sep 19, 2000, 3:00:00 AM9/19/00
to
Hi!
I need to send some data from html form using perl-script to Sybase.
Certainly, I use DBD-Sybase module for this. My script if working fine from
command line, but when I try to use this script in html form I have next
error message from apache:
"install_driver(Sybase) failed: Can't load
'/usr/local/ActivePerl-5.6/lib/site_perl/5.6.0/sun4-solaris-thread-multi/aut
o/DBD/Sybase/Sybase.so' for module DBD::Sybase: ld.so.1:
/usr/local/ActivePerl-5.6/bin/perl: fatal: libct.so: open failed: No such
file or directory at
/usr/local/ActivePerl-5.6/lib/5.6.0/sun4-solaris-thread-multi/DynaLoader.pm
line 200.
at (eval 4) line 3
Compilation failed in require at (eval 4) line 3."
What's wrong in my system?
I'm working undur Solaris 7 on Sparc, Apache 1.3.12. $SYBASE is
/InterShop4/sybase
TYIA
Dmitri

Dmitri Gorbatchev

unread,
Sep 19, 2000, 3:00:00 AM9/19/00
to
SYBASE environment variable is set in perl-script by this:
%ENV = (%ENV, SYBASE, '/InterShop/sybase');
TY

Michael Peppler

unread,
Sep 19, 2000, 3:00:00 AM9/19/00
to
Dmitri Gorbatchev wrote:
>
> Hi!
> I need to send some data from html form using perl-script to Sybase.
> Certainly, I use DBD-Sybase module for this. My script if working fine from
> command line, but when I try to use this script in html form I have next
> error message from apache:
> "install_driver(Sybase) failed: Can't load
> '/usr/local/ActivePerl-5.6/lib/site_perl/5.6.0/sun4-solaris-thread-multi/aut
> o/DBD/Sybase/Sybase.so' for module DBD::Sybase: ld.so.1:
> /usr/local/ActivePerl-5.6/bin/perl: fatal: libct.so: open failed: No such
> file or directory at

You need to set LD_LIBRARY_PATH env variable to /InterShop4/Sybase/lib.

This needs to be done in the httpd.conf file, like so:

SetEnv LD_LIBRARY_PATH /InterShop4/Sybase/lib

Michael
--
Michael Peppler -||- Data Migrations Inc.
mpep...@peppler.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: ase-lin...@isug.com

Michael Peppler

unread,
Sep 19, 2000, 3:00:00 AM9/19/00
to
Dmitri Gorbatchev wrote:
>
> SYBASE environment variable is set in perl-script by this:
> %ENV = (%ENV, SYBASE, '/InterShop/sybase');

COnvoluted syntax. Use:

$ENV{SYBASE} = '/InterShop/Sybase';

instead.

Dmitri Gorbatchev

unread,
Sep 20, 2000, 3:00:00 AM9/20/00
to
Hi, Michael!

> You need to set LD_LIBRARY_PATH env variable to /InterShop4/Sybase/lib.
>
> This needs to be done in the httpd.conf file, like so:
>
> SetEnv LD_LIBRARY_PATH /InterShop4/Sybase/lib
>
> Michael
> --
I've folowed to your advice but it did not save me from this error.
I use 'SetEnv LD_LIBRARY_PATH /InterShop4/Sybase/lib' directive in
httpd.conf and '$ENV{SYBASE} = '/InterShop/Sybase';' in perl script.
What have I to do more? May be point some libpath's to perl directly?
--
Best regards,
Dmitri Gorbatchev
dim...@rusgal.ru

Michael Peppler

unread,
Sep 20, 2000, 3:00:00 AM9/20/00
to

Check to see what environment variables are set when you run the script
from the command line.

Then make sure that you duplicate this either in the script or in the
httpd.conf file. Note that LD_LIBRARY_PATH can NOT be set in the script
itself - it needs to be set in the parent process (httpd in this case).

0 new messages