Skip to content

Install script downloads wrong binary on macOS arm64 #1

@shreyasgm

Description

@shreyasgm

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:

exec format error: ccost

Steps to Reproduce

  1. On macOS arm64, run: curl -sSf https://raw.githubusercontent.com/carlosarraes/ccost/main/install.sh | sh
  2. Run ccost
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions