libv8

What is therubyracer or libv8 for in a rails application?

北城以北 提交于 2020-01-02 02:12:18
问题 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 are they for and do I need them in the average application and if so why? 回答1: There are a few things for which a Rails app might use a Javascript Runtime: 1) The Rails Asset Pipeline requires a Javascript Runtime in order to perform Javascript

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

元气小坏坏 提交于 2019-12-29 02:32:05
问题 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 javascript library used by Google Chrome? I was having trouble installing it, but this great post had both my error and a well-explained answer on how to bypass it. So I installed libv8 with gem install libv8 -- --with-system-v8 It's my understanding that

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

好久不见. 提交于 2019-12-23 14:55:49
问题 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 could take a while... Building native extensions. This could take a while... ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe extconf.rb --with-system-v8 checking for main() in -lpthread... no

Fix therubyracer/libv8 (0.12.1) installation on Mavericks

白昼怎懂夜的黑 提交于 2019-12-20 11:13:54
问题 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 0.12. Similar questions Installing libv8 gem on Mavericks How to fix libv8 error from Gemfile on Mavericks? I’m having problems using ‘standard’ (xcode?) gcc, and both apple-gcc42 and gcc from homebrew. I’ve tried both --with-system-v8 and --without-system

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

时光总嘲笑我的痴心妄想 提交于 2019-12-17 07:05:32
问题 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 D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:49:in'setup_python!':libv8 requires python 2 to be installed in order to build,but it is currently not available (RuntimeError) from D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:35:in 'block in build

Rails on WINDOWS: install therubyracer & libv8 - working on a website designed on MAC

不问归期 提交于 2019-12-13 06:15:13
问题 I have a website developed with was RoR v 4.2.4 on MAC which needs some adaptions and I'm trying to get in running on my windows 10 (because I don't have a MAC).I was not successfull with the rails installer and rails 5.0. After a lot of pain installing RoR 4.2.4 with ruby 2.2.6 I managed to install nearly all missing gems using bundle check , bundle install and gem install xyz -v 0.0... . But now I'm really stuck with the last 2: therubyracer and libv8 What I tried: Install libv8 with gem

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

☆樱花仙子☆ 提交于 2019-12-09 21:14:56
问题 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 <v8.h> using namespace v8; int main(int argc, char* argv[]) { V8::initialize(); Isolate* isolate = Isolate::GetCurrent(); //Always returns NULL return 0; } The command I use to compile this program is: g++ -Iinclude -g isolate_test.cc -o isolate_test -Wl,--start-group out/x64.debug/obj.target/{tools/gyp/libv8_{base,snapshot},third_party/icu/libicu

Difficulty installing therubyracer 0.10.2 and apple-gcc42 on Mac OSX 10.12.6 Sierra

纵饮孤独 提交于 2019-12-08 03:12:14
问题 The answer to this similar question doesn't solve my problem. Here is the answer from that question: If you decide to use a newer therubyracer gem version, you will no longer have this problem Otherwise: brew tap homebrew/dupes # Thanks Tom brew install apple-gcc42 export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2 export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2 brew uninstall v8 gem uninstall

Difficulty installing therubyracer 0.10.2 and apple-gcc42 on Mac OSX 10.12.6 Sierra

孤街浪徒 提交于 2019-12-06 15:27:47
The answer to this similar question doesn't solve my problem. Here is the answer from that question: If you decide to use a newer therubyracer gem version, you will no longer have this problem Otherwise: brew tap homebrew/dupes # Thanks Tom brew install apple-gcc42 export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2 export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2 brew uninstall v8 gem uninstall libv8 gem install therubyracer -v '0.10.2' # specify version The problem I'm running into with this

How to install V8js on PHP5.5?

心不动则不痛 提交于 2019-12-04 17:22:25
问题 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 ERROR: `/tmp/pear/temp/v8js/configure --with-v8js' failed If I try to install an old version, I have a compilation error. This message is very similar to my issue: Install v8js for php on ubuntu How can I fix this issue? EDIT: I couldn't install it on