What Chetan suggested is exactly what I do every time I set up my development environment on my Macs.
1) Install MacPorts. 2) Install mysql (sudo port install mysql5 +server) 3) Install the mysql gem (sudo gem install mysql)
Did that work for you?
-Kevin Elliott "WeLikeFood Beta":http://www.welikefood.com Discover great restaurants. Discover great food enthusiasts with your tastes.
I think you need to install mysql-devel package to succesffuly build and install mysql gem.
Either you can use macports to install mysql-devel - sudo port install mysql-devel OR you can follow the blog post by Chris Bailey "Installing Ruby Mysql Gem with Macports":http://codeintensity.blogspot.com/2007/09/installing-ruby-mysql-gem-with-macports.html
- Chetan Mittal.
If it does, where would I find them OR give me a name of a header and I will search for them.
I am deploying on Mac OS X server 10.5.1 and am unable to install the mysql gem. this is my install; JoyfulHost:/ root# gem install rails --include-dependencies mysql Successfully installed rails-2.0.2- Select which gem to install for your platform (universal-darwin9.0) 1. mysql 2.7.3 (mswin32) 2. mysql 2.7.1 (mswin32) 3. mysql 2.7 (ruby) 4. mysql 2.6 (ruby) 5. Skip this gem 6. Cancel installation
3 Building native extensions. This could take a while... ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb install rails --include-dependencies mysql can't find header files for ruby.
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.
Mysql is installed(standard as shipped) and running. How do I rectify this?