直升机,
我一直试图在Mac上安装tmux,我得到以下内容
**Lukes-Air:Haskell Luke$ brew install tmux**
Warning: tmux-2.1 already installed, it's says it's not linked
所以我试试
**Lukes-Air:Haskell Luke$ brew link tmux**
Linking /usr/local/Cellar/tmux/2.1...
Error: Could not symlink etc/bash_completion.d/tmux
/usr/local/etc/bash_completion.d is not writable.
Lukes-Air:Haskell Luke$
然后我尝试
**Lukes-Air:Haskell Luke$ sudo brew link tmux**
Error: Cowardly refusing to 'sudo brew link'
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
我也试过
**Lukes-Air:Haskell Luke$ brew link --overwrite tmux**
Linking /usr/local/Cellar/tmux/2.1...
Error: Could not symlink etc/bash_completion.d/tmux
/usr/local/etc/bash_completion.d is not writable.
......任何人都知道如何解决这个问题?
答案 0 :(得分:2)
我想通了
I did chmod 777 /usr/local/etc/bash_completion.d
然后brew链接tmux工作了!