Questions tagged [libv8]

A gem for distributing the v8 runtime libraries and headers in both source and binary form.

A gem for distributing the v8 runtime libraries and headers in both source and binary form.

The goal of libv8 is two fold: provide a binary gem containing the a pre-compiled libv8.a for as many platforms as possible while at the same time supporting for an automated compilation for all others.

Not only does this drastically reduce gem install times, but it also reduces dependencies on the local machine receiving the gem. It also opens the door for supporting Windows.

87 questions
228
votes
20 answers

Installing libv8 gem on OS X 10.9+

I'm trying to install libv8 3.16.14.3 but getting an error on OSX Mavericks using latest stable rvm and ruby-1.9.3-p125. This is the output of running the command 'gem install libv8': ~/src(branch:master) » gem install libv8 Fetching:…
tanookiben
  • 22,575
  • 8
  • 27
  • 25
196
votes
18 answers

Error installing libv8: ERROR: Failed to build gem native extension

I made a rails project with, rails new test_bootstrap. succeeded. moved to the project dir and added the gems gem "therubyracer" gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS gem…
Canna
  • 3,614
  • 5
  • 28
  • 33
85
votes
15 answers

therubyracer - Gem::Ext::BuildError: ERROR: Failed to build gem native extension

I'm trying to install the following gem versions on Mavericks libv8 (3.16.14.3) therubyracer (0.12.1) Obviously therubyracer gems depends on libv8. 1) Installing libv8 What is libv8? My bit of research seems to indicaite it's some sort of…
user2490003
  • 10,706
  • 17
  • 79
  • 155
45
votes
8 answers

gem install libv8 --version '3.11.8.17' on ruby (windows)

The problem is as following. Error installing libv8: ERROR: Failed to build gem native extension. D:/Ruby193/bin/ruby.exe extconf.rb creating Makefile The system can not find the specified path …
user2318042
  • 451
  • 1
  • 4
  • 4
32
votes
5 answers

An error occurred while installing libv8 (3.16.14.7), and Bundler cannot continue

I'm getting a cyclic error here: Bundler::GemspecError: Could not read gem at /path/to/website/vendor/cache/ruby/2.1.0/cache/libv8-3.16.14.7-x86_64-darwin-14.gem. It may be corrupted. An error occurred while installing libv8 (3.16.14.7), and Bundler…
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
24
votes
7 answers

Fix therubyracer/libv8 (0.12.1) installation on Mavericks

OK, I’m at the end of my tether with this. There are a few similar questions but they all refer to therubyracer 0.10, and they mostly conclude that the problem can be fixed by upgrading to 0.12. I’m having similar problems, but when I use…
Chris S
  • 719
  • 1
  • 6
  • 13
16
votes
2 answers

What is therubyracer or libv8 for in a rails application?

I was working on a project and was having issues with therubyracer and libv8 often, so i decided to remove them. It seemed to be the only thing that used them as a dependency was less-rails which I wanted to remove anyways. My main question is what…
Weston Ganger
  • 6,324
  • 4
  • 41
  • 39
13
votes
2 answers

Unable To Install 'therubyracer v0.12.3' gem in M1 Macbook Pro

I am using M1 Macbook Pro and wants to install therubyracer and libv8 for a rails webapp. But I am unable to do so because of the errors described below. There are several solutions available on the internet but none of them is working for…
12
votes
3 answers

How to install V8js on PHP5.5?

I want to install the v8js extension for PHP5.5 on Ubuntu 12.04 but can't make it working. When I try to install the v8js extension version 0.2.0 (latest) with PECL, I have this message: configure: error: libv8 must be version 3.24.6 or greater …
10
votes
3 answers

Lazy symbol binding failed Ruby Racer

I'm running El Capitan (Fresh install) and a Rails 4.2.1 app with Ruby 2.2.2. I've ran into issues initially with installing libv8 and had to force an install with brew install v8 and gem install libv8 (version) with systemv8 as a flag. Bundle…
nulltek
  • 3,247
  • 9
  • 44
  • 94
10
votes
3 answers

libv8-3.16.14.3 Fails to install - Rails 4.1.8

So I have this issue where libv8-3.16.14.3 fails to install, even though it deceptively tells you it did install. So the first sign of issue was when it did: An error occurred while installing libv8 (3.16.14.3), and Bundler cannot continue. Make…
SeekingTruth
  • 1,044
  • 2
  • 15
  • 23
9
votes
2 answers

Ruby on Rails in Docker on Apple Silicon (M1)

I'm trying to get Ruby on Rails running in a Docker on an Apple Silicon (M1) Macbook. The problem I'm having is the Javascript runtime. The gem mini_racer depends on libv8 which does not install properly. People having similar issues seems to either…
Fredrik
  • 301
  • 3
  • 10
7
votes
3 answers

Error when installing libv8 3.11.8.3

I'm running fresh install of OSX 10.9 Mavericks and XCode 5.0.1. When i'm trying to run bundle install in my project it fails on installing libv8 gem. Here's the output: ERROR: Error installing libv8: ERROR: Failed to build gem native…
general
  • 71
  • 1
  • 4
6
votes
2 answers

How do I force Bundler to get the right libv8-node for mini-racer?

I'm working on a Rails 5->6 update. When I run bundle update, we reach mini_racer, which requires libv8-node. When Bundler tries to get libv8-node v. 15.14.0.1, it tries to install
pjmorse
  • 9,204
  • 9
  • 54
  • 124
6
votes
0 answers

Installation of libv8 gem on OSX 10.15.4 Catalina fails

I'd like to install "zammad" (see https://docs.zammad.org/en/latest/install/source.html) on my iMac but fail. Error message as follows: An error occurred while installing libv8 (6.7.288.46.1), and Bundler cannot continue. Make sure that `gem…
hollomey
  • 111
  • 1
  • 1
  • 2
1
2 3 4 5 6