New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error installing mini_racer: ERROR: Failed to build gem native extension #289
Comments
This is a very weird one 🤔 What is failing here is the installation of libv8-node (here https://github.com/rubyjs/libv8-node/blob/v18.16.0.0/ext/libv8-node/location.rb#L19-L23). The Can you run these commands and show the output?
The last should raise an exception ( Have you seen this before, @lloeki? |
|
|
Not sure how to investigate further, but what I just noticed from your stacktraces, @overtube: When installing libv8-node the Ruby bundled psych got used. With the execution of the snippets I gave you, it was the psych gem ( To get another data point, can you try this with Ruby 3.2.2? |
It worked for me after updating my ruby version from |
This works around a problem where mini_racer doesn't like the psych in the GitHub Actions images for ruby 3.0 and 3.1 but it fine with the ruby 3.2 image that uses a newer rubygems version. rubyjs/mini_racer#289
For anyone else coming across this, this was caused by a bug in rubygems
See rubygems/rubygems#6490 for the PR in rubygems that fixed this bug, which was released in rubygems 3.4.10 . |
Thanks for the comment, @gravitystorm 🙏 Super difficult to make the troubleshooting guide in the README more visible. Almost all reported bugs are solved by what we have at https://github.com/rubyjs/mini_racer#supported-ruby-versions--troubleshooting. |
gem_make.out
mkmf.log
The text was updated successfully, but these errors were encountered: