Я не знаю, как установить mysql2.Почему я не могу установить mysql2 на Ruby On Rails?
Я использую:
- Ruby On Rails 3.2.14
- рубин 2.0.0
- Mac OS X 10.9 ("Маверикс")
Installing mysql2 (0.3.13)
An error occurred while installing mysql2 (0.3.13), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.13'` succeeds before bundling.
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
*** 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.
Gem files will remain installed in /Users/kimingi/.bundler/tmp/1983/gems/mysql2-0.3.13 for inspection.
Results logged to /Users/kimingi/.bundler/tmp/1983/gems/mysql2-0.3.13/ext/mysql2/gem_make.out
An error occurred while installing mysql2 (0.3.13), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.13'` succeeds before bundling.
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
Сначала вы устанавливаете libmysqlclient-dev? – Bigxiang
Одна из проблем, связанных с проживанием на краю версий ОС, заключается в том, что вы наследуете проблемы переноса существующего кода на работу с неизвестной/новой базой кода. Инсталляторы проверяют известные версии и часто рвут с неизвестными. –
Вы видели это http://stackoverflow.com/questions/5409761/installing-mysql2-gem-for-ruby-on-rails-with-mac-osx-10-6 –