我正在OSX上安装LightGBM,遵循安装指南。在安装cmake时,Homebrew
给出如下警告信息:
Warning: cmake-3.8.1 already installed, it's just not linked.
然后我尝试:
$brew link cmake
它的意思是:
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.
sudo chown -R $(whoami):admin /usr/local/share/man
。该命令的作用是将/usr/local/share/man
目录下所有文件和子目录的所有者更改为当前用户,并且所属组设置为admin
。 - Mark Setchell