MAC 10.11 OSX EI Brew安装环境问题汇总

  1. 权限问题

全部格掉重装的EI Capitan,然后把开发的代码再COPY过来,问题如下

drwxrwxrwx@  47 Ben  staff      1598 10 16 16:08 Dashboard

这个目录的权限和用户组全部对的,但是phpstorm编辑器打开这个目录,就是无法生成配置.idea的文件

一直报

Unable to save settings: Failed to save settings. Please restart PhpStorm

这个错误,我手动重新指定用户组,再手动改权限

chown -R Ben:staff Dashboard

chmod -R 777 Dashboard

    解决办法:
chmod -R -a "group:everyone deny add_file,delete,add_subdirectory,delete_child,writeattr,writeextattr,chown" "Users/myusername"

通过上上命令来修改权限

2. Mysql问题

Mysql 安装后无法link,执行”brew docker”报如下问题:

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/man/man8/mysqld.8
/usr/local/share/man/man8 is not writable.

执行好事命令解决问题:

sudo chown -R `whoami` /usr/local

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.