普通にインストールするとエラーが発生しました。
$ brew install nmap ... Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink share/man/de/man1/nmap.1 /usr/local/share/man/de/man1 is not writable. You can try again using: brew link nmap ==> Summary 🍺 /usr/local/Cellar/nmap/7.70: 807 files, 26.8MB
指示されたように、brew link
してみます。
$ brew link nmap Linking /usr/local/Cellar/nmap/7.70... Error: Could not symlink share/man/de/man1/nmap.1 /usr/local/share/man/de/man1 is not writable.
/usr/local/share/man/de/man1
が書き込めないようです。
chown
で所有者を変更して書き込めるようにします。
sudo chown -R $USER /usr/local/share/man/de
$ brew link nmap Linking /usr/local/Cellar/nmap/7.70... 25 symlinks created
正しくリンクできたようなので、使えるか確認してみます。
$ nmap --version Nmap version 7.70 ( https://nmap.org ) ...
無事、インストールできました。