Problem
The install script downloads the generic ccost binary first, which is the Linux x86_64 version. On macOS arm64 (Apple Silicon), this results in:
Steps to Reproduce
- On macOS arm64, run:
curl -sSf https://raw.githubusercontent.com/carlosarraes/ccost/main/install.sh | sh
- Run
ccost
- Get exec format error
Root Cause
The script tries to download the generic binary before falling back to platform-specific ones. The generic ccost artifact is the Linux build.
Workaround
Download the platform-specific binary directly:
curl -sL "https://github.com/carlosarraes/ccost/releases/latest/download/ccost-darwin-aarch64" -o ~/.local/bin/ccost
chmod +x ~/.local/bin/ccost
Suggested Fix
Update install.sh to always use platform-specific binary names (ccost-darwin-aarch64, ccost-darwin-x86_64, ccost-linux-x86_64) rather than trying the generic binary first.
Problem
The install script downloads the generic
ccostbinary first, which is the Linux x86_64 version. On macOS arm64 (Apple Silicon), this results in:Steps to Reproduce
curl -sSf https://raw.githubusercontent.com/carlosarraes/ccost/main/install.sh | shccostRoot Cause
The script tries to download the generic binary before falling back to platform-specific ones. The generic
ccostartifact is the Linux build.Workaround
Download the platform-specific binary directly:
Suggested Fix
Update
install.shto always use platform-specific binary names (ccost-darwin-aarch64,ccost-darwin-x86_64,ccost-linux-x86_64) rather than trying the generic binary first.