macOS Error: An unexpected error occurred during the `brew link` step

版权声明:本文为博主原创文章,可以自由转载。 https://blog.csdn.net/u010953692/article/details/89310474
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

Book:~$ sudo mkdir /usr/local/Frameworks
Password:


Book:~$ ls -lh /usr/local/ | grep Frame
drwxr-xr-x   2 root  wheel    64B  4 14 22:18 Frameworks

Book:~$ sudo chown $(whoami):admin /usr/local/Frameworks

Book:~$ ls -lh /usr/local/ | grep Frame
drwxr-xr-x   2 y50  admin    64B  4 14 22:18 Frameworks

Book:~$ brew install python3
Warning: python 3.7.3 is already installed, it's just not linked
You can use `brew link python` to link this version.

Book:~$ brew link python3
Linking /usr/local/Cellar/python/3.7.3... 20 symlinks created
Book:~$ which python3
/usr/local/bin/python3
Book:~$ brew install python3
Warning: python 3.7.3 is already installed and up-to-date
To reinstall 3.7.3, run `brew reinstall python`


参考:

  1. brew 升级应用错误
  2. 2018-05-29 Mac下安装Python3出现Error: An unexpected error occurred during the brew link

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/89310474