aws-elastic-beanstalk-cli-setup
aws-elastic-beanstalk-cli-setup copied to clipboard
arm64 macOS ("Apple Silicon", "M1") install friction
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.
- 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. - With a usable Python installed, rerun the
eb
installer. It may fail while installingcryptography
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 theeb
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
- Follow the "Finishing up" instructions from the
eb
installer.
@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!
@spencerwilson Hi, changing the version didn't work with me, now I have this error: python-build: definition not found: 3.9.1
@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
@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).
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
Regarding @hishamMounir's approach, that worked for me after installing python with pyenv I did: brew install awsebcli
and everything worked.