Why can't I install mysql2 on Ruby On Rails? -
i don't know how install mysql2.
i'm using:
- ruby on rails 3.2.14
- ruby 2.0.0
- mac os x 10.9 ("mavericks")
installing mysql2 (0.3.13) error occurred while installing mysql2 (0.3.13), , bundler cannot continue. make sure `gem install mysql2 -v '0.3.13'` succeeds before bundling. gem::installer::extensionbuilderror: error: failed build gem native extension. /system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby extconf.rb *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. gem files remain installed in /users/kimingi/.bundler/tmp/1983/gems/mysql2-0.3.13 inspection. results logged /users/kimingi/.bundler/tmp/1983/gems/mysql2-0.3.13/ext/mysql2/gem_make.out error occurred while installing mysql2 (0.3.13), , bundler cannot continue. make sure `gem install mysql2 -v '0.3.13'` succeeds before bundling. error: error installing mysql2: error: failed build gem native extension.
you need install mysql locally. since you're on os x can use homebrew.
# install homebrew ruby -e "$(curl -fssl https://raw.github.com/mxcl/homebrew/go)" # install mysql through homebrew brew install mysql
Comments
Post a Comment