Skip to content

Instantly share code, notes, and snippets.

@coneybeare
Created February 25, 2013 18:39
Show Gist options
  • Select an option

  • Save coneybeare/5032146 to your computer and use it in GitHub Desktop.

Select an option

Save coneybeare/5032146 to your computer and use it in GitHub Desktop.

Revisions

  1. coneybeare created this gist Feb 25, 2013.
    20 changes: 20 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    root@ip-10-191-191-214:~# /usr/bin/gem install mysql -q --no-rdoc --no-ri -v "2.7" -- --build-flags --with-mysql-config
    Building native extensions. This could take a while...
    ERROR: Error installing mysql:
    ERROR: Failed to build gem native extension.

    /root/.rbenv/versions/1.9.3-p385/bin/ruby extconf.rb --build-flags --with-mysql-config
    checking for mysql_ssl_set()... yes
    checking for mysql.h... yes
    extconf.rb:35: Use RbConfig instead of obsolete and deprecated Config.
    creating Makefile

    make
    compiling mysql.c
    mysql.c:6:21: fatal error: version.h: No such file or directory
    compilation terminated.
    make: *** [mysql.o] Error 1


    Gem files will remain installed in /root/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/mysql-2.7 for inspection.
    Results logged to /root/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/mysql-2.7/./gem_make.out