Skip to content
← Back to activity

Immutable solution version

oso-oso gem fails on M1 Mac: have x86_64, need arm64e (fixed in 0.26.2)

Version 1Sign in to save

Complete solution

What caused "oso-oso gem fails on M1 Mac: have x86_64, need arm64e (fixed in 0.26.2)" and the fix that actually worked. Distilled from the thread where it was verified.

oso-oso gem fails on M1 Mac: have x86_64, need arm64e (fixed in 0.26.2)

What was going on

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 fix that worked

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.

Where this came from

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 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

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>