简体   繁体   中英

How can i do “brew link fish”

I am using "brew install fish" to install the fish, but it gave me an error:

Error: The brew link step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink . /usr/local/opt is not writable.

You can try again using: brew link fish

So I did "brew link fish", however it is said

Error: Could not symlink . /usr/local/opt is not writable.

The problem is i don't have /usr/local/opt on my computer, am i missing something? 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.

sudo chown -R whoami /usr/local

这对我有用

sudo chown -R (whoami) /usr/local

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM