LoginSignup
4
4

More than 5 years have passed since last update.

brew install nmapで/usr/local/share/man/de/man1 is not writableとなる問題

Posted at

sierraしてbrewでnmap入れ直したらエラーでた

% brew install nmap
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
abcm2ps                    discount                   plowshare                

==> Downloading https://homebrew.bintray.com/bottles/nmap-7.12.sierra.bottle.tar
######################################################################## 100.0%
==> Pouring nmap-7.12.sierra.bottle.tar.gz
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
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p /Users/shinya/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/shinya/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Summary
🍺  /usr/local/Cellar/nmap/7.12: 727 files, 23M

/usr/local/share/man/de/man1のユーザを変えれば大丈夫らしい.

% ls -la /usr/local/share/man/ | grep de
drwxrwxr-x    3 root    wheel    102  4  2 02:00 de/
% sudo chown -R $USER /usr/local/share/man/de
% brew link nmap
Linking /usr/local/Cellar/nmap/7.12... 26 symlinks created

参考

brew install nmap で発生したインストール時のエラーをchownで解決

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4