On Nov 22, 2004, at 1:13 PM, Tom McDonough wrote:
I've read the INSTALL.html but I'm a stranger to making files. I thought I could "tell it where to find it" by following the instructions from your post of 26 Feb 2004 but it still didn't find mysql_config. A few more hints would be appreciated.
Sorry, I misremembered the process. I thought you could tell Makefile.PL where to find mysql_config, but you can't. You need to run mysql_config yourself, and pass the options it lists to Makefile.PL. :-(
The post you're referring to is correct:
So, you might try running 'mysql_config --libs' and 'mysql_config --cflags' yourself, and passing the options it shows you to Makefile.PL. On my system the result is something like this:
perl Makefile.PL \ --testdb=test \ --testuser=XXXX \ --testpassword=XXXX \ --cflags='-I/usr/local/mysql/include -O3 -fno-omit-frame-pointer' \ --libs='-L/usr/local/mysql/lib -lmysqlclient -lz -lm'
So, like I said, run "mysql_config --cflags":
root# /usr/local/mysql-standard-4.0.21-apple-darwin7.5.0-powerpc/bin/ mysql_config --cflags
And take note of what it prints out:
-I/usr/local/mysql-standard-4.0.21-apple-darwin7.5.0-powerpc/include -fno-omit-frame-pointer
Then use that in the --cflags option you pass to "perl Makefile.PL". Repeat to get the "--libs" option.
sherm--