Home > Software design >  Not able to execute eksctl
Not able to execute eksctl

Time:12-07

I am new to kubernetes, today i installed eksctl in EC2 server with Amazon linux 2 OS.

But getting error as "-bash: /usr/local/bin/eksctl: cannot execute binary file", while running the eksctl.

Steps I followed from the link "https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html"

  1. curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp

  2. sudo mv /tmp/eksctl /usr/local/bin

  3. eksctl version

CodePudding user response:

Try this command instead for step 1:

curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_arm64.tar.gz" | tar xz -C /tmp

All that's different is I replaced amd64 with arm64, since I'm guessing your OS is running on that architecture instead. You can check with uname -m:

$ uname -m
arm64
  • Related