0
votes

I followed this guide and download aws-cli with this link. When I try to verify whether I have installed it successfully with this command: aws --version

I get this error: -bash: /usr/local/bin/aws: cannot execute binary file

I try to

chmod +x aws

and

sudo chmod 777 aws

but none of them worked. Does anyone know how to fix the issue?

Thanks!

1
what happens when you execute the binary with full path /usr/local/bin/aws. Which MacOSX version you are running? - samtoddler
I get 'cannot execute the binary file' when I execute /usr/local/bin/aws. The MacOS I am using is 11.1 (Big Sur) - elidrinkstea
check System Preferences under Security and Privacy, when you try to execute there is popup to allow the binary. It happened to me for terraform binary. - samtoddler

1 Answers

0
votes

You may be trying to run a binary compiled for a different OS. Could you please post the output of file /usr/local/bin/aws?