I have been having all sorts of problems using MySQL on my Mac installed using MAMP with Rails. I believe I have sorted it out giving this command:
sudo gem install mysql -- --with-mysql-config=/Applications/MAMP/Library/bin/mysql_config
Mild Speculation on Wild Discussions
I have been having all sorts of problems using MySQL on my Mac installed using MAMP with Rails. I believe I have sorted it out giving this command:
sudo gem install mysql -- --with-mysql-config=/Applications/MAMP/Library/bin/mysql_config
Which version of MAMP did you use this with? I have 1.7.2 and it seems to be lacking some things required for this to work.
Hi Man, I am currently away from my computer. I will let you know of my version.
Cheers,
Alpay
Hi Todd, I have 1.7 installed. What is the problem with your installation?
whatever my problem was.
yours solved it!
Thanx!
I just can’t get it to work! Here are my errors:
——————-
quasar:~ mirko$ sudo gem install mysql — –with-mysql-config=/Applications/MAMP/Library/bin/mysql_configBuilding native extensions. This could take a while…
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install mysql — –with-mysql-config=/Applications/MAMP/Library/bin/mysql_config
extconf.rb:5: warning: Insecure world writable dir /Applications/MAMP/bin/php5/bin/ in PATH, mode 040777
extconf.rb:7: warning: Insecure world writable dir /Applications/MAMP/bin/php5/bin/ in PATH, mode 040777
checking for mysql_ssl_set()… no
checking for mysql.h… no
checking for mysql/mysql.h… no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
–with-mysql-config
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.7/gem_make.out
quasar:~ mirko$
Hi Mirko,
I am not a specialist in this area. If I were you, I would re-install everything…
Cheers,
Alpay
Here’s what I had to do to get MAMP 1.7.2 working:
http://boonedocks.net/mike/archives/175-MAMP-and-the-Ruby-MySQL-Gem.html