2011-01-11 7 views
6

Ruby를 처음 사용했습니다. DataMapper를 설치했는데 dm-mysql-adapter-1.0.2 gem을 설치하려고합니다. 하지만 설치하려고하면 아래 오류가 발생합니다. 우분투 OS를 사용하고 있습니다.dm-mysql-adapter를 설치할 때 오류가 발생했습니다.

[email protected]:~/Downloads$ gem install dm-mysql-adapter-1.0.2 -- --with-mysql-     lib=/usr/lib/mysql -- --with-mysql-conf=/usr/bin/mysql 
WARNING: Installing to ~/.gem since /home/vinoth/gems and 
/home/vinoth/gems/bin aren't both writable. 
WARNING: You don't have /home/vinoth/.gem/ruby/1.8/bin in your PATH, 
gem executables will not run. 
Building native extensions. This could take a while... 
ERROR: Error installing dm-mysql-adapter-1.0.2: 
ERROR: Failed to build gem native extension. 

/usr/bin/ruby1.8 extconf.rb --with-mysql-lib=/usr/lib/mysql -- --with-mysql-  conf=/usr/bin/mysql 
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 
    - ........ 


Gem files will remain installed in /home/vinoth/.gem/ruby/1.8/gems/do_mysql-0.10.2 for inspection. 
Results logged to /home/vinoth/.gem/ruby/1.8/gems/do_mysql-0.10.2/ext/do_mysql/gem_make.out 

내가 누락 된 상품이 있습니까?

추가 정보.

루비 버전 : 루비 1.8.7 (2010-01-10 패치 레벨 249)을 i486 - 리눅스]
보석 버전 : 당신은 MySQL의 dev에 패키지가 설치되어 있어야합니다 1.3.5

답변

11

:

sudo apt-get install libmysqlclient-dev 

트릭에게 도움이

+0

감사를 수행해야합니다 : – vinoth

관련 문제