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
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of mac install issues encountered mysq

  • RSpec troubleshooting

    1.uninitialized constant Dependencies Conditions: In windows under way to install the RSpec gem and rspec-rails. However, in ruby script / spec_server to do the test under the spec your_spec.rb-X will appear uninitialized constant Dependencies (NameE ...

  • Alternative to Java with Ruby to do unit testing interface rest!

    Ruby is long overdue to replace java more flexible and make some necessary changes in a matter of, if not deep-rooted culture of the company's java, I think. . . . . . The following are my Writing for the Rest of the interface used to make the test su

  • Answer: After 2.2 upgrade mysql question-driven

    windows installed after the mysql gem error, error is approximately: ArgumentError (NULL pointer given): (eval): 3: in `each_hash ' (eval): 3: in `all_hashes' This is feeling under the windows of the question if the mysql gem version libmysql ...

  • ROR resources

    Ruby Web site resources: ruby official website: http://www.ruby-lang.org ruby doc official website: http://www.ruby-doc.org rubyonrails official website: http://www.rubyonrails.org programming ruby online edition (Ruby studying the "Bible") ...

  • JPA data source data source to configure Tomcat conversion essay questions

    To the JPA in the use of the development process, sometimes used in the data source conversion problem, The following methods are only my personal experience of a situation and its solutions, if different, please everyone posted for your reference en ...

  • Hibernate II Study Notes

    11. Many-to-many Of many that can be converted to two one-to-many many-to-many data only from one end of the maintenance, if at both ends of maintenance, will be reported to the conflict between form the primary key of the error message. Many-to-many quer

  • Workspace run under different Eclipse

    Now do live more and more often required to use eclipse in java and ruby & rails project conducted between the tangential shear from the past, because in the rails project used a coloring Aptana preferences, the results open the java project sour ...

  • Oracle instant clent for ruby / rails on cygwin

    Environment: XP: oracle full client, ruby, rails, gem cygwin: ruby rails, gem (the version with the XP version) Needs: for cygwin is installed under the rails platform support oci Steps: <1> download oracle instant client (10.2.0.3 Instant Clie ...

  • Struts2 + hibernate + spring problem user log in

    dao layer services layer action jsp <tr> <td align="center"> <b> user name: </ b> </ td> <td> <s: textfield name = "czyNumber" cssClass = "textstyle" theme = "simple" size = &q

Leave a Reply

Recent
Recent Entries
Tag Cloud
Random Entries