Skip to content

Instantly share code, notes, and snippets.

@coneybeare
Created February 25, 2013 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coneybeare/5032146 to your computer and use it in GitHub Desktop.
Save coneybeare/5032146 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment