-
Notifications
You must be signed in to change notification settings - Fork 93
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
"no suitable image found" error on Ruby 3.1.1 #244
Comments
Hey @mbajur, please check out https://github.com/rubyjs/mini_racer#troubleshooting. I'm guessing you have to re-install (recompile) mini_racer and libv8-node. |
If that means i just need to run |
hmm, I have no old macOS available. Any idea what that could be @lloeki? |
Hmm, no I don't. This is weird:
These are the first bytes one is supposed to get (arm64, but anyway they should not be
|
I am getting same issues on Mac OS Big Sur when I run This is my platform information
This is my gem version
|
There was an update to Xcode Command Line Utilities recently. Did you by any chance install this, @ianperera? This will update libraries that mini_racer is linking to. Make sure to run |
This is my gcc informations from xcode 13.2.1.
I have already tried to run this command |
If you have the exact same problem, could you make sure that
is removed when you uninstall the gems? I'm wondering if there are some leftover elsewhere, like build caches or something. I've never seen that issue before though, but I'm running out of ideas. Unfortunately I only have Monterey (macOS 12 / darwin21) around. |
I was having the exact same problem on an Intel Mac running Big Sur, and all the suggestions given above eventually lead to the same error after the final
After that, the gem seems to be working as expected. I'm not sure what exactly is broken, but the ➜ hexdump -n4 mini_racer_extension.bundle
0000000 cf fa ed fe I didn't bother investigating any deeper and I don't really have any knowledge on It doesn't seem to be related to the Ruby version - OP says it works on 2.7.3 but breaks on 3.1.1, but I'm willing to bet a fresh rebuild on 2.7.3 would fail for him as well, since this is what happened to me on 2.6.9 (previous install was working, many months later I did a fresh reinstall and started getting the error). Also doesn't seem to be related to the version manager, since OP is using Either way, hopefully this helps anyone else who stumbles upon this issue via search. |
A lot has been updated and changed in the last 12 months. Could you give it another shot with the latest released mini_racer 0.8.0? I recently did some tests with Monterey and Ventura VMs using homebrew + rvm to get a fresh Ruby installation and was able to build mini_racer without any issues. If you still encounter this issue, it would be helpful if you could provide the complete build logs. -ping @samueldemoura @ianperera @mbajur |
Hello,
i have an app I'm trying to upgrade from Ruby 2.7.3 to 3.1.1 and here is what's being raised after i try to run any command or start a server:
I was not able to google anything regarding such exception. I'm on macOS Big Sur + RVM. Please have in mind it works perfectly fine on 2.7.3
Thanks!
The text was updated successfully, but these errors were encountered: