Skip to content

Instantly share code, notes, and snippets.

@pglombardo
Last active March 23, 2017 20:29
Show Gist options
  • Save pglombardo/9838518 to your computer and use it in GitHub Desktop.
Save pglombardo/9838518 to your computer and use it in GitHub Desktop.
therubyracer and libv8 is wasting my whole afternoon...
compiling message.cc
compiling init.cc
compiling string.cc
compiling handles.cc
compiling signature.cc
compiling locker.cc
linking shared-object v8/init.so
g++: error: /var/www/gameface/shared/bundle/ruby/2.0.0/gems/libv8-3.11.8.17-x86_64-linux/vendor/v8/out/ia32.release/obj.target/tools/gyp/libv8_base.a: No such file or directory
g++: error: /var/www/gameface/shared/bundle/ruby/2.0.0/gems/libv8-3.11.8.17-x86_64-linux/vendor/v8/out/ia32.release/obj.target/tools/gyp/libv8_snapshot.a: No such file or directory
make: *** [init.so] Error 1
Gem files will remain installed in /var/www/gameface/shared/bundle/ruby/2.0.0/gems/therubyracer-0.11.4 for inspection.
Results logged to /var/www/gameface/shared/bundle/ruby/2.0.0/gems/therubyracer-0.11.4/ext/v8/gem_make.out
An error occurred while installing therubyracer (0.11.4), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.11.4'` succeeds before bundling.
@tokland
Copy link

tokland commented Mar 23, 2017

Same here (Debian Jessie). I don't know why, it's trying to use ia32 files, not x86_64. This worked for me:

$ gem install therubyracer --platform=x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment