55* install Homebrew in native mode (without Rosetta 2) on a fresh Apple M1 Arm computer (MacOS Big Sur)
66* run as: ` curl -s https://raw.githubusercontent.com/pforret/macos_m1_cli/main/install_homebrew_native.sh | bash `
77
8- ## Using native Homebrew
8+ ### Using native Homebrew
99
1010* as long as Homebrew does not officially support Apple M1 ARM architecture,
1111 you will get the following warning every time you try to ` brew install ` a package
2020 any issues you experience while you are running this
2121 unsupported configuration.
2222
23- * you can however install the package by using ` brew1 install ` ,
24- which is short for ` brew --build-from-source install `
25- * the installation will probably work, but it's not guaranteed.
26- You are an early adopter, doing bleeding edge stuff, not for the faint of heart.
23+ * you can however install the package by using ` brew install -s ` ,
24+ which is short for ` brew install --build-from-source `
25+ * the installation will probably work, but it's not guaranteed.
26+ * every time brew stops with "You can try to install ...",
27+ do that first and then run the original brew install again.
28+
29+
30+ Error: [some package]: no bottle available!
31+ You can try to install from source with e.g.
32+ brew install --build-from-source ghostscript
33+
34+ * Remember: you are an early adopter, on the curring edge.
35+ You will tell your grand children about these days.
36+
37+
38+ ### install_homebrew_native.sh from pforret/macos_m1_cli Ⓜ️ 1️⃣
39+ 🍺 If you get a MacOS popup asking to install 'developer tools', please confirm
40+ 🍺 Create a folder for Homebrew ...
41+ 🍺 Download and install Homebrew from Github ...
42+ 🍺 Adding [ /opt/homebrew/bin] to your zsh startup config path
43+ 🍺 Running brew a first time to trigger compilation
44+ Initialized empty Git repository in /opt/homebrew/.git/
45+ HEAD is now at 9db324ab7 Merge pull request #10045 from jonchang/remove-basic-autho
46+ ==> make CC=clang CFLAGS= YACC=yacc -d
47+ 🍺 /opt/homebrew/Cellar/awk/20180827: 7 files, 203.5KB, built in 3 seconds
48+ 🍺 Homebrew was installed as native binary. Version will be > 2.6
49+ HOMEBREW_VERSION: 2.6.2-91-g9db324a
50+ #====================================
51+ 🍺 Installation using 'brew install' will give a warning as long as Homebrew is not yet officially released for M1
52+ 🍺 You can use 'brew install -s' to always build from source and skip that warning
53+ 🍺 You might get build errors, but remember: you are an early adopter!
54+ #====================================
55+ 🍺 Close this terminal and start a new one to make sure brew is in the path
56+
2757
2858## ` uninstall_homebrew_native.sh `
2959
3060* if you prefer running in 'Rosetta 2' mode, you can uninstall the native mode Homebrew.
3161* run as: ` curl -s https://raw.githubusercontent.com/pforret/macos_m1_cli/main/uninstall_homebrew_native.sh | bash `
3262
63+
64+ ### uninstall_homebrew_native.sh from pforret/macos_m1_cli Ⓜ️ 1️⃣
65+ 🧽 Removing [ /opt/homebrew/bin] from your zsh startup config path
66+ 🧽 Deleting Homebrew from [ /opt/homebrew]
67+ Password:
68+ 🧽 Homebrew was uninstalled!
69+
3370## My Homebrew configuration
3471
35- This is my config (on Mac Mini M1):
72+ This is my current config (on Mac Mini M1, 17 Dec 2020 ):
3673
74+ $ brew config
3775 HOMEBREW_VERSION: 2.6.2-91-g9db324a
3876 ORIGIN: https://github.com/Homebrew/brew
3977 HEAD: 9db324ab7a28446debcb407859c9ac184594a772
@@ -54,3 +92,6 @@ This is my config (on Mac Mini M1):
5492 CLT: 12.3.0.0.1.1607026830
5593 Xcode: N/A
5694 Rosetta 2: false
95+
96+ ## More info
97+ * [ Workarounds for ARM-based Apple-Silicon Mac] ( https://github.com/mikelxc/Workarounds-for-ARM-mac )
0 commit comments