mysql2 gem崩溃了CentOS 6上的Rails

时间:2014-12-18 21:48:58

标签: ruby-on-rails ruby ruby-on-rails-3 gem mysql2

我在CentOS 6系统上使用我的Rails代码中的mysql2 gem,当Rails启动时,当Rails尝试连接到MySQL数据库时,我看到这样的错误:

/home/deploy/.rvm/gems/ruby-2.1.0@api/gems/mysql2-0.3.17/lib/mysql2.rb:8:in `require': 
/home/deploy/.rvm/gems/ruby-2.1.0@api/extensions/x86_64-linux/2.1.0/mysql2-
0.3.17/mysql2/mysql2.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE - 
/home/deploy/.rvm/gems/ruby-2.1.0@api/extensions/x86_64-linux/2.1.0/mysql2-
0.3.17/mysql2/mysql2.so (LoadError)

from /home/deploy/.rvm/gems/ruby-2.1.0@api/gems/mysql2-0.3.17/lib/mysql2.rb:8:in `<top (required)>'
from /home/deploy/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.7.9/lib/bundler/runtime.rb:76:in `require'
from /home/deploy/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.7.9/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /home/deploy/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.7.9/lib/bundler/runtime.rb:72:in `each'
from /home/deploy/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.7.9/lib/bundler/runtime.rb:72:in `block in require'
from /home/deploy/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.7.9/lib/bundler/runtime.rb:61:in `each'
from /home/deploy/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.7.9/lib/bundler/runtime.rb:61:in `require'
from /home/deploy/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.7.9/lib/bundler.rb:134:in `require'
from /u/apps/api/releases/20141218200648/config/application.rb:5:in `<top (required)>'
from /u/apps/api/releases/20141218200648/config/environment.rb:1:in `require'
from /u/apps/api/releases/20141218200648/config/environment.rb:1:in `<top (required)>'
from config.ru:4:in `require'
from config.ru:4:in `block in <main>'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from config.ru:1:in `new'
from config.ru:1:in `<main>'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/gems/unicorn-4.8.2/lib/unicorn.rb:48:in `eval'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/gems/unicorn-4.8.2/lib/unicorn.rb:48:in `block in builder'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/gems/unicorn-4.8.2/bin/unicorn_rails:139:in `call'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/gems/unicorn-4.8.2/bin/unicorn_rails:139:in `block in rails_builder'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:760:in `call'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:760:in `build_app!'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:137:in `start'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/gems/unicorn-4.8.2/bin/unicorn_rails:209:in `<top (required)>'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/bin/unicorn_rails:23:in `load'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/bin/unicorn_rails:23:in `<main>'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/bin/ruby_executable_hooks:15:in `eval'
from /home/deploy/.rvm/gems/ruby-2.1.0@api/bin/ruby_executable_hooks:15:in `<main>'

以前有没有人遇到类似这个错误的东西?

0 个答案:

没有答案