2021-05-12-macos-install-ebcli
-
install Xcode
-
install Xcode commandline tools
-
git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git
-
./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer *** fails .../Modules/posixmodule.c:8409:15: error: implicit declaration of function 'sendfile' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ret = sendfile(in, out, offset, &sbytes, &sf, flags);
-
brew install zlib openssl readline CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix readline)/include -I$(xcrun --show-sdk-path)/usr/include" LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix zlib)/lib"
-
python3 ./aws-elastic-beanstalk-cli-setup/scripts/ebcli_installer.py
- fails virtualenv not installed
-
python3 -m pip install virtualenv
- fails openssl not available, so pip can't download virtualenv
-
brew reinstall openssl
- fails 'Error: /usr/local/opt/openssl@1.1 is not a valid keg'
-
brew uninstall openssl
-
rm -rf /usr/local/opt/openssl@1.1
-
brew install openssl
-
python3 ./aws-elastic-beanstalk-cli-setup/scripts/ebcli_installer.py *** success! (ebcli_installer.py doesn't install python)