al intentar instalar frijoles elásticos en MacBook Air M1, usando lo siguiente:
% ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer
como las pautas que se muestran aquí: https://github.com/aws/aws-elastic-beanstalk-cli-setup
Obtuve el siguiente error:
5. Installing Python 3.7.2. This step may take a few minutes ************************************************************ python-build: use openssl from homebrew python-build: use readline from homebrew Downloading Python-3.7.2.tar.xz... -> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz Installing Python-3.7.2... python-build: use readline from homebrew BUILD FAILED (OS X 11.1 using python-build 20180424) Inspect or clean up the working tree at /var/folders/2v/7tdwpjsd3jzdw75jmp2n5trh0000gn/T/python-build.20201225141032.70517 Results logged to /var/folders/2v/7tdwpjsd3jzdw75jmp2n5trh0000gn/T/python-build.20201225141032.70517.log Last 10 log lines: checking size of _Bool... 1 checking size of off_t... 8 checking whether to enable large file support... no checking size of time_t... 8 checking for pthread_t... yes checking size of pthread_t... 8 checking size of pthread_key_t... 8 checking whether pthread_key_t is compatible with int... no configure: error: Unexpected output of 'arch' on OSX make: *** No targets specified and no makefile found. Stop. Exiting due to failure¡¡¡Gracias por ayudar!!!
También acabo de cambiar a un M1, y también recibí el mismo error. (procedente de pyenv install 3.8.9 ).
La instalación de 3.8.10 funcionó para mí. Mencionan el M1 específicamente en la página de versiones 3.8.10 , por lo que tal vez haya que resolver algo:
Python 3.8.10 incluye dos instaladores: el predeterminado de solo 64 bits que funciona en macOS 10.9 (Mavericks) y sistemas posteriores, y un instalador experimental "universal2" para macOS 11 (Big Sur) y posteriores
(Esto es si necesita 3.8x por cualquier motivo. Están en 3.9.x en este momento).
La solución más fácil es usar brew para instalar ebcli. brew install awsebcli . Manejará todas las variaciones raras relacionadas con Mac por ti.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-osx.html
Ejecute el terminal usando Rosetta , un proceso de traducción que permite a los usuarios ejecutar aplicaciones que contienen instrucciones x86_64 en el silicio de Apple.
Para hacerlo -
Ninguno de los anteriores funcionó para mí. Instalé ambos brebajes para Apple Silicon e Intel:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Y luego instalé pyenv desde:
/usr/local/Homebrew/bin/brew install pyenv /usr/local/Homebrew/bin/brew link pyenv arch -x86_64 pyenv install 3.8.9y eso funciono
Como señala Cheesus en los comentarios, parece que lo único que queda por hacer es la última línea:
arch -x86_64 pyenv install 3.8.9El comando arch se puede usar para ejecutar comandos específicos a través de Rosetta:
arch -x86_64 ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer