Closed chrisalley closed 2 years ago
Just a sanity check: Are you running on alpine?
It's not alpine based; the specific image/tag is ruby:3.0.3.
This looks very similar to https://github.com/rubyjs/mini_racer/issues/218
Installing libv8-node 16.10.0.0 (x86_64-linux-musl)
This looks wrong then, @chrisalley.
Seeing the same issue in GitHub Actions with the latest ruby/setup-ruby@v1.91.0
Same issue here with the ruby:3.0.2 image and mini_racer 0.5.0
Fwiw, we were finally able to resolve our issue by updating to latest bundler(2.3.5), as well as specifying platforms in Gemfile.lock. We are still running Ruby 2.7.x.
If you are running into this issue, please make sure to update bundler (currently 2.3.5) and check if the platform you're running on is properly set in Gemfile.lock
(via bundle lock --add-platform aarch64-linux
).
mini_racer 0.6.2 should work fine with Ruby 2.6.9, 2.7.5, 3.0.x and 3.1.0 (I tested a lot of those combination across x86 and aarch64 recently). Especially with the recent 0.6.2 the last issues with pre Ruby 3 environments got fixed.
@mdh: awesome 👍 @justinsnair, @cmoad: Could you try with mini_racer 0.6.2?
Solved with:
bundle lock --add-platform aarch64-linux
bundle lock --add-platform x86_64-linux
In Gemfile:
gem 'mini_racer', '~> 0.6.2'
In Dockerfile:
FROM ruby:3.0.3
...
RUN gem install bundler --version=2.3.5
RUN bundle install
Only aarch64-linux was required as an added platform for CircleCI to succeed in installing mini_racer, but another gem (ransack) failed to install without x86_64-linux being added also.
Great! I'm glad this worked out for you, @chrisalley!
Only aarch64-linux was required as an added platform for CircleCI to succeed
Interesting 🤔 Didn't knew that CircleCI has an ARM offering :)
My point to this issue gem install libv8-node --version 16.10.0.0 --platform x86_64-linux-libc
When running the bundle install command on CircleCI with mini_racer 0.6.0 in the Gemfile, the build fails. This did not occur with mini_racer 0.3.1. Output: