PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: why I have to copy Sybperl.pm to lib path myself
Date: Jan 28 1998 7:13PM

Jun Zhang wrote:
> 
> Thanks, Mike, at last I have a working sybperl.
> But I still have a question.
> When I did the performance testing for new sybperl:
> 
> in my small program:
> 
> #!/usr/local/perl5.004_4/bin/perl5.00404
> use Sybperl;
> etc etc.
> 
> @INC is
> /usr/local/perl5.004_4/lib/sun4-solaris/5.00404
> /usr/local/perl5.004_4/lib
> /usr/local/perl5.004_4/lib/site_perl/sun4-solaris
> /usr/local/perl5.004_4/lib/site_perl
> 
> but Sybperl.pm is in /usr/local/perl5.004_4/ext/sybperl-2.09/Sybperl
> so, it complains, Sybperl.pm could not be found.
> 
> But after I added the statement:
> push(@INC,'/usr/local/perl5.004_4/ext/sybperl-2.09/Sybperl');
> still compained, Sybperl.pm could not be found.

YOu should use:

use lib '/usr/local/perl5.004_4/ext/sybperl-2.09/Sybperl';

The push(@INC) thing won't work because the 'use' directive
happens before the  push() has been executed.

> 
> In the end, I copied Sybperl.pm to /usr/local/perl5.004_4/lib. Program
> started to behave well.
> 
> I do not understand, If I have to copy Sybperl.pm, how about all the
> other .pm files like, Ctlib.pm etc.

Did you do a make install???

Michael
-- 
Michael Peppler       -||-  Data Migrations Inc.
mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler