2013-04-23 127 views
2

我有一个我们在使用ActiveRecord(不是所有的rails)的工作中使用的命令行应用程序。我们希望升级到Ruby 2.0.0以获得加载时间性能的提升。从Ruby 1.9.3升级到2.0.0时出现Mysql2错误

要做到这一点,我...

  1. 下载/安装的ActiveRecord 3.2.13
  2. 下载红宝石2.0.0,并适当地改变剧本,她爆炸。

当我运行它,我得到...

gems/mysql2-0.3.11/lib/mysql2/client.rb:34:in `ssl_set': no implicit conversion of nil into String (TypeError) 

我错过了一个必要的步骤?

谢谢。

回答

2

我不得不在我的系统上使用Ruby 2.0.0附带的RubyGems重新安装mysql2 gem。

gem uninstall mysql2 
/path/to/ruby-2.0.0-p0/bin/gem install mysql2 -- --with-mysql-config=/path/to/pkgs/mysql/5.1.46-64/bin/mysql_config 

Mysql2之前安装了旧版本的Ruby/RubyGems。

相关问题