Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OS X brew installed hping but says command not found

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 ?

like image 308
Marijus Avatar asked Mar 03 '17 10:03

Marijus


People also ask

How do I set the path for BREW on Mac?

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!".

What is brew command in Mac?

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.


1 Answers

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.

like image 73
equal-l2 Avatar answered Sep 24 '22 17:09

equal-l2