# Noob on Mac OS w/ MySQL Problem

**URL:** <https://www.ruby-forum.com/t/noob-on-mac-os-w-mysql-problem/184315>\
**Category:** Rails\
**Created:** [February 28, 2010, 9:15pm UTC](https://www.ruby-forum.com/t/noob-on-mac-os-w-mysql-problem/184315 "2010-02-28T21:15:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![readysethack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@readysethack](https://www.ruby-forum.com/u/readysethack)\
**Post date:** [February 28, 2010, 9:15pm UTC](https://www.ruby-forum.com/t/noob-on-mac-os-w-mysql-problem/184315/1 "2010-02-28T21:15:15Z")

</div>

Hello everyone!

I’m very much a noob (to Ruby, Rails, and even the Terminal) so bear  
with me. I got the following error message while trying to following a  
simple blog creation tutorial. Everything was going fine until I typed  
in…

rake db:create

which brought the error message:

* * *

## coconut:myblog username$ rake db:create (in /Users/username/Desktop/ruby\_on\_rails/myblog) !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. rake aborted! no such file to load – mysql

I have looked online and read that I am not the only one hitting this  
error message, however I do not understand the directions on various  
message boards and was hoping someone here could help – perhaps with  
detailed directions (assume I know very little about how to use the  
terminal, which is true)…

What I have read is that there is something wrong with the latest  
version of \_\_\_\_? which doesn’t have the right MySQL. There is some dll  
file to download and put somewhere but I think that’s not for Mac OS  
users so I’m completely lost. Any help on what to do and how to do it  
would be greatly appreciated!

Thanks!

---

<div class="post-metadata">

**Author:** ![readysethack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@readysethack](https://www.ruby-forum.com/u/readysethack)\
**Post date:** [February 28, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/noob-on-mac-os-w-mysql-problem/184315/2 "2010-02-28T22:23:28Z")

</div>

Are you able to run the MySQL monitor?

If not then…

install MySQL on your system.

On 28 February 2010 15:15, Adena D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> which brought the error message:  
> I have looked online and read that I am not the only one hitting this
> 
> .  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
Charles A. Lopez  
removed\_email\_address@domain.invalid

What’s your vision for your organization?  
What’s your biggest challenge?

Let’s talk.  
(IBM Partner)

---

<div class="post-metadata">

**Author:** ![readysethack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@readysethack](https://www.ruby-forum.com/u/readysethack)\
**Post date:** [March 1, 2010, 11:24am UTC](https://www.ruby-forum.com/t/noob-on-mac-os-w-mysql-problem/184315/3 "2010-03-01T11:24:09Z")

</div>

Dear All,

I’m having difficulites after installing my rails.  
The installation is a success, i installed several mandatory gems,

After creating 1 controller and 1 view (.rhtml), the browser gives:  
“We’re sorry, but something went wrong. We’ve been notified about this  
issue and we’ll take a look at it shortly.”  
everytime i browse to the page. But the localhost:3000 page looks ok,  
except when I clicked on “About your application’s environment” link. It  
gives the same error.

I google around and found out that i must install the database first. I  
have installed MySQL previousely, and it active as a service, and I also  
have XAMPP running. So I browse around for mysql gem, and install all of  
its dependencies.  
So far here’s what i have installed, 14 gems:  
actionmailer, actionpack, activerecord, activeresource, activesupport,  
gemcutter, hoe, json\_pure, rack, rails, rake, rake-compiler, rubyforge,  
rubygems.  
I also modified the database.yml to this  
adapter: mysql  
database: testrb\_test  
username: root  
password: root  
host: localhost

All the same setting for development, test, and production setting.  
But when i tries to install mysql.gem (gem install mysql), it always  
failed:  
"ERROR: Failed to build gem native extension.  
extconf.rb failed  
Could not create makefile, probably lack of necessary libraries and/or  
headers

Where did i go wrong?

FYI, i’m running on winxp, with mysql 5.

Thanks!

Regards,

Arga

* * *

From: Charles A. Lopez [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: removed\_email\_address@domain.invalid  
Sent: Monday, March 1, 2010 4:22:16  
Subject: Re: [Rails] Noob on Mac OS w/ MySQL Problem…

Are you able to run the MySQL monitor?

If not then…  
install MySQL on your system.

On 28 February 2010 15:15, Adena D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > ## error message, however I do not understand the directions on various Thanks!
> > 
> > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> > –  
> > You received this message because you are subscribed to the Google G. “Ruby on Rails: Talk” group.  
> > To post to this group, send email to removed\_email\_address@domain.invalid.  
> > To unsubscribe from this group, send email to removed\_email\_address@domain.invalid.  
> > For more options, visit this group at [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
Charles A. Lopez  
removed\_email\_address@domain.invalid

What’s your vision for your organization?  
What’s your biggest challenge?

Let’s talk.  
(IBM Partner)

–  
You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

```
  New Email names for you!

```

Get the Email name you’ve always wanted on the new @ymail and  
@rocketmail.  
Hurry before someone else does!  
[http://mail.promotions.yahoo.com/newdomains/aa/](http://mail.promotions.yahoo.com/newdomains/aa/)
