【发布时间】:2011-05-07 01:44:11
【问题描述】:
我正在尝试使用以下命令安装 gem dm-mysql-adapter 命令:
gem install dm-mysql-adapter -- --with-mysql-config=/usr/bin/mysql
--with-mysql-lib=/usr/lib/mysql
得到了这个结果:
构建原生扩展。这可能需要一段时间... 错误:安装 dm-mysql-adapter 时出错: 错误:无法构建 gem 原生扩展。 /usr/local/bin/ruby extconf.rb --with-mysql-config=/usr/bin/mysql --with-mysql-lib=/usr/lib/mysql *** extconf.rb 失败 *** 由于某种原因无法创建 Makefile,可能缺少 必要的库和/或头文件。查看 mkmf.log 文件了解更多信息 细节。您可能需要配置选项。 提供的配置选项: --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 --没有-make-prog --srcdir=。 --curdir --ruby=/usr/local/bin/ruby --with-mysql-config extconf.rb:43:in `': nil:NilClass 的未定义方法`split' (无方法错误) Gem 文件将继续安装在 /usr/local/lib/ruby/gems/1.9.1/gems/do_mysql-0.10.2 进行检查。 结果记录到 /usr/local/lib/ruby/gems/1.9.1/gems/do_mysql-0.10.2/ext/do_mysql/gem_make.out有没有人遇到过同样的问题?我应该怎么做才能解决这个问题? 谢谢!
【问题讨论】: