rubyjs / therubyracer

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

Problem with install therubyracer #295

Closed 4itosik closed 9 years ago

4itosik commented 10 years ago

Hello, I need help with install therubyracer, I see error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/home/saifontech/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb 

checking for main() in -lpthread... yes checking for v8.h... yes creating Makefile

make "DESTDIR=" clean

make "DESTDIR=" compiling exception.cc compiling array.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’ heap.cc:25:3: warning: control reaches end of non-void function [-Wreturn-type] make: *\ [heap.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/saifontech/.rvm/gems/ruby-2.1.1/gems/therubyracer-0.12.1 for inspection. Results logged to /home/saifontech/.rvm/gems/ruby-2.1.1/extensions/x86-linux/2.1.0/therubyracer-0.12.1/gem_make.out An error occurred while installing therubyracer (0.12.1), and Bundler cannot continue. Make sure that gem install therubyracer -v '0.12.1' succeeds before bundling.

What do with this error? Help me)

cowboyd commented 10 years ago

Please make sure that you don't have a system v8 installed in /usr/lib or /usr/local/lib