I used this in google: osx mysql gem install option do_mysql
The second entry was this: http://groups.google.com/group/datamapper/browse_thread/thread/01f26132e8dadc4f
Which seems to have some of what you are looking for.
I am on Leopard and it just worked for me with the standard mysql
install.
Michael
Instead of doing rake install, do rake gem and then use rubygems functionality:
gem install pkg/do_mysql-0.9.0.gem -- --with-mysql-dir=...
you can manually also look if it will find your mysql headers:
cd ext
ruby extconf.rb
and play with the options, also the output form mkmf.log play a
important role :-)
For the record, if you installed mamp from sources outside macports
you need to check if mysql is actually in the path since mysql_config
(or mysql_config5) is used to determine where the libs and the headers
are located.
HTH,
--
Luis Lavena
AREA 17
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams
can you do "which mysql_config" (or is where in OSX?)
Mine is at /usr/bin/mysql_config, and there is a huge chance is named
mysql_config5 in your setup.
There is a ticket in Lighthouse about something similar:
http://wm.lighthouseapp.com/projects/4819/tickets/277-do_mysql-fails-to-compile-on-os
That was actually resolved in the #irc channel, you will require to
alter PATH so it can use the correct mysql_config utility.
>
> also i search the lmysqlclient but it doesnt exists
>
Then you need to verify if your installation of mamp includes
development headers for these packages.
I suggest you cross-post this issue to datamapper mailing list (or
better yet, jump into #datamapper on irc).
Regards,
which mysql_config
no mysql_config in /Library/Frameworks/Python.framework/Versions/Current/bin /opt/local/bin /opt/local/sbin /bin /sbin /usr/bin /usr/sbin /Applications/MAMP/htdocs/cake_1.2.0/cake/console /bin /sbin /usr/bin /usr/sbin /usr/local/bin
mybe i have to declare it in the path?
cheers
Then you are out of luck and need to find development packages for the
mamp package you installed.
We are out of luck there. Have you tried going from that custom setup
to macports? macports is developer friendly while most of the mamp out
there are plug-and-play for end-users (or ones that don't need to
compile anything).
> cheers!