Comments (4)
Did you have a careful read of the readme :)
On Tuesday, 24 May 2016, Tommaso Pavese [email protected] wrote:
I'm experimenting with switching from therubyracer to mini_racer.
It works locally on OS X, but it fails on Travis (MRI 2.2):Installing mini_racer 0.1.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/travis/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20160524-6880-z39ic2.rb extconf.rb
checking for main() in -lpthread... yes
creating Makefilemake "DESTDIR=" clean
make "DESTDIR="
compiling mini_racer_extension.cc
In file included from mini_racer_extension.cc:4:0:
/home/travis/build/---/---/vendor/bundle/ruby/2.2.0/gems/libv8-5.0.71.48.3-x86_64-linux/vendor/v8/include/v8.h:341:1: error: expected unqualified-id before ‘using’
/home/travis/build/---/---/vendor/bundle/ruby/2.2.0/gems/libv8-5.0.71.48.3-x86_64-linux/vendor/v8/include/v8.h:477:1: error: expected unqualified-id before ‘using’
/home/travis/build/---/---/vendor/bundle/ruby/2.2.0/gems/libv8-5.0.71.48.3-x86_64-linux/vendor/v8/include/v8.h:871:1: error: expected unqualified-id before ‘using’
mini_racer_extension.cc:136:51: error: ‘Handle’ has not been declared
mini_racer_extension.cc:136:57: error: expected ‘,’ or ‘...’ before ‘<’ token
mini_racer_extension.cc: In function ‘VALUE convert_v8_to_ruby(v8::Isolate_, int)’:
mini_racer_extension.cc:140:9: error: ‘value’ was not declared in this scope
mini_racer_extension.cc:144:9: error: ‘value’ was not declared in this scope
mini_racer_extension.cc:148:9: error: ‘value’ was not declared in this scope
mini_racer_extension.cc:152:9: error: ‘value’ was not declared in this scope
mini_racer_extension.cc:156:9: error: ‘value’ was not declared in this scope
mini_racer_extension.cc:160:9: error: ‘value’ was not declared in this scope
mini_racer_extension.cc:165:55: error: cannot convert ‘v8::Localv8::Value’ to ‘int’ for argument ‘2’ to ‘VALUE convert_v8_to_ruby(v8::Isolate_, int)’
mini_racer_extension.cc:171:9: error: ‘value’ was not declared in this scope
mini_racer_extension.cc:175:9: error: ‘value’ was not declared in this scope
mini_racer_extension.cc:184:53: error: cannot convert ‘v8::Localv8::Value’ to ‘int’ for argument ‘2’ to ‘VALUE convert_v8_to_ruby(v8::Isolate_, int)’
mini_racer_extension.cc:186:57: error: cannot convert ‘v8::Localv8::Value’ to ‘int’ for argument ‘2’ to ‘VALUE convert_v8_to_ruby(v8::Isolate_, int)’
mini_racer_extension.cc:193:26: error: ‘value’ was not declared in this scope
mini_racer_extension.cc: At global scope:
mini_racer_extension.cc:197:8: error: ‘Handle’ does not name a type
mini_racer_extension.cc: In function ‘VALUE rb_context_eval_unsafe(VALUE, VALUE)’:
mini_racer_extension.cc:299:61: error: cannot convert ‘v8::Localv8::Value’ to ‘int’ for argument ‘2’ to ‘VALUE convert_v8_to_ruby(v8::Isolate_, int)’
mini_racer_extension.cc:306:63: error: cannot convert ‘v8::Localv8::Value’ to ‘int’ for argument ‘2’ to ‘VALUE convert_v8_to_ruby(v8::Isolate_, int)’
mini_racer_extension.cc:348:56: error: cannot convert ‘v8::Localv8::Value’ to ‘int’ for argument ‘2’ to ‘VALUE convert_v8_to_ruby(v8::Isolate_, int)’
mini_racer_extension.cc: In function ‘void_ gvl_ruby_callback(void_)’:
mini_racer_extension.cc:396:2: error: ‘Handle’ was not declared in this scope
mini_racer_extension.cc:396:17: error: expected primary-expression before ‘>’ token
mini_racer_extension.cc:396:19: error: ‘external’ was not declared in this scope
mini_racer_extension.cc:396:45: error: expected primary-expression before ‘>’ token
mini_racer_extension.cc:396:46: error: ‘::Cast’ has not been declared
mini_racer_extension.cc:409:65: error: cannot convert ‘v8::Localv8::Value’ to ‘int’ for argument ‘2’ to ‘VALUE convert_v8_to_ruby(v8::Isolate_, int)’
mini_racer_extension.cc:430:2: error: ‘Handle’ was not declared in this scope
mini_racer_extension.cc:430:14: error: expected primary-expression before ‘>’ token
mini_racer_extension.cc:430:16: error: ‘v8_result’ was not declared in this scope
mini_racer_extension.cc:430:73: error: ‘convert_ruby_to_v8’ was not declared in this scope
make: *** [mini_racer_extension.o] Error 1make failed, exit code 2
Gem files will remain installed in /home/travis/build/---/---/vendor/bundle/ruby/2.2.0/gems/mini_racer-0.1.3 for inspection.
Results logged to /home/travis/build/---/---/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/mini_racer-0.1.3/gem_make.out
An error occurred while installing mini_racer (0.1.3), and Bundler cannot continue.Make sure that
gem install mini_racer -v '0.1.3'
succeeds before bundling.Is there any specific configuration I should add?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#9
from mini_racer.
Ops.
RTFM to the rescue :-)
Thanks for the quick reply.
from mini_racer.
For people landing here from a Google search, see https://github.com/discourse/mini_racer#travis-ci
To install
mini-racer
you will need a version of gcc that supports C++11 (gcc 4.8) this is included by default in ubuntu trusty based images.Travis today ships by default with a precise based image. Precise Pangolin (12.04 LTS) was first released in August 2012. Even though you can install GCC 4.8 on precise the simpler approach is to opt for the trusty based image.
Add this to your .travis.yml file:
- sudo: required - dist: trusty
from mini_racer.
This helped to me https://github.com/rubyjs/mini_racer#troubleshooting specifically gem uninstall --all mini_racer libv8-node
from mini_racer.
Related Issues (20)
- Node 17+18: mini_racer fails to build against ruby platform gem in CI (invalid use of ‘v8::Name::Name’) HOT 1
- `MiniRacer::RuntimeError` does not handle multiline error messages correctly HOT 1
- Gem::Ext::BuildError: ERROR: Failed to build gem native extension HOT 1
- Remote Debugging JS HOT 1
- sq_mini_racer Ruby 3.1 incompatibility (`Psych::DisallowedClass`) HOT 2
- After MacOS Ventura upgrade. gem install works, bundle install does not HOT 2
- Context has no Isolate available anymore HOT 3
- bundler install error HOT 5
- Installing mini_racer 0.6 on docker M1 fails with "make: printf: Argument list too long" HOT 4
- Update default branch to `main` HOT 3
- Unexpected token p in JSON at position HOT 2
- Gem::Ext::BuildError: ERROR: Failed to build gem native extension (Ruby 2.7.4) HOT 3
- Discuss: Release version 1.0.0 and manage consumer breaking version expectations HOT 3
- Node release catch-up plan HOT 42
- CI Improvements HOT 1
- `Isolate::low_memory_notification` fails to lock Isolate HOT 5
- Error installing mini_racer: ERROR: Failed to build gem native extension HOT 7
- Undefined Conversion
- Segmentation fault when application stops (Ruby 3.2.2, HOT 11
- mini_racer not starting: `ZSt28__throw_bad_array_new_lengthv: symbol not found (LoadError)` HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini_racer.