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: /eg/ct_sql.pl
Date: May 7 1999 11:26PM

Fugen Li writes:
 > Hi,
 > 
 > When I run ct_sql.pl I had the following error message:
 > Can't locate Sybase/CTlib.pm in @INC (@INC contains:
 > /usr/local/perl/lib/sun4-solaris/5.00404 /usr/local/perl/lib
 > /usr/local/perl/lib/site_perl/sun4-solaris /usr/local/perl/lib/site_perl
 > .) at ct_sql.pl line 7.
 > BEGIN failed--compilation aborted at ct_sql.pl line 7.
 > 
 > The reason is that I load all sybperl package in my local directory. Does
 > anyone know how to set the right path or envirnment to make the program
 > work. Thank you very much.

You need to add

use lib '....';

to your script (where .... is the directory where you've installed
sybperl).

You'll probably need two such statements, one for the perl part of the 
module and one for the C part.

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@peppler.org    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com