|
|
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
|