Java/JDK for the Apple Silicon chips

A command line approach (thanks to the Homebrew team and the hard work of @vladimir-kempik and other openjdk contributors on the JEP-391 branch) # Install Homebrew /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” # Install OpenJDK brew install openjdk Verify it’s installed: $(brew –prefix openjdk)/bin/java –version Verify it’s for the arm64 hardware: file $(brew –prefix openjdk)/bin/java # … Read more

“zsh: illegal hardware instruction python” when installing Tensorflow on macbook pro M1 [duplicate]

This worked for me after trying a bunch of solutions to no avail. Step 1 Using pyenv install python version 3.8.5 and set it as your default python version. This tutorial(https://realpython.com/intro-to-pyenv/) is helpful for getting pyenv configured properly. Step 1.1 Use this post(https://github.com/pyenv/pyenv/issues/1446) if you have troubles running pyenv in zsh. Step 1.2 Once you … Read more

How to run the Homebrew installer under Rosetta 2 on M1 Macbook

Got an answer from a developer in the Homebrew github https://github.com/Homebrew/brew/issues/9173 arch -x86_64 /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)” Use this to install packages: arch -x86_64 brew install <package> If you have not yet installed Rosetta 2 to emulate Intel CPUs on ARM Macs, you will get the error arch: posix_spawnp: /bin/bash: Bad CPU type in … Read more

Docker (Apple Silicon/M1 Preview) MySQL “no matching manifest for linux/arm64/v8 in the manifest list entries”

Well, technically it will not solve your issue (running MySQL on ARM), but for the time being, you could add platform to your service like: services: db: platform: linux/x86_64 image: mysql:5.7 … Alternatively, consider using MariaDB, which should work as a drop-in replacement like e.g. this: services: db: image: mariadb:10.5.8 … Both ways work for … Read more

Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)

For what it’s worth, before installing Homebrew you will need to install Rosetta2 emulator for the new ARM silicon (M1 chip). I just installed Rosetta2 via terminal using: /usr/sbin/softwareupdate –install-rosetta –agree-to-license This will install rosetta2 with no extra button clicks. After installing Rosetta2 above you can then use the Homebrew cmd and install Homebrew for … Read more