Re: Problem installing 4.006 under cygwin - "Cannot find the file 'mysql_config'!"
David Vergin <[email protected]> Tue, 08 Apr 2008 15:01:13 -0700
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <[email protected]> |
Greetings, Tom. I know your pain well...
on 4/5/2008 10:51 AM Tom Cooper said the following:
> I... have Cygwin 2.573.2.2 MySQL version 5.0.51a, perl
> version 5.8.8, and DBD-mysql-4.006
> I thought I'd follow the instructions ... here:
> http://search.cpan.org/~capttofu/DBD-mysql-4.005/lib/DBD/mysql.pm
> [but get...]
> Can't exec "mysql_config": No such file or directory at Makefile.PL
> line 76.
There are two _other_ sets of installation instructions bundled with
DBD::mysql -- in the README and INSTALL files. They are more complete
than what is found in DBD/mysql.pm.
But confusingly in regard to Cygwin, those two sets of instructions
differ from each other. The INSTALL instructions will get you farther.
But still, under Cygwin's Perl 5.10 they failed (see my original post in
this thread last month). You'll probably have better luck under Perl
5.8. (See also my note in the last paragraph of this email on Cygwin
recently down-grading Perl.)
The copy of mysql_config that you report finding in
/cygdrive/c/mysql/mysql-5.0.51a/ looks like the one for your
_Windows_XP_ install of mysql. That won't help you here.
In addition to your copy of mysql for WinXP, you need to compile a
client-only version of the mysql tools _under_Cygwin_ and then use the
resulting copy of mysql_config for your install of DBD::mysql. The
process is a bit of a bother, but is well described in the INSTALL file
and worked fine for me when I did this a few years back (under Perl 5.8
or 5.6).
All of this is much more fully described in the instructions under
"Special Systems - Windows/Cygwin" in the bundled INSTALL file...
Check here:
http://search.cpan.org/~capttofu/DBD-mysql-4.006/lib/DBD/mysql/INSTALL.pod#Windows/CygWin
or if that gets broken this will get you there:
http://tinyurl.com/6dzhvb
and scroll down to "Special Systems - Windows/Cygwin"
Please let us know if DBD::mysql's INSTALL instructions work under
Cygwin Perl 5.8.8. My current setup is working and I'm hesitant to mess
with it to test things. ;-)
BTW, since I posted on this issue under Cygwin Perl 5.10 last month,
Cygwin seems to have mysteriously down-graded perl from 5.10 to 5.8.
After a recent Cygwin setup.exe update for other reasons, my previous
install of DBD::mysql now magically works again without any effort on my
part. Go figure!
HTH
David
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/[email protected]