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: Building DBD-Sybase with a local DBI
Date: Jul 7 2005 5:09PM

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.

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-multito CONFIGHowever, the output from the build includes this line:Using DBI 1.32 installed in/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBIand the Makefile contains these lines:DBI_INST_DIR=/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multiDBI_INSTARCH_DIR=/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBIIf I edit the Makefile by hand to replace these with:DBI_INST_DIR=/home/davidb/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multiDBI_INSTARCH_DIR=/home/davidb/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBIthen it picks up my local version. As you'd expect, this makes a differenceand alters Sybase.c, Sybase.o, and Sybase.xsiHow do I configure DBD-Sybase to pick up the local DBI in /home/davidb/localand not the system version? Do I have to change the Makefile manually?(System is Dell 8450 server, Red Hat Linux 9.3, kernel 2.4.20, Perl 5.8.0)Thanks for your help!David BarnwellDatabase DeveloperWellcome Trust Centre for Human GeneticsUniversity of Oxford