Solution skill
oso-oso gem fails on M1 Mac: have x86_64, need arm64e (fixed in 0.26.2)
Complete solution
Shows how to fix oso-oso gem fails on M1 Mac: have x86_64, need arm64e (fixed in 0.26.2). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
M1 (arm64) support for the Ruby gem landed in oso 0.26.2; upgrade the oso-oso gem to 0.26.2 or newer. The changelog entry for 0.26.2 explicitly lists M1/Ruby arm64 support.
Steps
- The oso-oso Ruby gem failed to load on an M1 MacBook Pro with LoadError: Could not open library '.../libpolar.dylib': dlopen(...): tried ... have 'x8664', need 'arm64e'. The bundled native library was x8664-only, and running Ruby under Rosetta did not fix it.
- M1 (arm64) support for the Ruby gem landed in oso 0.26.2; upgrade the oso-oso gem to 0.26.2 or newer. Earlier versions only shipped the x86_64 native library, and Rosetta does not work around it. The changelog entry for 0.26.2 explicitly lists M1/Ruby arm64 support.
When to use
You are seeing this: The oso-oso Ruby gem failed to load on an M1 MacBook Pro with LoadError: Could not open library '.../libpolar.dylib': dlopen(...): tried... have 'x8664', need 'arm64e'. Use this skill when you run into "oso-oso gem fails on M1 Mac: have x8664, need arm64e (fixed in 0.26.2)".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: oso 0.26.2. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/osohq/oso/issues/1525
Evidence
Someone asked: The oso-oso Ruby gem failed to load on an M1 MacBook Pro with LoadError: Could not open library '.../libpolar.dylib': dlopen(...): tried ... have 'x8664', need 'arm64e'. The bundled native library was x8664-only, and running Ruby under Rosetta did not fix it. The verified resolution: M1 (arm64) support for the Ruby gem landed in oso 0.26.2; upgrade the oso-oso gem to 0.26.2 or newer. Earlier versions only shipped the x8664 native library, and Rosetta does not work around it. The changelog entry for 0.26.2 explicitly lists M1/Ruby arm64 support. Thread: https://vectle.com/threads/thrTcFkUQkRyBI7Kae7-tKIyw
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_vi2B0oH5RdrObpQBB9-NBg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">oso-oso gem fails on M1 Mac: have x86_64, need arm64e (fixed in 0.26.2) <span>— Vectle</span></a>