You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Mike Cohen <ar...@db.geocrawler.com> on 2000/02/25 23:38:38 UTC
Apache::ASP - can't load CTlib
This message was sent from Geocrawler.com by "Mike Cohen" <mc...@reg.net>
Be sure to reply to that address.
I've been having difficulty trying to get
Sybase::CTlib to work properly in an ASP script.
Here is what I'm working with:
Red Hat Linux 6.0
Kernel 2.2.5-15smp
sybase-openclient 11.1.1
sybperl 2.11
Perl 5.005_03
I get the following error:
========================
[Fri Feb 25 11:16:50 2000] [error] [asp] [error]
Can't load '/usr/lib/perl5/site_perl/5.005/i386-
linux/auto/Sybase/CTlib/CTlib.so' for module
Sybase::CTlib: /usr/lib/perl5/site_perl/5.005/i386
-linux/auto/Sybase/CTlib/CTlib.so: undefined
symbol: sybaction at /usr/lib/perl5/5.00503/i386-
linux/DynaLoader.pm line 168. <--> at (eval 6)
line 40
<--> BEGIN failed--compilation aborted at (eval
6) line 40. <--
> , /usr/lib/perl5/site_perl/5.005/Apache/ASP.pm
line 818
========================
at this line:
use Sybase::CTlib;
The same code works fine in a cgi script. Any
help would be much appreciated.
Thanks.
Mike Cohen
mcohen@reg.net
Geocrawler.com - The Knowledge Archive
Re: Apache::ASP - can't load CTlib
Posted by Joshua Chamas <jo...@chamas.com>.
Mike Cohen wrote:
>
> I get the following error:
>
> ========================
> [Fri Feb 25 11:16:50 2000] [error] [asp] [error]
> Can't load '/usr/lib/perl5/site_perl/5.005/i386-
> linux/auto/Sybase/CTlib/CTlib.so' for module
> Sybase::CTlib: /usr/lib/perl5/site_perl/5.005/i386
> -linux/auto/Sybase/CTlib/CTlib.so: undefined
> symbol: sybaction at /usr/lib/perl5/5.00503/i386-
> linux/DynaLoader.pm line 168. <--> at (eval 6)
> line 40
> <--> BEGIN failed--compilation aborted at (eval
> 6) line 40. <--
> > , /usr/lib/perl5/site_perl/5.005/Apache/ASP.pm
> line 818
> ========================
>
This is a more general mod_perl issue. Make sure that your
mod_perl %ENV is the same as from the command line. For one
time %ENV inits that allow module loading, you can try
PerlSetEnv with your PerlModule loads.
For %ENV settings that must always be there, like ORACLE_HOME
for oracle, try setting $ENV{X} in the sub Script_OnStart in
your global.asa.
I've never dealt with Sybase::CTlib, so maybe someone else
might have some pointers for you in getting it going.
Try running it as a Apache::Registry script too. You should
find that once you can run it there, you should be able to run
it under Apache::ASP, as the execution environment is very similar.
-- Joshua
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks >> free web link monitoring Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
Re: Apache::ASP - can't load CTlib
Posted by Alex Farber <fa...@cpan.org>.
Mike Cohen wrote:
> I've been having difficulty trying to get
> Sybase::CTlib to work properly in an ASP script.
> Here is what I'm working with:
> -linux/auto/Sybase/CTlib/CTlib.so: undefined
Maybe setting $ENV{SYBASE} and $ENV{LD_LIBRARY_PATH} helps?
/Alex