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 peppler dot org>
Subject: RE: Perl can't find a module on it's @INC
Date: Nov 20 2001 3:34PM

Wheelton, Gareth writes:
 > No joy, the file can be read by all
 > 
 > $ ls -l
 > /app/perl5005/lib/site_perl/5.005/sun4-solaris/auto/Sybase/Sybperl/bcp_init.
 > al
 > 
 > 	drwxr-xr-x    2 root     daemon       1536 Oct 26  1999 .
 > 	drwxr-xr-x    5 root     daemon        512 Oct 26  1999 ..
 > 	-r--r--r--    1 root     daemon        591 Oct 26  1999 bcp_init.al
 > 
 > 
 > I think my problem has more to do with it wanting to find:
 > 	auto/Sybase/CTlib/bcp_init.al
 > 
 > rather than:
 > 	auto/Sybase/Sybperl/bcp_init.al

Nope - the Sybase::Sybperl version of bcp_init() is only a wrapper,
which calls Sybase::DBlib::bcp_init(). You're trying to use a
DBlibrary function in a Client Library (CTlib) program.

Michael

 > 
 > 
 > -----Original Message-----
 > From: Scott Zetlan [mailto:scottzetlan@aol.com]
 > Sent: 20 November 2001 14:25
 > To: SybPerl Discussion List
 > Subject: RE: Perl can't find a module on it's @INC
 > 
 > 
 > Double-check the permissions on the directories and files under the various
 > elements of @INC; I've had similar problems after installing modules where
 > the permissions were set to 750 or 700, and with owner root/group bin, no
 > one can read the files.  Perl just reports that it can't find them, not that
 > it isn't allowed to read them.
 > 
 > Scott
 > 
 > > -----Original Message-----
 > > From: owner-SYBPERL-L@list.cren.net
 > > [mailto:owner-SYBPERL-L@list.cren.net]On Behalf Of Wheelton, Gareth
 > > Sent: Tuesday, November 20, 2001 8:34 AM
 > > To: SybPerl Discussion List
 > > Subject: Perl can't find a module on it's @INC
 > >
 > >
 > > With the following pragmas in my code Perl can't seem to find an autoload
 > > module
 > >
 > >     use lib "/app/perl5005/lib/site_perl/5.005/sun4-solaris";
 > >
 > >     use Sybase::BCP;
 > >     use Sybase::CTlib;
 > >
 > >
 > > for some strange reason it expects to find:
 > >     auto/Sybase/CTlib/bcp_init.al
 > >
 > > rather than:
 > >     auto/Sybase/Sybperl/bcp_init.al
 > >
 > > the following compile error was given:
 > >
 > >     Can't locate auto/Sybase/CTlib/bcp_init.al
 > >     in @INC (@INC contains:
 > > /app/perl5005/lib/site_perl/5.005/sun4-solaris
 > >
 > > /app/perl5005/lib/site_perl/5.005/sun4-solaris
 > >                     /app/perl5005/lib/5.005/sun4-solaris
 > >                     /app/perl5005/lib/5.005
 > >
 > > /app/perl5005/lib/site_perl/5.005/sun4-solaris
 > >                     /app/perl5005/lib/site_perl/5.005
 > >                     . )
 > >     at ./ftsspecialneeds.pl line 76
 > >
 > > the value of @INC would imply the file could be found in the following
 > > location
 > >
 > >
 > > /app/perl5005/lib/site_perl/5.005/sun4-solaris/auto/Sybase/Sybperl
 > > /bcp_init.
 > > al
 > >
 > >
 > > but it doesn't, can anyone help
 > >
 > >
 > > thanks gareth
 > >
 > 
 > 
 > This message is for the named person's use only. It may contain sensitive and private proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. Unless otherwise stated, any pricing information g!
iven !
 > !
 > in this message is indicative on
 > ly, is subject to change and does not constitute an offer to deal at any price quoted. Any reference to the terms of executed transactions should be treated as  preliminary only and subject to our formal written confirmation.
 > 

-- 
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
mpeppler@peppler.org - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com