apple-silicon
How to install SciPy on Apple Silicon (ARM / M1)
It’s possible to install on regular arm64 brew python, you need to compile it yourself. If numpy is already installed (from wheels) you’ll need to uninstall it: pip3 uninstall -y numpy pythran I had to compile numpy, which requires cython and pybind11: pip3 install cython pybind11 Then numpy can be compiled: pip3 install –no-binary :all: … Read more
Forcing docker to use linux/amd64 platform by default on macOS
You can set the environment variable DOCKER_DEFAULT_PLATFORM export DOCKER_DEFAULT_PLATFORM=linux/amd64
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
How to run CocoaPods on Apple Silicon (M1)
2022 May Update If you can use Homebrew to manage cocoapods. # Uninstall the local cocoapods gem sudo gem uninstall cocoapods # Reinstall cocoapods via Homebrew brew install cocoapods 2021 Solution # STEP 1: Install ffi sudo arch -x86_64 gem install ffi # STEP 2: Re-install dependencies arch -x86_64 pod install Additional Information #1 For … Read more