aws-elastic-beanstalk-cli-setup icon indicating copy to clipboard operation
aws-elastic-beanstalk-cli-setup copied to clipboard

arm64 macOS ("Apple Silicon", "M1") install friction

Open spencerwilson opened this issue 4 years ago • 6 comments

1. Please specify the following:

  • OS: [e.g. OS X, Ubuntu, Windows, etc.]: macOS Big Sur 11.0.1
  • Shell (Bash, PowerShell, Zsh, etc.): Zsh

2. Description This is informational, for those looking to run eb on their ARM Macs.

  1. Python 3.7.2 doesn't build under macOS arm64. Update this line to refer to 3.9.1, which does build. You may have to follow pyenv's docs to ensure you have the prerequisite software installed.
  2. With a usable Python installed, rerun the eb installer. It may fail while installing cryptography into a virtualenv; see https://github.com/pyca/cryptography/issues/5702. If so, you'll have to build it from source. To do this, follow the instructions here to get prereqs, then finally rerun the eb installer script with the flags the cryptography build docs prescribe:
LDFLAGS="-L$(brew --prefix [email protected])/lib" CFLAGS="-I$(brew --prefix [email protected])/include" ./scripts/bundled_installer
  1. Follow the "Finishing up" instructions from the eb installer.

spencerwilson avatar Jan 26 '21 18:01 spencerwilson

@spencerwilson haha that you for the perfect timing on this, was literally trying to install on a new macbook pro yesterday and ran into this issue. 3.9.1 worked like a charm. Thanks!

prkirby avatar Jan 27 '21 18:01 prkirby

@spencerwilson Hi, changing the version didn't work with me, now I have this error: python-build: definition not found: 3.9.1

hishamMounir avatar Feb 07 '21 16:02 hishamMounir

@hishamMounir You have to install python vs 3.9.1, same thing happened to me. You can use pyenv for that, which can be installed with brew

prkirby avatar Feb 08 '21 08:02 prkirby

@hishamMounir Yep, try installing (or updating, if already installed) pyenv. That error might be symptomatic of pyenv not having an up-to-date list of versions to build (idk if that's a thing; just speculating).

spencerwilson avatar Feb 08 '21 17:02 spencerwilson

I had to install Python manually then, I built cryptgraphy and installed, then I used Homebrew to install the ebcli package instead of building the script, and it worked

hishamMounir avatar Feb 08 '21 20:02 hishamMounir

Regarding @hishamMounir's approach, that worked for me after installing python with pyenv I did: brew install awsebcli and everything worked.

jpsilvashy avatar Apr 24 '21 14:04 jpsilvashy