ruby – 安装dm-mysql-adapter时出错

我是 Ruby的新手.我安装了DataMapper,我正在尝试安装dm-MysqL-adapter-1.0.2 gem.但是当我尝试安装时,我收到以下错误.我正在使用ubuntu OS.
vinoth@vinoth-laptop:~/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

我错过了什么吗?

附加信息 .

Ruby版本:ruby 1.8.7(2010-01-10 patchlevel 249)[i486-linux]
宝石版本:1.3.5

解决方法

你需要安装MysqL dev包:
sudo apt-get install libMysqLclient-dev

应该做的伎俩

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...