Building DBD-Sybase with a local DBI
"David Barnwell" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <016301c58316$9222a3b0$bf2e4381@wellbarnwell> |
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, Sybase.so 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.2! 0, Perl 5.8.0)Thanks for your help!David BarnwellDatabase DeveloperWellcome Trust Centre for Human GeneticsUniversity of Oxford