in reply to Re^2: DBD::MySQL Install Problem
in thread DBD::MySQL Install Problem

Unless you've specifically build mysql without the client libraries that would probably work.

But maybe the mysql_config program you've provided does not point to the right locations. (by the way, installing mysql should install mysql_config, that directory might not be in your path - it could be installed in /usr/sbin or /usr/local/bin for instance)

what does

mysql_config --libs
print?

Mine (on linux) gives

-L/usr/lib/mysql -lmysqlclient
Which means that libmysqlclient.so* should be installed in /usr/lib/mysql. Which is correct for my system.

Replies are listed 'Best First'.
Re^4: DBD::MySQL Install Problem
by SeekerOfPerl (Initiate) on Aug 22, 2007 at 16:58 UTC
    The pre-build does not fix the problem with the DBD:Mysql.

    However just as I was about to throw the machine out in to the rain I was able to get DBI to work. ( At least at first glance. )

    In my MySQL libs I had three instances of libmysqlclient.

    libmysqlclient.so.15.0.0
    libmysqlclient.so.15
    libmysqlclient.so

    .so.15 and .so were links to libmysqlclient.so.15.0.0 so I removed them.

    I then ran make again on DBD-mysql-4.005 and then make install. I then recreated the links I had removed.

    I then ran the test.pl which seemed to work as it gave me a good error : )

    DBI connect('database=test;host=localhost','joe',...) failed: Access denied for user 'joe'@'localhost' (using password: YES) at test.pl line 7

    I will run more tests today and then report back if there are any other problems.