1
1
I would like to install gcc
with homebrew
on a MacBook Pro (OS X 10.10.3) and ran into this:
mach:gcc mh$ brew install gcc
Warning: gcc-4.9.2_1 already installed, it's just not linked
mach:gcc mh$ brew link gcc
Linking /usr/local/Cellar/gcc/4.9.2_1...
Error: Could not symlink lib/gcc/4.9
/usr/local/lib/gcc is not writable.
What can I do? (adjusting the permissions of /usr/local/lib/gcc
?
Thanks for helping. I think it should be
-R
(uppercase). Before changing permissions, I checked (in the Terminal) and they were already set correctly, but executingchown
indeed helped. Seems strange. – Marius Hofert – 2015-05-10T20:11:54.913@MariusHofert I've fixed typo, thanks. Sometimes when you run
brew
withsudo
, it breaks the permissions, so you've to re-run thechown
again then. – kenorb – 2015-05-10T20:13:52.190