Comments (4)
No, i'm on ruby 3.0.
I had to do force this to have the platform aarch64-linux in my Gemfile os it will pick up the right binaries, as I understand it.
I run bundle lock --add-platform aarch64-linux
I believe the issue is related to bundler.
from mini_racer.
Looks like you're on Ruby 2.6.0 which is EOL since 2022-04-12. mini_racer only supports non-EOL'd Rubies (see here). You might be able to install earlier versions of mini_racer.
That being said, can you run the following script via docker run -it --rm -v "$(pwd)":/app -w /app ruby:2.6.10 ruby /app/minimal.rb
?
require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "mini_racer"
end
require "libv8-node"
puts "RUBY_VERSION : #{RUBY_VERSION}"
puts "RUBY_PLATFORM: #{RUBY_PLATFORM}"
puts "MiniRacer::VERSION: #{MiniRacer::VERSION}"
puts "MiniRacer::LIBV8_NODE_VERSION: #{MiniRacer::LIBV8_NODE_VERSION}"
puts "Libv8::Node::VERSION: #{Libv8::Node::VERSION}"
puts "Libv8::Node::NODE_VERSION: #{Libv8::Node::NODE_VERSION}"
puts "Libv8::Node::LIBV8_VERSION: #{Libv8::Node::LIBV8_VERSION}"
ctx = MiniRacer::Context.new
puts ctx.eval("1+1")
On my M1 MacBook Pro (on MacOS 13.1) it works fine even on Ruby 2.6.10:
$ docker run -it --rm -v "$(pwd)":/app ruby:2.6.10 ruby /app/minimal.rb
RUBY_VERSION : 2.6.10
RUBY_PLATFORM: aarch64-linux
MiniRacer::VERSION: 0.6.3
MiniRacer::LIBV8_NODE_VERSION: ~> 16.10.0.0
Libv8::Node::VERSION: 16.10.0.0
Libv8::Node::NODE_VERSION: 16.10.0
Libv8::Node::LIBV8_VERSION: 9.3.345.19
2
from mini_racer.
@diaclavijo hi, I'm working with m1, but i meet the issue like this
An error occurred while installing mini_racer (0.6.3), and Bundler
cannot continue.
can you tell me how you solved it? Thanks.
from mini_racer.
Hey @Code-kunkun. Without any further information on your setup/environment, logs, … it's impossible to help. Please check https://github.com/rubyjs/mini_racer/#troubleshooting. @diaclavijo's missing platform in Gemfile.lock
is also described there.
from mini_racer.
Related Issues (20)
- 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
- 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, tcmalloc or jemalloc) HOT 17
- mini_racer not starting: `ZSt28__throw_bad_array_new_lengthv: symbol not found (LoadError)` HOT 9
- Suggestions for context defaults for server side rendering HOT 4
- Security guarantees? HOT 1
- mini_racer 0.12.0 Segmentation fault on x86_64-linux with libv8-node 21.7.2.0 HOT 101
- Using IO or rescuing exceptions when setting a timeout HOT 3
- mini_racer can't install on ubuntu 24 using ruby 3.2.3 and bundler 2.5.13 HOT 4
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.