I'm installing LightGBM on OSX, following the installation guide. While installing cmake, Homebrew
gives such warning message:
Warning: cmake-3.8.1 already installed, it's just not linked.
Then I try:
$brew link cmake
it gives:
Linking /usr/local/Cellar/cmake/3.8.1...
Error: Could not symlink share/man/man7/cmake-buildsystem.7
/usr/local/share/man/man7 is not writable.
Just follow these 4 steps
sudo chown -R $(whoami) $(brew --prefix)/*
brew doctor
brew prune
brew link cmake
The proposition of Mark Setchell to use
sudo chown -R $(whoami):admin /usr/local/share/man
is right. According to the Homebrew troubleshooting page:but the proposition of Nano to use
sudo
is not a good one. According to the Homebrew FAQ: