CodeWeblog.com » error error,ruby,error message » mac install issues encountered mysq

mac install issues encountered mysq

From the network installation
gem install mysql
gem install mysql - - with-mysql-dir = / usr / local / mysql

Downloaded from the site of local installation
gem install mysql-2.7.gem

Some people say use the above method, but I have tried seem to not work.

Have reported a fault
sh-3.2 # gem install mysql
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
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

Configuration -------- ---------
OS: Leopard 10.5.6
DB: mysql-5.0.77-osx10.5-x86
Gem:
sh-3.2 # gem list-l

*** LOCAL GEMS ***

actionmailer (2.3.2, 1.3.6)
actionpack (2.3.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.2, 1.15.6)
activeresource (2.3.2)
activesupport (2.3.2, 1.4.4)
acts_as_ferret (0.4.3, 0.4.1)
capistrano (2.0.0)
cgi_multipart_eof_fix (2.5.0, 2.2)
daemons (1.0.10, 1.0.9, 1.0.7)
dnssd (0.6.0)
fastthread (1.0.1, 1.0)
fcgi (0.8.7)
ferret (0.11.4)
gem_plugin (0.2.3, 0.2.2)
highline (1.5.0, 1.2.9)
hpricot (0.6)
libxml-ruby (0.3.8.4)
mongrel (1.1.4, 1.0.1)
needle (1.3.0)
net-sftp (1.1.0)
net-ssh (1.1.2)
rails (2.3.2, 1.2.6)
rake (0.8.4, 0.7.3)
RedCloth (3.0.4)
ruby-openid (2.1.4, 1.1.4)
ruby-yadis (0.3.4)
rubygems-update (1.3.1)
rubynode (0.1.3)
sqlite3-ruby (1.2.1)
termios (0.9.4)

As a result, to find the answer here
http://www.macruby.org/trac/wiki/Troubleshooting

Quote

can't find header files for ruby

If you get the can't find header files for ruby error message when trying to build an extension or a gem, it means that Ruby cannot locate its header files.

Header files are not delivered by default with Mac OS X, you need to install the Xcode Tools package after the installation. You can find it in the Optional Installs / Xcode Tools directory on the Leopard DVD.

Halo, the original is to install xcode.
Install xcode, directly or gem install mysql error.
With

Quote

gem install mysql - - with-mysql-config = / usr / local / mysql / bin / mysql_config

Ok on the
Digg Technorati StumbleUpon Mixx del.icio.us Reddit BlinkList Furl YahooMyWeb feedburner

Tags: error error (RSS), ruby (RSS), error message (RSS), rake (RSS), gems (RSS), mac os x (RSS), os x (RSS), header files (RSS), acts (RSS), openid (RSS), ferret (RSS), usr bin (RSS), yadis (RSS), system library (RSS), xcode tools (RSS), extension system (RSS)

Permalink: http://www.codeweblog.com/mac-install-issues-encountered-mysq/

Leave a reply