MAC安装软件,报错ermission denied @ unlink_internal

1. 问题

在mac上,我通过以下命令安装Ansible

# brew install Ansible

出现异常

Pouring gdbm-1.15.high_sierra.bottle.tar.gz
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ unlink_internal - /usr/local/bin/gdbm_dump
Error: Permission denied @ unlink_internal - /usr/local/bin/gdbm_dump

2. 解决方法

# sudo chown -R $(whoami):admin /usr/local

# brew update

# brew link gdb

# brew install Ansible
相关文章
相关标签/搜索