Re: Building DBD-Sybase with a local DBI
"David Barnwell" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <00d101c583c1$cb2b8180$bf2e4381@wellbarnwell> |
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" <[email protected]> To: "David Barnwell" <[email protected]> Cc: <> Sent: Thursday, July 07, 2005 11:34 PM Subject: Re: Building DBD-Sybase with a local DBI On 7/7/05, David Barnwell <[email protected]> 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: PERL5LIB=/home/davidb/local/lib/5.6.1:/home/davidb/local/lib/site_perl:$PERL5LIB 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 > to CONFIG I believe that there is no need to do this if you do the PERL5LIB assignment. -- Matthew O. Persico