greglook / cljstyle

A tool for formatting Clojure code
Eclipse Public License 1.0
293 stars 39 forks source link

"Bad CPU type in executable" when installed on Apple Silicon Mac #100

Closed martinklepsch closed 6 months ago

martinklepsch commented 1 year ago

Hello,

I've just moved to a new mac and noticed that cljstyle doesn't seem to run on Apple M1/M2 chips, the following error being shown:

exec: Failed to execute process '/opt/homebrew/bin/cljstyle': Bad CPU type in executable.

This is with v.0.15.0 freshly installed via brew install --cask cljstyle.

Is Rosetta required for cljstyle for now?

AbhinavOmprakash commented 11 months ago

@martinklepsch I faced the same issue, after installing rosetta it started working. rosetta can be installed with

softwareupdate --install-rosetta
greglook commented 6 months ago

Release 0.16.626 has an arm64 platform native binary now that I have an M2 mac to build on. 🎉 I'll follow with an update to the homebrew recipe for cljstyle.

greglook commented 6 months ago

Someone beat me to it! https://github.com/Homebrew/homebrew-cask/commit/bbccdac5ed8553c168872654c6bff155b8d5fea5