Skip to content

Instantly share code, notes, and snippets.

@hughker
Forked from AKB428/iftop_osx_insrall
Created March 18, 2016 23:54
Show Gist options
  • Save hughker/a39fa912824e500ba0e4 to your computer and use it in GitHub Desktop.
Save hughker/a39fa912824e500ba0e4 to your computer and use it in GitHub Desktop.
iftopをOSXにbrewでイントール
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ brew install iftop
==> Downloading http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/iftop/1.0pre4 --mandir=/usr/local/Cellar/iftop/1.0pre4/share/man
==> make install
==> Caveats
iftop requires superuser privileges. You can either run the program
via `sudo`, or change its ownership to root and set the setuid bit:
$ sudo chown root:wheel /usr/local/Cellar/iftop/1.0pre4/sbin/iftop
$ sudo chmod u+s /usr/local/Cellar/iftop/1.0pre4/sbin/iftop
In any case, you should be certain that you trust the software you
are executing with elevated privileges.
==> Summary
🍺 /usr/local/Cellar/iftop/1.0pre4: 9 files, 124K, built in 14 seconds
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ iftop
-bash: iftop: command not found
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ sudo brew install iftop
Password:
Error: Cowardly refusing to `sudo brew install`
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ sudo chown root:wheel /usr/local/Cellar/iftop/1.0pre4/sbin/iftop
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ sudo chmod u+s /usr/local/Cellar/iftop/1.0pre4/sbin/iftop
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ ln -s /usr/local/Cellar/iftop/1.0pre4/sbin/iftop /usr/local/bin/iftop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment