rails ELF文件OS ABI在服务器linux服务器上无效

时间:2015-04-28 16:52:12

标签: ruby-on-rails rake server elf abi

我的rails应用程序出现问题,尝试运行rake db:migrate on server(或者例如rails c)我得到这个堆栈跟踪:

  耙子流产了!       LoadError:/home/users/ruby/.gems/extensions/x86_64-linux/2.1.0-static/therubyracer-0.12.2/v8/init.so:ELF文件OS ABI无效 - / home / users / ruby​​ /。宝石/扩展/ x86_64的-LINUX / 2.1.0静电/ therubyracer-0.12.2 / V8 / init.so       /home/users/ruby/.gems/gems/therubyracer-0.12.2/lib/v8.rb:4:in require' /home/users/ruby/.gems/gems/therubyracer-0.12.2/lib/v8.rb:4:in'       /home/users/ruby/.gems/gems/therubyracer-0.12.2/lib/therubyracer.rb:1:in require' /home/users/ruby/.gems/gems/therubyracer-0.12.2/lib/therubyracer.rb:1:in'       /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:76:in require' /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:76:in块(2级)in require'       /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:72:in each' /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:72:in阻止在需要'       /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:61:in each' /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler/runtime.rb:61:in要求'       /home/users/ruby/.gems/gems/bundler-1.9.4/lib/bundler.rb:134:in require' /home/users/ruby/public_html/uvindex/config/application.rb:7:in'       / home / users / ruby​​ / public_html / uvindex / Rakefile:4:in`'

uname -a:

  

Linux 68798.v.tld.pl 3.10.63.core2.37#1 SMP Thu Dec 18 15:25:17 CET 2014 x86_64 GNU / Linux

1 个答案:

答案 0 :(得分:0)

在运行迁移时,您没有传递Rails环境。

rake db:migrate RAILS_ENV= <your rails env>