I've installed hping
app via homebrew.
When I do brew list I get this response:
$ brew list
.... ... .... hping ... .... ...
however when I run my hping this happens.
$ hping
zsh: command not found: hping
and also this:
$ brew info hping
hping: stable 3.20051105
http://www.hping.org/
/usr/local/Cellar/hping/3.20051105 (9 files, 196K) *
Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/hping.rb
I tried reinstalling it but it doesn't work. Very weird how this is possible. Couldn't find anything related to this. Any ideas ?
Alternatively, you can also insert /usr/local/bin before the first line of /etc/paths to change the global default paths order, for all users and all major shells. An admin password will be required if you modify the file. If everything is good, you should see no warnings, and a message that you are "ready to brew!".
Manage your command-line utilities with brew Homebrew boasts that it "installs the stuff you need that Apple (or your Linux system) didn't" install by default. Installation happens with the brew command, which gives us access to thousands of command-line utilities, but not more complex applications.
Add /usr/local/sbin
to $PATH
.hping
binaries are installed in /usr/local/sbin
, not in /usr/local/bin
.
EDIT: As @veslam says, you can add sbin by PATH=$PATH:/usr/local/sbin
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With