Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssl 从Ruby 1.9.3升级到2.0.0时出现Mysql2错误_Ssl_Typeerror_Mysql2_Ruby 2.0 - Fatal编程技术网

Ssl 从Ruby 1.9.3升级到2.0.0时出现Mysql2错误

Ssl 从Ruby 1.9.3升级到2.0.0时出现Mysql2错误,ssl,typeerror,mysql2,ruby-2.0,Ssl,Typeerror,Mysql2,Ruby 2.0,我有一个我们在工作中使用的命令行应用程序,它使用ActiveRecord(不是所有的rails)。我们希望升级到Ruby 2.0.0,以提高加载时性能 为此,我 下载/安装ActiveRecord 3.2.13 下载Ruby 2.0.0并适当更改she bang on脚本 当我运行它时,我得到 gems/mysql2-0.3.11/lib/mysql2/client.rb:34:in `ssl_set': no implicit conversion of nil into String (Ty

我有一个我们在工作中使用的命令行应用程序,它使用ActiveRecord(不是所有的rails)。我们希望升级到Ruby 2.0.0,以提高加载时性能

为此,我

  • 下载/安装ActiveRecord 3.2.13
  • 下载Ruby 2.0.0并适当更改she bang on脚本
  • 当我运行它时,我得到

    gems/mysql2-0.3.11/lib/mysql2/client.rb:34:in `ssl_set': no implicit conversion of nil into String (TypeError)
    
    我是否错过了必要的一步


    谢谢。

    我不得不使用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一起安装的