mysql2 설치 방법을 모르겠습니다.Ruby On Rails에 mysql2를 설치할 수없는 이유는 무엇입니까?
내가 사용하고 있습니다 :
- 루비 레일 3.2.14
- 루비 2.0.0
- 맥 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
OS 버전의 최첨단에서 살아가는 중 하나의 문제는 기존 코드를 이식되지 않은/새로운 코드 기반에서 작동하도록 이식하는 문제를 상속받는 것입니다. 설치 관리자는 알려진 버전을 테스트하고 알 수없는 버전으로 자주 구토합니다. –
본 적이 있습니까? http://stackoverflow.com/questions/5409761/installing-mysql2-gem-for-ruby-on-rails-with-mac-osx-10-6 –