Last active
March 4, 2018 08:33
-
-
Save AKB428/dbdba5f98645e7539d87 to your computer and use it in GitHub Desktop.
iftopをOSXにbrewでイントール
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Awesome, Thanks mate
Thank you for the help.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for the help :)