Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "David Barnwell" <david dot barnwell at well dot ox dot ac dot uk>
Subject: Re: Building DBD-Sybase with a local DBI
Date: Jul 8 2005 1:34PM

Yes, adding the local directory to @INC fixed the problem. I used export 
PERL5LIB as you suggested.

I can also confirm that the DBI_INCLUDE line in CONFIG is now unnecessary.

Many thanks!
David Barnwell

----- Original Message ----- 
From: "Matthew Persico" 
To: "David Barnwell" 
Cc: <>
Sent: Thursday, July 07, 2005 11:34 PM
Subject: Re: Building DBD-Sybase with a local DBI

On 7/7/05, David Barnwell  wrote:
> I have been trying to build DBD-Sybase-1.05_02 with DBI-1.48. I need to do
> this in a local directory /home/davidb/local for testing purposes.
> Unfortunately, I have found that the build of DBD-Sybase picks up the
> standard DBI-1.32 from /usr/lib, not my local version.

You have not added your local directory to the @INC list in perl. To
prove me right, execute the command

 perl -V

and at the bottom of the output you will NOT see  /home/davidb/local
in the list of dirs.

There are a few ways to add your directory. I prefer the following:

export PERL5LIB

Do that up front before you run anything. Put it in your profile for
now but do not forget to remove it when done testing.

Then do a perl -V and see the difference.

> Here are the details. I built DBD-Sybase using:
> perl Makefile.PL PREFIX=/home/davidb/local verbose
> and I have added:
> DBI_INCLUDE=/home/davidb/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi

I believe that there is no need to do this if you do the PERL5LIB 
Matthew O. Persico