# mySQL Ruby Gem and MAMP mySQL

**URL:** <https://www.ruby-forum.com/t/mysql-ruby-gem-and-mamp-mysql/127931>\
**Category:** Ruby\
**Created:** [February 2, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/mysql-ruby-gem-and-mamp-mysql/127931 "2008-02-02T20:00:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://www.ruby-forum.com/u/mark)\
**Post date:** [February 2, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/mysql-ruby-gem-and-mamp-mysql/127931/1 "2008-02-02T20:00:06Z")

</div>

I’m not having much luck installing the mysql Ruby gem to use the mySQL  
in MAMP, anyone tried this?

Using MAMP v1.7.1.  
Ruby Gems v0.9.5

arbutus:mysql walkinthere$ sudo gem install mysql –  
–with-mysql-config=/Applications/MAMP/Library/bin/mysql\_config  
Password:  
Building 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  
checking for mysql\_ssl\_set()… no  
checking for mysql.h… no  
checking for mysql/mysql.h… no

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

---

<div class="post-metadata">

**Author:** ![mark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://www.ruby-forum.com/u/mark)\
**Post date:** [February 2, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/mysql-ruby-gem-and-mamp-mysql/127931/2 "2008-02-02T20:14:11Z")

</div>

i haven’t done this–but perhaps this might help:

[http://bluebones.net/2007/12/mysql-driver-for-ruby-with-mamp-on-os-x/](http://bluebones.net/2007/12/mysql-driver-for-ruby-with-mamp-on-os-x/)

(since you’re running osx)

HTH,

louis

---

<div class="post-metadata">

**Author:** ![mark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://www.ruby-forum.com/u/mark)\
**Post date:** [February 2, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/mysql-ruby-gem-and-mamp-mysql/127931/3 "2008-02-02T20:20:27Z")

</div>

thanks Louis,

Does the mySQL Ruby Gem then point to mySQL in MAMP?

Or to the external mySQL that comes with OSX?

---

<div class="post-metadata">

**Author:** ![mark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://www.ruby-forum.com/u/mark)\
**Post date:** [February 3, 2008, 5:20am UTC](https://www.ruby-forum.com/t/mysql-ruby-gem-and-mamp-mysql/127931/4 "2008-02-03T05:20:23Z")

</div>

my guess–and it’s _only_ a guess–given the instructions on that  
page, is that he compiled his own mysql (looking at his dir) and that  
it’ll point to whichever one you want it to. but i want to repeat:  
i have no experience with mamp or what you’re trying to  
do. i was just offering my thoughts for what they might be  
worth.

good luck.  
🙂

louis
