Perl DBD hell

Hi Imran,
When I tested your command, I got this error:

Note (probably harmless): No library found for -lmysqlclient.so.15

You should try again with -lmysqlclient instead and also make sure that -L path contains the libmysqlclient.so* files. In my case they were stored in /usr/lib64/mysql on CentOS 5 64bit:

perl Makefile.PL --libs=“-L/usr/lib64/mysql -lmysqlclient” --cflags=-I/usr/include/mysql
make
make install

Here’s my ldd:

ldd /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so
linux-vdso.so.1 => (0x00007fff10b8c000)
libmysqlclient.so.15 => /usr/lib64/mysql/libmysqlclient.so.15 (0x00002b1240e35000)

I am curious why you need to link to that particular libmysqlclient.so.15? What nuances do you have in your configuration?