Are you sure you are in a native terminal when running it? (Use 'arch' command to check.)
Tips and Tricks to Set Up Your Apple M1 for Development
Courier's Software Engineer Chris Gradwohl details some tips and tricks around setting up a new Apple M1 machine for development.www.courier.com
You can force a build from source but as far as I know only matching architectures will be downloaded through the formulas. Do you have an example were that is not the case?yep, says arm64.
Is there perhaps a command to "force" the ARM64 version to be installed or is this not possible?
Not sure if you mean install the ARM version of homebrew itself, or ensure the packages are ARM-only?How do I force brew to install the ARM64 version instead of the x86 version?
brew install <app_name> doesn't always install the M1 native version while it is available if I check the developer site.
Isn’t everything on brew.sh open source? Can’t you download the project and compile it for Arm?Brew should install the appropriate version for the M1 metal...the part you're going to run into problems is with the casks. Not all the casks or kegs are compiled for native ARM64 execution...if that is the case, the x86 version is installed with Rosetta support.
Running into this problem with my current dev stack...fun times.
Also, just to make sure..you didn't create a new terminal application and checked the "Open using Rosetta". If so, that will pretty much guarantee (from my experience) that you'll be running under x86 intel mode.
Hope that helps!
Umm without going into a long and boring discussion on software development and compiling for different architectures, the answer is a hypothetical "Yes" but in reality a "Not really worth the effort" with lots of caveats.Isn’t everything on brew.sh open source? Can’t you download the project and compile it for Arm?
Got it. For anything I really need that runs a lot of the time I would make the effort but a lot of stuff will run only occasionally and the Rosetta version is fine.Umm without going into a long and boring discussion on software development and compiling for different architectures, the answer is a hypothetical "Yes" but in reality a "Not really worth the effort" with lots of caveats.
I thought what you install with "brew install" is open-source, but not what you install with "brew install --cask". Am I wrong?Isn’t everything on brew.sh open source?
No idea. I think you can install any application with a cask but I don't know if the brew project will let you publish the cask.I thought what you install with "brew install" is open-source, but not what you install with "brew install --cask". Am I wrong?
Brew x86_64 is installed and migrated to /usr/local. The AMR64 version is installed in /opt/homebrew.When I did the user migration from my x86 mac to my M1, I found that the x86 homebrew was migrated over. I found that just installing the ARM homebrew wasn't a great way to go (it didn't automatically update to M1 versions, etc.), so I completely removed homebrew and started over. That has worked out well, and I think I'd recommend it for anyone making the migration to M1 from x86.
That is a misleading statement...many of the casks/kegs have not been ported over to ARM64. I run into this problem consistently...it will be a while before there is full support for ARM (it's getting there...slowly).Brew x86_64 is installed and migrated to /usr/local. The AMR64 version is installed in /opt/homebrew.
Most every package has been ported by now. After migration I would uninstall the old x86 homebrew and install the new.
I have both with the x86 version aliased as iBrew. But as all packages are migrated there is nothing installed there and I will likely get rid of it in my next housecleaning.
Btw, I wish apple would stop messing around w/ the local installation directories. Kinda causes havoc when you have your tools all set-up an then...no bueno.
Forcing the use of /opt/... from /usr/local. Security and permissions that require a day hunting down what new policies they have implemented. The fun dev/ops stuff that really just burns a day with a ton of searching and trials.What exactly do they mess with? Can't say I ever had any issues here? From what I've seen they follow UNIX guidelines quite precisely?
Forcing the use of /opt/... from /usr/local. Security and permissions that require a day hunting down what new policies they have implemented. The fun dev/ops stuff that really just burns a day with a ton of searching and trials.
I think it was forced because of the stricter security posture Apple took...I know of many other applications that had to make the migration from /usr/local to /opt. I recall pretty vividly when we took ownership of the new 15" MBPs (at that time) and having to find out what was causing things to break only to go back to Apple's change in philosophy.Huch, how did they force it? If I remember it correctly this decision was made solely by brew maintainers because a) they needed a different folder for ARM vs x86 brew and b) they wanted to fix long-standing problem regarding conflicts with unbrewed software in usr/local. IMO I would have preferred them to keep brew in local but the choice has been made…
I think it was forced because of the stricter security posture Apple took...