Not able to execute eksctl

Not able to execute eksctl

Problem Description:

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 ""

  1. curl –silent –location "$(uname -s)_amd64.tar.gz" | tar xz -C /tmp

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

  3. eksctl version

Solution – 1

Try this command instead for step 1:

curl --silent --location "$(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
Rate this post
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.