m. allan noah
Mon, 25 Jan 2010 03:45:53 -0800
you must install at least some sort of mysql client libraries and development headers on the system.
allan On Sun, Jan 24, 2010 at 1:54 PM, ivowel <ivo...@gmail.com> wrote: > > I am running the standard OSX perl distribution, which is 5.10.0 (no > kidding). I believes it comes with DBI installed, but I reinstalled > it from CPAN anyway. then I wanted to proceed to install the mysql > module for DBI. there was already a posting a while back that this > generates a lot of compiler warnings. I got the same warnings when I > did the desktop install. > > worse was yet to come: I wanted to install this module on my notebook > computer, on which mysql has not been installed. (I want to write a > perl program pn my notebook to connect over the network to the > desktop, which runs mysql.) > > CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.013.tar.gz > > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 82. > > Cannot find the file 'mysql_config'! Your execution PATH doesn't seem > not contain the path to mysql_config. Resorting to guessed values! > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 464. > Can't find mysql_config. Use --mysql_config option to specify where > mysql_config is located > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 464. > Can't find mysql_config. Use --mysql_config option to specify where > mysql_config is located > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 464. > Can't find mysql_config. Use --mysql_config option to specify where > mysql_config is located > > > PLEASE NOTE: > > For 'make test' to run properly, you must ensure that the > database user 'ivo' can connect to your MySQL server > and has the proper privileges that these tests require such > as 'drop table', 'create table', 'drop procedure', 'create procedure' > as well as others. > > mysql> grant all privileges on test.* to 'ivo'@'localhost' identified > by 's3kr1t'; > > You can also optionally set the user to run 'make test' with: > > perl Makefile.pl --testuser=username > > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 464. > Can't find mysql_config. Use --mysql_config option to specify where > mysql_config is located > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 464. > Can't find mysql_config. Use --mysql_config option to specify where > mysql_config is located > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 464. > Can't find mysql_config. Use --mysql_config option to specify where > mysql_config is located > Failed to determine directory of mysql.h. Use > > perl Makefile.PL --cflags=-I<dir> > > to set this directory. For details see the INSTALL.html file, > section "C Compiler flags" or type > > perl Makefile.PL --help > > > how does one get remote mysql access into perl? > > /iaw > > -- "The truth is an offense, but not a sin"