0

I have problems with my rails application, when trying to run rake db:migrate on server (or rails c for example) im getting this stack trace:

rake aborted! LoadError: /home/users/ruby/.gems/extensions/x86_64-linux/2.1.0-static/therubyracer-0.12.2/v8/init.so: ELF file OS ABI invalid - /home/users/ruby/.gems/extensions/x86_64-linux/2.1.0-static/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:inblock (2 levels) 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:inblock in require' /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:inrequire' /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

Mark
  • 67
  • 7

1 Answers1

0

You are not passing Rails enviornment while running migration.

rake db:migrate RAILS_ENV= <your rails env>
Shweta
  • 1,171
  • 7
  • 11
  • done RAILS_ENV=production while ago, didnt worked :( . Thanks for support by the way :) – Mark Apr 28 '15 at 17:44