dhiaayachi / temporal

Temporal service
https://docs.temporal.io
MIT License
0 stars 0 forks source link

Temporal CLI download link seems to be incompatible with declared architecture #120

Open dhiaayachi opened 1 month ago

dhiaayachi commented 1 month ago

While trying to install Temporal CLI, I downloaded this file https://temporal.download/cli/archive/latest?platform=linux&arch=amd64 (from here) to /usr/local/bin/temporal. After chmod +x and running the file, the following error is returned:

execute binary file: Exec format error

It seems the link is invalid for amd46 architecture.

# dpkg --print-architecture
amd64

# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
...

Expected Behavior

Temporal CLI help info to appear upon running temporal command:

NAME:
   temporal - Temporal command-line interface and development server
...

Actual Behavior

The following error was returned:

execute binary file: Exec format error

Steps to Reproduce the Problem

  1. curl https://temporal.download/cli/archive/latest?platform=linux&arch=amd64 -o /usr/local/bin/temoral
  2. chmod +x /usr/local/bin/temoral
  3. temporal

Specifications

dhiaayachi commented 1 month ago

The issue you're encountering is due to an incorrect download link for the Temporal CLI on your Ubuntu 22.04.4 LTS system. You're downloading the amd64 version, which is not compatible with your system's architecture.

Here's the correct link to download the Temporal CLI for your system:

https://temporal.download/cli/archive/latest?platform=linux&arch=amd64

To resolve the error:

  1. Download the correct version:
    • Replace the existing temporal file in /usr/local/bin with the correct download:
      curl https://temporal.download/cli/archive/latest?platform=linux&arch=amd64 -o /usr/local/bin/temporal
  2. Make it executable:
    • Re-apply the executable permissions:
      chmod +x /usr/local/bin/temporal
  3. Run the CLI:
    • Now you should be able to run the Temporal CLI:
      temporal

You should see the following output:

NAME:
   temporal - Temporal command-line interface and development server
...

For future reference, you can check your system's architecture using the following command:

dpkg --print-architecture

This will output amd64 or i386. Make sure you download the correct architecture for your system from the Temporal CLI download page.