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
6
votes
2 answers

Can't install libv8 3.11.8.17 in Rails on Windows

Can't install libv8 3.11.8.17 gem. I already looked around and found out that it doesn't support Windows. Though I'm still looking for a workaround? Installing libv8 (3.11.8.17) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native…
user816278
  • 61
  • 1
  • 3
5
votes
1 answer

Github Actions failing to install Libv8 gem on ubuntu-18.04.5

We are using Github Actions for our CI setup. all of sudden our Gem installation action stopped working when it is trying to install mini_racer gem which depends on libv8 gem. but when actions try to install and build extentions for this gem it…
Asad Ali
  • 640
  • 6
  • 18
5
votes
1 answer

"libgcc_s.so.1 must be installed for pthread_cancel to work" when starting thin on Debian

I am using thin as development web server with Rails on Debian 7. Since I've updated Rails to 4.2.7.1 I cannot launch thin anymore and I'm getting this error message : Using rack adapter libgcc_s.so.1 must be installed for pthread_cancel to…
clemlatz
  • 7,543
  • 4
  • 37
  • 51
5
votes
1 answer

C++ scope and Google V8 script context

I have the following, almost working piece of code written in c++: [..] Handle jsGlobal; Handle jsUpdateFunc; void setupJs () { V8::Initialize(); Isolate* isolate = v8::Isolate::New(); Isolate::Scope…
pistacchio
  • 56,889
  • 107
  • 278
  • 420
4
votes
0 answers

Errors while installing therubyracer gem on cataline macos

I am trying to install therubyracer gem on cataline os, but nothing seems to working for me. I have tried every single command available on stackoverflow answers. Below is the error I am getting-- gem install therubyracer --…
4
votes
3 answers

therubyracer installation on windows with libv8 installed --with-system-v8

I finally got libv8 installed on my windows with gem install libv8 -- --with-system-v8 now when I am trying to install therubyracer I get gem install therubyracer Temporarily enhancing PATH to include DevKit... Building native extensions. This…
Aalap
  • 41
  • 1
  • 1
  • 3
3
votes
1 answer

V8 javascript how to make asynchronous calls

I've been trying to figure out how to make asynchronous calls in V8, without luck. The example javascript code I'm trying to have run is: function test () { logMessage ('asynchronous call made!'); } saveFunc(test); The saveFunc function is…
Someone13
  • 443
  • 1
  • 6
  • 18
3
votes
1 answer

annoying libv8 error even after successful install

okay. I am trying bootstarp for the first time and I added gems "therubyracer" and "less-rails" to my gemfile along with 'twitter-bootstrap-rails'. After bundle install I get following error. Bundler::GemspecError: Could not read gem at…
sonalkr132
  • 967
  • 1
  • 9
  • 25
3
votes
2 answers

In V8 why does Isolate::GetCurrent() return NULL?

I have compiled V8 on Ubuntu and have a very simple V8 program called isolate_test.cc. It is based on the Hello World example from Google: #include using namespace v8; int main(int argc, char* argv[]) { V8::initialize(); Isolate*…
donturner
  • 17,867
  • 8
  • 59
  • 81
2
votes
0 answers

In libv8 or libnode how to implement toString() method for an object that I'm returning from my function?

I'm using libv8 (libnode in Ubuntu) where I define my own function "test()" which can be called from javascript. This function returns object {code: 3.14, message: "Some message"}: void test(const v8::FunctionCallbackInfo < v8::Value > &args) { …
asdjfiasd
  • 1,572
  • 15
  • 28
2
votes
1 answer

therubyracer no suitable image found mach-o, but wrong architecture

I'm getting setup with ruby on rails on my new Apple Silicon machine in regards to getting v8 and therubyracer installed correctly. As abundantly documented, there are a few issues I'm working through to be able to execute basic rails commands. I've…
Atticus
  • 418
  • 2
  • 6
  • 20
2
votes
0 answers

therubyracer incompatible library version

My application is running on ubuntu 16.04 with ruby 2.1.4p265 and rails 4.2.2. I get the following error incompatible library version - /home/aktivlearnadmin/.rvm/gems/ruby-2.1.4/gems/therubyracer-0.12.2/lib/v8/init.so…
Arun Kumar M
  • 848
  • 9
  • 14
2
votes
1 answer

Error installing therubyracer

I am having trouble installing therubyracer on Windows Server 2012 R2. first, i tried with gem install therubyracer -v '0.12.3' which gave this output: Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a…
nintschger
  • 1,786
  • 5
  • 30
  • 45
2
votes
1 answer

v8::Isolate::New null access violation

I'm using V8 32-bit Version 4.10.253 compiled with Visual Studio 2015. I'm trying to run the example that Google has at: Chrome V8 - Getting Started But when I try to run it, I get: Exception thrown at 0x00000000 in V8Test.exe: 0xC0000005: Access…
Someone13
  • 443
  • 1
  • 6
  • 18
2
votes
0 answers

Make sure that `gem install libv8 -v '3.11.8.13'` succeeds before bundling

I recently upgraded to the latest version of Mavericks and it seems to have broken a few of my Rails 3 app. When I try to run a bundle install, I get the following error: An error occurred while installing libv8 (3.11.8.13), and Bundler cannot …
Huy
  • 10,806
  • 13
  • 55
  • 99