rubyjs / therubyracer

Embed the V8 Javascript Interpreter into Ruby
1.66k stars 193 forks source link

compilation error on Ubuntu 12.10 #271

Closed Supermathie closed 9 years ago

Supermathie commented 11 years ago

While upgrading a Discourse install on ubuntu 12.10, I get this:

# bundle install --without test --deployment
...elided...
Installing therubyracer (0.12.0) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /opt/bitnami/ruby/bin/ruby extconf.rb 
checking for main() in -lpthread... yes
Warning! Unable to load libv8 ~> 3.16.14.
creating Makefile

make
compiling init.cc
compiling string.cc
compiling accessor.cc
compiling gc.cc
compiling v8.cc
compiling primitive.cc
compiling rr.cc
compiling array.cc
compiling signature.cc
compiling constants.cc
compiling heap.cc
heap.cc: In static member function ‘static VALUE rr::HeapStatistics::total_physical_size(VALUE)’:
heap.cc:24:12: error: ‘class v8::HeapStatistics’ has no member named ‘total_physical_size’
make: *** [heap.o] Error 1

Gem files will remain installed in /opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/1.9.1/gems/therubyracer-0.12.0 for inspection.
Results logged to /opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/1.9.1/gems/therubyracer-0.12.0/ext/v8/gem_make.out
An error occurred while installing therubyracer (0.12.0), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.12.0'` succeeds before bundling.
Supermathie commented 11 years ago

After doing a 'bundle exec gem install therubyracer -v 0.12.0' (which worked!), blowing away vendor/gems, and rerunning the bundle install, it installed just fine.

Not sure if I cleaned up old files hanging around somewhere. [NOT SURE FRY] or did something I shouldn't have.

ignisf commented 10 years ago

This should be closed, then.

christhekeele commented 9 years ago

I'm getting this exact issue on a clean install, Ubuntu 12.10, ruby 2.2.2. uninstalling and reinstalling is doing nothing for me, for all versions 0.12.x.

Supermathie commented 9 years ago

Ubuntu 12.10 is EOL