2013-03-08 2 views
2

OS X Server 10.6에 mysql ruby ​​gem을 설치하는 데 문제가 있습니다. 어떤 도움에 감사드립니다OS X 10.6 Snow Leopard 서버에 mysql gem을 설치할 수 없습니다.

macserver:~ admin$ sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-  config=/usr/bin/mysql_config 

Building native extensions. This could take a while… 

ERROR: Error installing mysql: 
ERROR: Failed to build gem native extension. 

/Users/admin/.rvm/rubies/ruby-1.8.7-p371/bin/ruby extconf.rb --with-mysql-config=/usr/bin/mysql_config 

checking for mysql_ssl_set()… yes 
checking for rb_str_set_len()… yes 
checking for rb_thread_start_timer()… yes 
checking for mysql.h… no 
checking for mysql/mysql.h… 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=/Users/admin/.rvm/rubies/ruby-1.8.7-p371/bin/ruby 
--with-mysql-config 

Gem files will remain installed in /Users/admin/.rvm/gems/ruby-1.8.7-p371/gems/mysql-2.9.1 for inspection. 
Results logged to /Users/admin/.rvm/gems/ruby-1.8.7-p371/gems/mysql-2.9.1/ext/mysql_api/gem_make.out 

:

내가지고있어 오류입니다.

답변

1

MySQL 용 개발 헤더가 설치되어 있어야합니다. Oracle의 기본 바이너리 패키지에는이 패키지가 포함되어 있지 않습니다.

Homebrew 또는 MacPorts를 사용하는 경우 두 파일 모두 필요한 파일을 제공 할 수 있습니다.

관련 문제