I had a similar problem with my old old Ubuntu 10.04 (x64)
After I updated the Gemfile project, these gems
gem 'libv8', '~> 3.11.8' gem "therubyracer", '>= 0.11.0beta1', :require => 'v8'
But when I ran 'bundle install', I got an error
Installing therubyracer (0.11.0beta1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /home/sseletskyy/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for main() in -lpthread... yes creating Makefile make compiling array.cc compiling script.cc compiling object.cc compiling constants.cc compiling signature.cc compiling value.cc compiling locker.cc compiling init.cc compiling heap.cc compiling date.cc compiling message.cc compiling accessor.cc compiling context.cc compiling exception.cc compiling backref.cc compiling trycatch.cc compiling gc.cc compiling handles.cc compiling stack.cc compiling template.cc compiling function.cc compiling primitive.cc compiling rr.cc compiling v8.cc compiling invocation.cc compiling string.cc compiling external.cc compiling constraints.cc linking shared-object v8/init.so /home/sseletskyy/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.2-x86_64-linux/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a: could not read symbols: No such file or directory collect2: ld returned 1 exit status make: *** [init.so] Error 1 Gem files will remain installed in /home/sseletskyy/.rvm/gems/ruby-1.9.3-p194/gems/therubyracer-0.11.0beta1 for inspection. Results logged to /home/sseletskyy/.rvm/gems/ruby-1.9.3-p194/gems/therubyracer-0.11.0beta1/ext/v8/gem_make.out An error occured while installing therubyracer (0.11.0beta1), and Bundler cannot continue. Make sure that `gem install therubyracer -v '0.11.0beta1'` succeeds before bundling.
Here is a list of steps that helped me quickly solve this block.
Uninstall all versions of gem libv8 and therubyracer
> gem remove therubyracer
> gem remove libv8
Set breaker manually
> gem install therubyracer
Extract: libv8-3.3.10.4-x86_64-linux.gem (100%) Extract: therubyracer-0.10.1.gem (100%) Create your own extensions. This may take some time ... Successfully installed libv8-3.3.10.4-x86_64-linux Successfully installed therubyracer-0.10.1 2 stones installed Installing ri documentation for libv8-3.3.10.4-x86_64-linux ... Installing ri documentation for therubyracer-0.10.1 ... Installing the RDoc documentation for libv8-3.3.10.4-x86_64-linux ... Installing the RDoc documentation for therubyracer-0.10.1 ...
Check versions of installed stones
gemstones list | grep libv
libv8 (3.3.10.4 x86_64-linux)
gemstones list | grep therubyracer
therubyracer (0.10.1)
Install these versions in the gemfile and run
bundle install
Summary. Well, I understand that in my case I did not use the latest versions, and this can be bad for security. But at least I could continue the development.
Serge Seletskyy Jul 02 2018-12-12T00: 00Z
source share