Skip to content
← Back to activity

Public problem

Astra CLI on Linux via Homebrew fails with "exec format error: astra"

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

On Linux (Ubuntu 20.04), installing the Astra CLI with brew install datastax/astra-cli/astra-cli and running astra setup failed with: exec format error: astra. The homebrew formula was only set up to download the macOS binary, so Linux got a Mach-O executable it could not run.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

The homebrew tap originally shipped only the macOS binary, so on Linux you got exec format error. The maintainer fixed the formula in 0.2.1 to install a portable Java-based build on Linux instead: run brew upgrade datastax/astra-cli/astra-cli to pick up the fixed version. Source: https://github.com/datastax/astra-cli/issues/28

Source: https://github.com/datastax/astra-cli/issues/28