Тёмный

Install Homebrew Natively on an Apple Silicon M1 Mac 

Noah Rubin
Подписаться 23 тыс.
Просмотров 87 тыс.
50% 1

In this video, I'll show you how to install Homebrew on an Apple Silicon Mac. Homebrew currently doesn't officially support Apple Silicon, so you either have to install it through Rosetta 2, or install it natively with a few extra steps. I discuss the tradeoffs and then show you how to install Homebrew both ways. If you want to see more Apple Silicon content, let me know in the comments!
Check out my new video where I install a bunch of tools on Apple Silicon using Homebrew: • Is Apple Silicon M1 Re...
Command to install native Homebrew:
/bin/bash -c "$(curl -fsSL gist.githubusercontent.com/nr...)"
Feel free to audit my script here:
gist.github.com/nrubin29/bea5...
Follow me on Twitter: / nrubin29
Sections:
Intro - 0:00
Native vs. Rosetta - 0:54
Installing Homebrew on Rosetta - 2:18
Installing Homebrew Natively - 2:50
Potential PATH Problems - 3:49
Conclusion - 4:33

Наука

Опубликовано:

 

17 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 131   
@Floturcocantsee
@Floturcocantsee 3 года назад
Good tip for running the Rosetta 2 version would be to create a simple script in your /usr/local/bin called ibrew which looks like this: #!/bin/sh # run brew in Rosetta 2 arch -x86_64 /usr/local/bin/brew $@ then setting it executable with: sudo chmod +x /usr/local/bin/ibrew
@adityams1659
@adityams1659 3 года назад
u can instead add this in ur .zshrc (if default shell is zsh) or in .bashrc(if default shell is bashrc) rbrew(){ arch -x86_64 /usr/local/bin/brew $@ } nbrew(){ /opt/homebrew/bin/brew $@ } where rbrew is rosetta2 brew and nbrew is the native brew!
@user-ed3xf3em2j
@user-ed3xf3em2j 3 года назад
Thanks for sharing! I also recommend putting the following lines of scripts in .zshrc file when you have the native/rosetta modes already seperated in your iTerm2 profiles, thus it automatically sets the corresponding brew version at startup of the corresponding terminal profile: # in .zshrc file arch=$(uname -m) if [[ $arch == x86_64* ]]; then alias brew='/usr/local/bin/brew' elif [[ $arch == arm* ]]; then alias brew='/opt/homebrew/bin/brew' fi
@psaratscheff
@psaratscheff 3 года назад
Genius to start with the future-proof explanation. Thanks!
@tejasn3835
@tejasn3835 3 года назад
great video and amazing intro. short and to the point just ran the home-brew command it is officially supported natively for m1 Macs !!
@davetube75
@davetube75 3 года назад
Simple and straight to the point. Thanks for doing this video and writing the script!
@lon3r1969
@lon3r1969 3 года назад
Outstanding Noah! Finally I got excellent results with your video. Thanks!
@tylerarrigoni7700
@tylerarrigoni7700 3 года назад
Thanks for saving me a few minutes. Nice and concise. Well done!
@BangMaster96
@BangMaster96 3 года назад
Thank You. This was tremendously helpful
@rezaperdana7
@rezaperdana7 3 года назад
Thank you for making this video. Looks like native arm64 brings more joy
@aryanchaudhary919
@aryanchaudhary919 3 года назад
You’re doing god’s work man :) Let the videos rolling!
@AliA-ms3ej
@AliA-ms3ej 3 года назад
I didn't have success installing it natively (it threw me an already exists error) but was able to install Rosetta 2 successfully. Thanks.
@carlosdaniellondonoavila4139
@carlosdaniellondonoavila4139 2 года назад
Thank you very much, It was very helpful
@nro337
@nro337 3 года назад
Great video bud! Very helpful information here
@ZabdiServin
@ZabdiServin 2 года назад
Thanks for doing this video, it was helpful
@douglas5097
@douglas5097 3 года назад
Amazing video, man. Thank you very much!
@DennyFreak
@DennyFreak 2 года назад
thanks noah, very helpful 👍🏻
@amitajgaonkar4308
@amitajgaonkar4308 3 года назад
That was insightful. Thanks
@Rickety3263
@Rickety3263 3 года назад
Thank you for this vid! ❤️❤️
@gayashan
@gayashan 2 года назад
Nice explanation 😊
@catieclark9085
@catieclark9085 3 года назад
Thx mate, very helpful.
@majid0912
@majid0912 3 года назад
Thank you for the video.
@ritwikabanerjee8232
@ritwikabanerjee8232 3 года назад
You saved my day
@mtsayno2925
@mtsayno2925 3 года назад
Thank you so much!!!!!
@MisoAntro
@MisoAntro 3 года назад
Thanks for the video. One question I do have is which option is best for future compatibility? Would the workarounds for the Arm version cause any problems in the future? I see it's in opt/homebrew/ but will brew want to be there in the future when it supports Apple silicon fully? I'm so unsure 😆
@ahembd1
@ahembd1 Год назад
נוח היקר, אתה ממש בן אדם מדהים! המון תודות (כמו שאומרים ב״סלנג״) בעברית.
@monara97
@monara97 3 года назад
Thank you
@andyantoniopaz8938
@andyantoniopaz8938 3 года назад
thanks for you help
@franetica123
@franetica123 3 года назад
Thank you!!!
@antonioepifani9653
@antonioepifani9653 3 года назад
very useful
@josalt
@josalt 3 года назад
Thanks
@tuobraun
@tuobraun 3 года назад
Hi, thank you for the video. Can Carthage be easily installed via brew on Apple Silicon M1?
@thallesrangel1241
@thallesrangel1241 3 года назад
Thanks.
@navarrodba
@navarrodba 2 года назад
Thanks for the video. How can I uninstall old brew that came with my restored system from timemachine?
@josephgarza5973
@josephgarza5973 3 года назад
Hey Noah! I really appreciate the video. I would like to install both versions of homebrew and would really appreciate if you could answer a couple of questions for me, please! 1. Do I absolutley need a mouse to obtain better control of certain features as a programmer/ developer? For example, in the beginning of the video you prompt us "to right click on the terminal to check the (open using Rosetta) if we want to download homebrew NATIVELY. Question is, do I absolutely need / do you advise me to have a mouse to obtain better command of tools I will be using as a developer / programmer? 2. If I am not able to make that pop-up box show that you make appear by right clicking on terminal, and checking "open using Rosetta", will I encounter issues that will take me right back to the beginning?
@douglasmstewart
@douglasmstewart 3 года назад
Is one way more beneficial over the other? I haven't touched a Mac in years until my M1 showed up today. Im just wondering if one way has any more headaches than the other
@trevtheking
@trevtheking 3 года назад
ty :)
@douglasmstewart
@douglasmstewart 3 года назад
Well, as of today, no error message in non-Rosetta terminal when it comes to installing and it seems to automatically install into /opt/homebrew as they suggested on their homepage.
@wanyansu
@wanyansu 3 года назад
I followed the steps to install Homebrew natively but after that, when I tried to brew install Python or RU-vid-dl, it has an error message saying no bottle available!, did I do something wrong?
@josecigarro2679
@josecigarro2679 3 года назад
Can you give us a better explanation about Homebrew natively installation ? Thanks
@niejessica4002
@niejessica4002 3 года назад
Hello!!! Tks so much as I have installed it successfully by using Rosetta2. But when I brew install pkg-config which comes out an error:can not install under Rosetta2 in ARM default prefix(/opt/home brew). Does this mean I have to install home brew by not using Rosetta2?
@moseshu6917
@moseshu6917 3 года назад
can the apple M1 support tensorflow2.x? I use pip install tensorflow==2.2.0,but it gave me error while importing tensorflow as tf, the error is " illegal hardware instruction python",how to solve it?
@chrisl_ca
@chrisl_ca 3 года назад
I have a question, do you know how to uninstall the Homebrew installed by rosseta2? Thanks.
@hihihi82
@hihihi82 3 года назад
Hi, I see some people propose to duplicate the terminal and rename it as rosetta terminal, in this video do we use the original terminal ? thanks
@king_Kylfa
@king_Kylfa 3 года назад
I had trouble trying to point towards the rosetta brew. it gave me the command automatically for arm but its just arch -arm64 brew install (whatever)
@tailee3028
@tailee3028 3 года назад
I'm trying to go native, first and see how far I get. I've got a global `.Brewfile` with many formula and casks, and am using that to setup this new machine from scratch. Many formula worked and a few didn't. But weirdly, casks are REALLY SLOW to install. I would have thought they should be much faster than formula as no compilation is required. Most are just download, unzip and move to `/Applications`, or download and run a `.pkg` installer. I don't see ANYTHING using more than ~5% CPU in Activity Monitor. Has that been your experience with casks?
@vladmatveeff2099
@vladmatveeff2099 3 года назад
how to find glue and glfw files? usually they are in /usr/local/Cellar but this path doesn't exist for me and spotlight doesn't show it as well
@saranshdhar2027
@saranshdhar2027 3 года назад
Sir is the M1 chip mac good for a computer science student as iam a 1st year student or the intel chip is better will be helpful if you reply🙏
@pereantoniborrasexposito1374
@pereantoniborrasexposito1374 3 года назад
Hello! I need to install UPX but I didn't find a way to do it, I have gone crazy with this. Do you know how could I install it with brew?? Thank you!!! (I have a MacBook Pro M1)
@mrzouz
@mrzouz 3 года назад
pretty cool and detailed, Just for future videos try to make the sound volume higher, I can barely hear you wearing headphones with 100% volume
@NoahRubinCoding
@NoahRubinCoding 3 года назад
Thanks for the feedback, I’ll fix it next time.
@qiuzhulu2033
@qiuzhulu2033 3 года назад
Hey. I run my shell with Rosetta, but it come the same message like without Rosetta. Anyone has the same problem?
@miyulyyyyoliu
@miyulyyyyoliu 3 года назад
My question is if with this process, I can use the x-force to install AutoCAD it would be a great discovery, please help me , I have already subscribed to your Chanel , thank you
@CSBDEEPNITINMAHESHWARI
@CSBDEEPNITINMAHESHWARI 3 года назад
Now the support for M1 has come on home brew just the path will be /opt/homebrew/bin/brew which you have to set the path if terminal doesn't recognises the brew command after installation
@NoahRubinCoding
@NoahRubinCoding 3 года назад
Thanks for letting me know. I’ll mark this video as outdated
@gunjanmakwana842
@gunjanmakwana842 3 года назад
I am getting an error which says: "zsh: command not found: curl" What should I do?
@sbrazenor2
@sbrazenor2 3 года назад
I keep getting some kind of a file error when I try to run the script from the clipboard. It's basically telling me that the file isn't found. 🤔
@mueez.mp4
@mueez.mp4 3 года назад
Why am I watching this? I'm neither a developer (at the moment) nor have an M1 Mac.
@NoahRubinCoding
@NoahRubinCoding 3 года назад
Maybe this will inspire you!
@josephgarza5973
@josephgarza5973 3 года назад
@@NoahRubinCoding M1s are pretty darn cool actually...
@josephgarza5973
@josephgarza5973 3 года назад
@@NoahRubinCoding I just got mine a couple of days ago and it is a very nice machine.
@king_Kylfa
@king_Kylfa 3 года назад
mentally preparing yourself for when you do
@Rickety3263
@Rickety3263 3 года назад
Also for the homebrew crew... on M1, how is qbittorrent, darktable, and digikam?
@clickbaitking6770
@clickbaitking6770 3 года назад
qbittorrent works fine! Slightly slower speed I think...
@jaimecaballero2577
@jaimecaballero2577 2 года назад
omg I live in the future
@manshaaggarwal3957
@manshaaggarwal3957 3 года назад
i want to install oracle db on mac m1 sillicon .. help me with that
@NextGlobalization
@NextGlobalization 3 года назад
Macbook m1 has solved this issue officially. I just installed homebrew without check the Rosette 2 option.
@takurotim3496
@takurotim3496 3 года назад
I stumbled into this warning: "Warning: /opt/homebrew/bin is not in your PATH." Does anyone know how to fix it?
@dreadful_hero
@dreadful_hero 3 года назад
@@takurotim3496 Copy/paste suggested command to set path then restart terminal. Run 'brew -v' to verify.
@eklavyasharma
@eklavyasharma 3 года назад
As a software engineering point of view, do you really think is it good time for buying M1 or wait for next release of Macs?
@NoahRubinCoding
@NoahRubinCoding 3 года назад
I’ll have a dedicated video out about this in a few days, but the short answer is that M1 Macs are ready for developers. Out of all of the languages and tools I’ve installed and tested, only Docker and other virtualization programs don’t work (and Docker is working on support now).
@eklavyasharma
@eklavyasharma 3 года назад
@@NoahRubinCoding One more question... Mac Air base model would be fine for writing codes ? I won't be rendering 8k videos for sure.
@NoahRubinCoding
@NoahRubinCoding 3 года назад
I’ve been using the base model MacBook Air and it’s been great so far. I haven’t fully put it through its paces yet and I’m a bit skeptical about having only 8 gigs of ram, but I haven’t run into any issues yet. I might make another video where I run some benchmarks to compare the base model MacBook Air to my Intel MacBook Pro, so be on the lookout for that
@bern047
@bern047 3 года назад
@J No need for any stress, it is bad for your health, M1 never gets stressed out thanks to ARM, it stays super cool and relaxed and just delivers what ever you want quickly unlike other Macs and PCs including Linux that get very hot and stress the user, just enjoy using the ARM M1, I love my new Mac Mini M1 best buy ever
@sohnkejulius6014
@sohnkejulius6014 3 года назад
it can also work, if u uninstall and install it !!
@MrIrishlad98
@MrIrishlad98 3 года назад
I live in the future!
@gerdje1976
@gerdje1976 2 года назад
i did it all, but the computer keep saying no operation system found
@engelgortz6638
@engelgortz6638 2 года назад
Why does the rosetta method still give me 'error: not a valid ref'
@karansingh-qd9js
@karansingh-qd9js 3 года назад
Please make video on c/c++ full installation video on m1 air. Please please please Love from india
@NoahRubinCoding
@NoahRubinCoding 3 года назад
I may be mistaken, but I believe they should be installed when you install Xcode or the Xcode Command Line Tools
@sajinkowser7228
@sajinkowser7228 3 года назад
Great video! However after installing brew even if I do brew install git, it says not yet supported by ARM processor. Any clarification?
@NoahRubinCoding
@NoahRubinCoding 3 года назад
I believe git is bundled with the Xcode Command Line Tools
@sajinkowser7228
@sajinkowser7228 3 года назад
@@NoahRubinCoding yea sorry I JUst used got as a placeholder, doesn’t work if I do brew install anything. It works for you? Brew help works.
@NoahRubinCoding
@NoahRubinCoding 3 года назад
Are you getting an error message?
@Madhu-mq3yd
@Madhu-mq3yd 3 года назад
I really cannot install the home brew please help me sirrr
@ohdude6643
@ohdude6643 3 года назад
I wonder if something like that can be done with docker.
@alliejr
@alliejr 3 года назад
Docker is not (yet) support on M1 :-(
@lucasscode
@lucasscode 3 года назад
Hi, I am new using Mac, how I can if this erro since I installed zsh: command not found: brew
@sohnkejulius6014
@sohnkejulius6014 3 года назад
just use the install link again and change the install to uninstall" and then install again! could help
@GerZah
@GerZah 3 года назад
Dude, that was _super_ helpful! I migrated my old Mac to an M1 Mini and I got that error message when just trying to update. The idea of simply switching Terminal to Rosetta mode is something that should be made more prominently. … Question: Is there a way to force running one particular console binary through rosetta? Like "open-with-rosetta brew update" or something like that? The typical x86_64 seem to be doing that automatically, but the brew binary detects that it's run on Arm. … Being able to force the Intel brew updater to run as Intel would remove the need to switch Rosetta on and off for Terminal all the time.
@ANDREW_YHWH
@ANDREW_YHWH 2 года назад
Well, I'll try to summarize it. Friend, when I put: brew install node... at the end of the download I get this message: Running `brew cleanup node`... Disable this behavior by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). Then I put: brew update... and it shows me: Already up-to-date. That means that it is installed and also in the latest version. After: node -v ... and it tells me 17.4.0 Then npm -v and it tells me 8.3.1 After that I didn't want to put another command because I don't know if it installed correctly because of that last message that the terminal shows me when installing node with brew, what should I do?
@bajajuicy
@bajajuicy 2 года назад
I'm getting a 404 error on your install command: "curl: (22) The requested URL returned error: 404"
@rustless_turf9394
@rustless_turf9394 3 года назад
Sir does python 3.9 run natively on arm Mac? What about libraries such as tensorflow? And I would like to know if MYSQL runs natively on arm macs? Thanks.
@NoahRubinCoding
@NoahRubinCoding 3 года назад
I'm working on a video about that now! Python 3.9 and MySQL do indeed run natively! I'm not sure about Tensorflow but I don't see why not as it's just a Python library.
@rustless_turf9394
@rustless_turf9394 3 года назад
@@NoahRubinCoding plz do check it on its native ide instead of checking it on vs code or sublime text. Thanks.
@NoahRubinCoding
@NoahRubinCoding 3 года назад
I ran python3.9 in the terminal and it works. It’s a native arm64 executable.
@rustless_turf9394
@rustless_turf9394 3 года назад
@@NoahRubinCoding Cool! What about MySQL?
@HaseebHeaven
@HaseebHeaven 3 года назад
Why isnt package manager installed on MacOS ? why do we have to install Homebrew anyways it should be pre-installed
@akshatgarg6563
@akshatgarg6563 3 года назад
Are u able to install gcc using brew?
@georgepf
@georgepf 3 года назад
gcc is included in XCode.
@JuliusJames4u
@JuliusJames4u 3 года назад
FFS, not sure what went wrong but now certain programs dont start anymore .....dyld: Library not loaded: @loader_path/../../../../Resources/libConfigurer64.dylib ..... what can i dot? Im totally frustrated... I have brew in the /opt/homebrew folder but when i type the brew command in terminal it cant be found... help please! And your native homebrew install command doesnt work either!!!! 404 error FFS!!!!!
@crazyjosho110
@crazyjosho110 3 года назад
tried running the command in the description but im getting a 404 in the terminal, any tips?
@markliu22
@markliu22 3 года назад
Same
@crazyjosho110
@crazyjosho110 3 года назад
@@markliu22 but i realised i was literally putting the link he put in the command. click the link and follow THOSE commands that the link takes you to and it’ll work. worked for me
@markliu22
@markliu22 3 года назад
@@crazyjosho110 it worked ty sir
@talfrei
@talfrei 2 года назад
nothing happened after I entered the code in Terminal. No error, nothing. WTH?
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 3 года назад
Any alternatives to Homebrew? Always try to think different.
@ruchikandpal8424
@ruchikandpal8424 3 года назад
error: Not a valid ref: refs/remotes/origin/master
@90emcee33
@90emcee33 3 года назад
Hello World...ha, ha I see what you did there.
@harieasswarlakshmidevi3418
@harieasswarlakshmidevi3418 3 года назад
V nize
@Madhu-mq3yd
@Madhu-mq3yd 3 года назад
please send me the script to install it natively brother.
@ayushthummar3309
@ayushthummar3309 3 года назад
now home-brew is working natively on m1 , I just installed it so you do not need script just paste home-brew installation command to terminal
@bergbergberg4976
@bergbergberg4976 3 года назад
no luck for me. ran your script but still wouldn't install brew
@NoahRubinCoding
@NoahRubinCoding 3 года назад
What exactly went wrong? Is there an error message?
@bergbergberg4976
@bergbergberg4976 3 года назад
@@NoahRubinCoding there's no error message. ran your script in GitHub and it asked for password, then it started downloading with the chart thingy shown up. then nothing. when I type which brew. it says brew not found
@NoahRubinCoding
@NoahRubinCoding 3 года назад
Try restarting the terminal. If that doesn’t work, run /opt/homebrew/bin/brew. If that command works, you need to add /opt/homebrew/bin to your PATH. If that command doesn’t work, I’m not sure what’s going on.
@bergbergberg4976
@bergbergberg4976 3 года назад
@@NoahRubinCoding thanks for the help /opt/homebrew/bin/brew worked
@bergbergberg4976
@bergbergberg4976 3 года назад
@@NoahRubinCoding what do you mean by add to path? after i used /opt/homebrew/bin/brew , i can start brew install youtube-dl. is there something i need to do?
@wayneferguson14
@wayneferguson14 3 года назад
I will start using the m1 mac when I can install linux on it where it's not spaying on me
@Rickety3263
@Rickety3263 3 года назад
My future mac is worthless without youtube-dl, ffmpeg and imagemagick
@gam3955
@gam3955 3 года назад
Hi, interesting but sound is very bad !
Далее
Is Apple Silicon M1 Ready for Developers?
9:11
Просмотров 204 тыс.
Hidden FREE Mac Apps!
28:14
Просмотров 167 тыс.
Вопрос Ребром: Сергей Бурунов 2
1:03:47
The Most Legendary Programmers Of All Time
11:49
Просмотров 536 тыс.
Apple won't like this... - Run MacOS on ANY PC
17:49
MacOS Guide For Windows Users
16:42
Просмотров 76 тыс.
iOS 18 Hands-On: Top 5 Features!
12:47
Просмотров 3,9 млн
Advanced macOS Tricks and Utilities Using Terminal!
13:29
Adobe is horrible. So I tried the alternative
25:30
Просмотров 591 тыс.
Треш ПК за 420 000 рублей
0:59
Просмотров 256 тыс.