Gem install mysql under Ubuntu solution error

when gem install mysql error:
checking for mysql_query () in-lmysqlclient ... no
checking for main () in-lm ... yes
checking for mysql_query () in-lmysqlclient ... no
checking for main () in-lz ... yes
checking for mysql_query () in-lmysqlclient ... no
checking for main () in-lsocket ... no
checking for mysql_query () in-lmysqlclient ... no
checking for main () in-lnsl ... yes
checking for mysql_query () in-lmysqlclient ... no
*** Extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and / or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
- with-opt-dir
- without-opt-dir
- with-opt-include
- without-opt-include = $ (opt-dir) / include
- with-opt-lib
- without-opt-lib = $ (opt-dir) / lib
- with-make-prog
- without-make-prog
- srcdir =.
- curdir
- ruby = / usr/bin/ruby1.8
- with-mysql-config
- without-mysql-config
- with-mysql-dir
- without-mysql-dir
- with-mysql-include
- without-mysql-include = $ (mysql-dir) / include
- with-mysql-lib
- without-mysql-lib = $ (mysql-dir) / lib
- with-mysqlclientlib
- without-mysqlclientlib
- with-mlib
- without-mlib
- with-mysqlclientlib
- without-mysqlclientlib
- with-zlib
- without-zlib
- with-mysqlclientlib
- without-mysqlclientlib
- with-socketlib
- without-socketlib
- with-mysqlclientlib
- without-mysqlclientlib
- with-nsllib
- without-nsllib
- with-mysqlclientlib
- without-mysqlclientlib

Gem files will remain installed in / usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to / usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

Solution:
$ sudo apt-get install libmysqlclient15-dev 
  sudo gem install mysql 
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Gem install mysql under Ubuntu solution error

  • Rails2.0.2 change the default DB adpter

    In Rails2.0.2 rails demo ... ... MissingSourceFile in SayController # hello no such file to load - sqlite3 RAILS_ROOT: / home / kenb / rails-projects / demo ... ... Checked config / database.yml, adpter default is set become the sqlite3. Check the ra ...

  • 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 ...

  • 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 ...

  • Struts2 Spring Hibernate integration of easy

    1. Add Spring 2.0 in Libraries Choose the following four jar, and configure the / WEB-INF/lib under Spring2.0 AOP Libraries Spring2.0 Core Libraries Spring2.0 Persistence Core Libraries Spring2.0 WEb Libraries At the same time, the applicationContext ...

  • EJB ant script to deploy template works

    <? xml version = "1.0" encoding = "UTF-8"?> <! - Name Project name basedir build.xml file directory -> <project name="HelloWorld" basedir="."> <! - Property variables -> <! - The sour ...

  • Struts2 Spring Hibernate's easy to integrate

    1. Add Spring 2.0 in Libraries Choose the following four jar, and configure the / WEB-INF/lib under Spring2.0 AOP Libraries Spring2.0 Core Libraries Spring2.0 Persistence Core Libraries Spring2.0 WEb Libraries At the same time, the applicationContext ...

  • 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 ...

Leave a Reply

Recent
Recent Entries
Tag Cloud
Random Entries