|
|
sybperl-l Archive
Up Prev Next
From: "Heinz Ringlhofer" <Heinz dot Ringlhofer at ZAMG dot AC dot AT>
Subject: Re: Sybase::CTlib.pm
Date: May 7 1998 9:59AM
Try the following (put your environment variables in a begin block):
#!/usr/bin/perl.syb
BEGIN {
$ENV{SYBASE} = "/opt/sybase";
$ENV{DSQUERY}= "SQL_deepthought";
$ENV{LD_LIBRARY_PATH}= "/opt/sybase/lib";
}
I dont have an Apache-server, but we use a similar technique with Netscape.
On May 7, 11:30am, Henning Drumann wrote:
> Subject: Sybase::CTlib.pm
> Hi,
>
> I am using CTlib under Linux. Now I wanted to use it in CGI-Scripts with
> an Apache-Server, based on Linux, too.
>
> Result: Internal Server Error
>
> I have set the environment and permissions right, I think ...
>
> This is a small test-script:
>
> #!/usr/bin/perl.syb
> $ENV{SYBASE} = "/opt/sybase";
> $ENV{DSQUERY}= "SQL_deepthought";
> $ENV{LD_LIBRARY_PATH}= "/opt/sybase/lib";
>
> print "Content-type: text/html\n\n\n";
> print "test\n";
>
> use Sybase::CTlib;
>
> print "";
> print "\n";
>
> If I comment out the use-line, the Script is ok.
>
> Any ideas?
>
> --
>
> MfG
> hd
>
> -----------------------------------------------
> Henning Drumann, Diplom-Informatiker
> roka EDV und Datenkommunikationsberatung GmbH
> Elbestrasse 25, D-47800 Krefeld
>
> E-Mail: hd@roka.net
> Ruf: +49 2151-4975-35 Fax: +49 2151-4975-32
> -----------------------------------------------
>
>-- End of excerpt from Henning Drumann
|