You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Ng, Lynne (Exchange)" <ln...@bear.com> on 2002/02/06 23:26:07 UTC

Can't locate Sybase/CTlib.pm

Hi..
I got a problem when I run a test perl script. I 'm not sure that I pointed
to the right path.
Here's my script:
#!/usr/bin/perl -I
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Sybase:/usr/local/lib/perl
5/site_perl/5.005/sun4-solaris/auto/Sybase
use Sybase::CTlib;
@INC = @lib::ORIG_INC;
print "Hello world";

It showed this error:
Can't locate Sybase/CTlib.pm in @INC

Would you please help?
Thank you very much




***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation, 
offer or agreement or any information about any transaction, customer 
account or account activity contained in this communication.
***********************************************************************


Re: Can't locate Sybase/CTlib.pm

Posted by "Rafiq Ismail (ADMIN)" <ra...@joshua.dreamthought.com>.
btw, my assumption here was that massive long line in your -I is some
how wrong.  Well it's got to be right?

Fiq


On Thu, 7 Feb 2002, Rafiq Ismail (ADMIN) wrote:

> Hi Lynne,
>
> On Wed, 6 Feb 2002, Ng, Lynne (Exchange) wrote:
> > #!/usr/bin/perl -I
> > /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Sybase:/usr/local/lib/perl
> > 5/site_perl/5.005/sun4-solaris/auto/Sybase
> > use Sybase::CTlib;
> > @INC = @lib::ORIG_INC; **
> > print "Hello world";
>
> ** Assuming that "@INC = @lib::ORIG_INC;" will add the path for Sybase to
> your @INC, you've got the order wrong.  You should:
>
> 	@INC=... and then
> 	use Sybase::CTlib;
>
> > It showed this error:
> > Can't locate Sybase/CTlib.pm in @INC
> Thus, your script was unable to find CTlib.pm.
>
>
> Fiq
>
>
>


Re: Can't locate Sybase/CTlib.pm

Posted by "Rafiq Ismail (ADMIN)" <ra...@joshua.dreamthought.com>.
Hi Lynne,

On Wed, 6 Feb 2002, Ng, Lynne (Exchange) wrote:
> #!/usr/bin/perl -I
> /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Sybase:/usr/local/lib/perl
> 5/site_perl/5.005/sun4-solaris/auto/Sybase
> use Sybase::CTlib;
> @INC = @lib::ORIG_INC; **
> print "Hello world";

** Assuming that "@INC = @lib::ORIG_INC;" will add the path for Sybase to
your @INC, you've got the order wrong.  You should:

	@INC=... and then
	use Sybase::CTlib;

> It showed this error:
> Can't locate Sybase/CTlib.pm in @INC
Thus, your script was unable to find CTlib.pm.


Fiq