[英]How can i do “brew link fish”
I am using "brew install fish" to install the fish, but it gave me an error: 我正在使用“ brew install fish”安装鱼,但它给了我一个错误:
Error: The
brew link
step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink .错误:
brew link
步骤未成功完成公式已构建,但未符号链接到/ usr / local无法符号链接。 /usr/local/opt is not writable./ usr / local / opt是不可写的。
You can try again using: brew link fish
您可以使用以下方法重试:brew link fish
So I did "brew link fish", however it is said 所以我做了“酿鱼”,但是据说
Error: Could not symlink .
错误:无法符号链接。 /usr/local/opt is not writable.
/ usr / local / opt是不可写的。
The problem is i don't have /usr/local/opt on my computer, am i missing something? 问题是我的计算机上没有/ usr / local / opt,我缺少什么吗? How can I link fish to shell?
如何将鱼链接到贝壳?
Thanks! 谢谢!
Alright. 好的。 It turns out brew does not like sudo, but brew do need to run at "local", so I changed my path to local in terminal, then redo this, then it works.
事实证明brew并不喜欢sudo,但是brew确实需要在“ local”下运行,因此我在终端中将路径更改为local,然后重做它,然后就可以了。
sudo chown -R
whoami
/usr/local须藤chown -R
whoami
/ usr / local
这对我有用
sudo chown -R (whoami) /usr/local
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.