Subject: | debian is moving libraries to /usr/lib/i386-linux-gnu |
Building DBD::ODBC on Debian unstable no longer works because the
library directory is now /usr/lib/i386-linux-gnu rather than /usr/lib,
and the Makefile.PL cannot find the unixODBC libraries and bails out.
I made this change to the Makefile.PL to get it to compile:
Index: Makefile.PL
===================================================================
--- Makefile.PL (revision 15067)
+++ Makefile.PL (working copy)
@@ -1081,13 +1081,13 @@
my @dirs;
# start with specified dir if there was one
- push @dirs, "$home/lib" if defined($opt_o) || defined($ENV
{ODBCHOME});
+ push @dirs, "$home/lib/i386-linux-gnu", "$home/lib" if defined
($opt_o) || defined($ENV{ODBCHOME});
# look in perl's libspath as it is more likely to be compatible
# (e.g., a lib64 dir)
push @dirs, split(' ', $Config{libspath});
# add found odbc home if not added already
- push @dirs, "$home/lib" if !defined($opt_o) && !defined($ENV
{ODBCHOME});
+ push @dirs, "$home/lib/i386-linux-gnu", "$home/lib" if !defined
($opt_o) && !defined($ENV{ODBCHOME});
for my $d(@dirs) {
my @found;