Solution to abnormal installation of Apple M1 chip software

Mac friends who have the Apple M1 chip may encounter some abnormal situations when installing the software. Below, Zuo Zuo sorted out several abnormal situations that may be encountered and solutions for application crashes. Hope to help the friends solve the problem.

Installation abnormal

Exception 1

提示 zsh: bad CPU type in executable:xxx

Reason: This is because Rosetta 2 is not installed on the computer.

Solution: Open the terminal, execute the following command, and install it to solve it.

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Exception 2

Prompt  zsh: no such file or directory: Volumes/xxxx/install

Reason: This is usually caused by installing Oh My Zsh but not updating the user configuration environment.

Solution: Open the terminal, execute the following command, exit the terminal after the execution is complete, and then re-run the terminal to make it take effect.

PATH=/bin:/usr/bin:/usr/local/bin:${PATH} 

Application crashes

If the application crashes, the following prompt appears:

e67a6b940641d03c9fcca686ec928efc.jpeg

1. Open the Finder-application, find the crashed application, right-click on the application icon, and click "show profile".

491d1b96436c9f2b6ac79be242852af8.jpeg

2. Check "Open with Rosetta"

8b4fb7e9f2a2973da447df1188a6a364.jpeg

If you don't have this option, just open the terminal and execute the following command to install it:

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Guess you like

Origin blog.51cto.com/15118280/2667447