Open JimmiJappe opened 2 years ago
Problem solved with this solution
If you are getting the intel chip error
xcrun: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): tried: '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libxcrun.dylib' (no such file)). then you have to fix your command line tools (CLT). What I did is the following (solution from here):
What I suggest is to uninstall the command line tools (CLT) and re-install them the official way (source).
So do (source):
sudo rm -rf /Library/Developer/CommandLineTools check it uninstalled, you should get an output as follows:
xcode-select -p output
xcode-select: error: unable to get active developer directory, use sudo xcode-select --switch path/to/Xcode.app
to set one (or see man xcode-select
)
then install the command line tools (CLT) again:
xcode-select --install then agree to it and it should download after a couple of minutes. The download should take some time. For me ~13mins.
After that your issues with PyCharm, git, brew and likely other tools will be resolved.
After you have that resolved -- which was causing me issue when trying to install brew -- do what the top answer here recommends: https://stackoverflow.com/a/67271753/1601580 which in a summary is run the bash install of brew and make sure it is in your PATH env variable properly.
Share Follow answered Feb 7 at 23:30 user avatar Charlie Parker 13k4141 gold badges137137 silver badges247247 bronze badges Add a comment
Hi, I keep getting an error when trying ti install homebrew on my M1 macbook
Last login: Tue Mar 22 18:13:33 on ttys001
The default interactive shell is now zsh. To update your account to use zsh, please run
chsh -s /bin/zsh
. For more details, please visit https://support.apple.com/kb/HT208050. Jimmis-MacBook-Air:~ jimmijappe$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" ==> Checking forsudo
access (which may request your password)... Password: Sorry, try again. Password: ==> This script will install: /opt/homebrew/bin/brew /opt/homebrew/share/doc/homebrew /opt/homebrew/share/man/man1/brew.1 /opt/homebrew/share/zsh/site-functions/_brew /opt/homebrew/etc/bash_completion.d/brew /opt/homebrewPress RETURN/ENTER to continue or any other key to abort: ==> /usr/bin/sudo /usr/sbin/chown -R jimmijappe:admin /opt/homebrew ==> Downloading and installing Homebrew... xcrun: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): tried: '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))). Failed during: git init -q Jimmis-MacBook-Air:~ jimmijappe$