반응형
mysql2 gem을 설치하려고 할 때 명백한 오류없이 실패합니다. mysql2가 설치되도록이 문제를 해결하기 위해해야 할 일을 아는 사람이 있습니까?
$ sudo gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** 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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcclib
--without-mygcclib
--with-mysqlclientlib
--without-mysqlclientlib
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql2-0.2.6 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql2-0.2.6/ext/mysql2/gem_make.out
해결 방법
컴퓨터에 64 비트 MySQL과 xcode를 설치할 때 제공되는 빌드 도구가 설치되어 있어야합니다.
참조 페이지 https://stackoverflow.com/questions/4115126
반응형
'MySql' 카테고리의 다른 글
MySQL에서 datetime 또는 timestamp 데이터 유형을 사용해야합니까? (0) | 2020.10.31 |
---|---|
MySQL URL, 호스트, 포트 및 사용자 이름은 어떻게 찾습니까? (0) | 2020.10.31 |
MySQL 추가 된 문자열 CONCAT가있는 필드의 모든 값을 SQL UPDATE가 작동하지 않습니다. (0) | 2020.10.30 |
MySQL의 서버 이름을 찾는 방법 (0) | 2020.10.30 |
MySQL 5.0 reporting "concat does not exist" (0) | 2020.10.30 |
댓글