3 messages in com.mysql.lists.perlRe: make test error installing DBD::m...
FromSent OnAttachments
Hugo L. Casanova10 May 2001 13:32 
Chuck O'Donnell10 May 2001 13:56 
Hugo L. Casanova15 May 2001 11:05 
Subject:Re: make test error installing DBD::mysql
From:Chuck O'Donnell (ca@bus.net)
Date:05/10/2001 01:56:00 PM
List:com.mysql.lists.perl

On Thu, May 10, 2001 at 04:32:33PM -0400, Hugo L. Casanova wrote:

Hi,

I'm having lots of problems installing DBD::mysql on this system. Technical info: OS: FreeBSD 4.2, i686 MySQL: 10.12, dist. 3.23.26-beta (binary installed) Perl: 5.005_3 (installed by FreeBSD) DBI: 1.15 (installed through cpan)

Hugo,

Do you have an rc script in /usr/local/etc/rc.d that calls ldconfig at boot on the mysql lib directory? IF not, you need it so the loader can find your mysql libs.

Try this (as root):

# ldconfig -m /usr/local/lib/mysql

The try your build again. If it works, put an executable script like this in /usr/local/etc/rc.d:

--> cut <-- #!/bin/sh

case "$1" in start) /sbin/ldconfig -m /usr/local/lib/mysql ;; stop) ;; *) echo "" echo "Usage: `basename $0` { start | stop }" echo "" exit 64 ;; esac --> cut <--

You can also save a lot of grief by using the ports tree:

# cd /usr/ports/databases/p5-Mysql # make # make install # make clean

This will install mysql-client libs, DBI, and DBD::mysql plus take care of the startup scripts. You may want to update your ports tree if you're on a 4.2-RELEASE system.

Good luck.

Chuck