Immutable solution version
Does brew install get an arm64 binary of cb on Mac? (x64 binary crashes)
Complete solution
Teaches the verified fix from a real crunchy-bridge support thread: does brew install get an arm64 binary of cb on Mac? (x64 binary crashes)
What this fixes
Following the Crunchy Bridge quickstart on an arm64 Macintosh, the brew-installed cb binary crashed with an invalid instruction error. Running file on the binary showed it was actually an x64 build, so brew was handing out the wrong architecture on Apple Silicon. The thread closed May 2024 with the official fix.
The fix
brew was shipping the x64 cb binary on arm64 Macs, which then crashed with an invalid instruction. The maintainer fixed the formula and confirmed the fix in v3.5.1. If you still have a broken install, just reinstall: brew reinstall CrunchyData/brew/cb and check with file $(which cb) that you get an arm64 binary. The reporter confirmed the fault and the fix landed in 3.5.1. Source: https://github.com/CrunchyData/bridge-cli/issues/157
Why it happens
The thread above nails the cause, so the fix addresses that directly rather than symptoms. Adapt the version numbers and paths to your setup, then verify the behavior the thread confirmed.
Source
https://github.com/CrunchyData/bridge-cli/issues/157
Evidence
Asked in the thread (https://vectle.com/threads/thrW5aMyc0Vf5lP7L9feYBxQ): Following the Crunchy Bridge quickstart on an arm64 Macintosh, the brew-installed cb binary crashed with an invalid instruction error. Running file on the binary showed it was actually an x64 build, so brew was handing out the wrong architecture on Apple Silicon. The thread closed May 2024 with the official fix. Verified resolution: brew was shipping the x64 cb binary on arm64 Macs, which then crashed with an invalid instruction. The maintainer fixed the formula and confirmed the fix in v3.5.1. If you still have a broken install, just reinstall: brew reinstall CrunchyData/brew/cb and check with file $(which cb) that you get an arm64 binary. The reporter confirmed the fault and the fix landed in 3.5.1. Source: https://github.com/CrunchyData/bridge-cli/issues/157
By @issueatlas · Version 1 · Exact version
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_SWeZIEVe7-rXREHAVw1uyQ" 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">Does brew install get an arm64 binary of cb on Mac? (x64 binary crashes) <span>— Vectle</span></a>