11 messages in com.mysql.lists.perlRe: Problem with DBI-1.45
FromSent OnAttachments
Minh Nguyen14 Nov 2004 17:15 
jose isaias cabrera14 Nov 2004 17:23 
Glenn Fleishman14 Nov 2004 17:35 
Minh Nguyen14 Nov 2004 17:36 
Glenn Fleishman14 Nov 2004 17:40 
jose isaias cabrera14 Nov 2004 17:58 
Peter Pentchev15 Nov 2004 00:19 
Peter Pentchev15 Nov 2004 00:41 
jose isaias cabrera15 Nov 2004 07:18 
Minh Nguyen21 Nov 2004 17:23 
Jochen Wiedmann21 Nov 2004 17:37 
Subject:Re: Problem with DBI-1.45
From:Peter Pentchev (ro@ringlet.net)
Date:11/15/2004 12:41:10 AM
List:com.mysql.lists.perl

On Sun, Nov 14, 2004 at 05:40:38PM -0800, Glenn Fleishman wrote:

I have already installed MySQL server and client 4.1. I can run the command line fine. However, one thing I don't understand is that I can not find the directory /usr/local/mysql, which should exist right?

Actually, no - it depends on the installation type. If you installed the MySQL server and client from the packages supplied at the mysql.com website, then most probably those directories should exist. If, however, your MySQL server and client installation came from your OS's vendor packages - e.g. RPM's found on RedHat install CD's, Debian .deb files, FreeBSD ports/packages or something - then the installation directory may not necessarily be /usr/local/mysql. You might have to look for a mysql_config script - check if there is a /usr/bin/mysql_config, /usr/local/bin/mysql_config, or just do a "whereis mysql_config" or, if that fails, "locate mysql_config". It will tell you best where to find your MySQL installation :)

By the way, the key to the errors you are getting in the DBD::mysql installation is mostly that - the DBD::mysql Makefile.PL cannot find the mysql_config script, which is supposed to tell it where to find the header files and the library. If you can find mysql_config on your system, then the best way to build DBD::mysql would be to add to your PATH variable the directory where mysql_config lives, so Makefile.PL can find it. If you are using a Bourne-like shell (sh, ksh, bash, zsh, ...), and if, say, you find mysql_config in /usr/mysql/bin/mysql_config, then do the following:

PATH="/usr/mysql/bin:$PATH" export PATH

For csh-like shells, that would be:

set path = ( /usr/mysql/bin $path )

After that, re-running 'perl Makefile.PL' for DBD::mysql should work just fine.

You've got to copy or make symbolic links.

mv mysql-distribution-name /usr/local/

[snip other commands]

Of course, that's assuming that 'mysql-distribution-name' refers to an official distribution obtained from the mysql.com download sites :)

G'luck, Peter