When installing cabal packages on OSX 10.11 El Capitan, I get a permission error even though I am using an administrator account.
cabal: /usr/bin/gcc: permission denied
Changing it with chmod command to +rw or adding my account to root group doesn't fix the permission error. I'm able to run gcc --version
just fine.
After much searching and scouring through the interwebs, I stumbled upon a discussion over at Cabal issue tracker. Someone's answer mentioned the rootless feature with El Capitan causing problems.
Here's how to turn off the rootless feature.
csrutil disable; reboot
csrutil disable; reboot
and hit return Reference:
ar
permission errors on OS X 10.11 El Capitan
with GHC 7.8.4
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.