hping icon indicating copy to clipboard operation
hping copied to clipboard

Sorry, this hping binary was compiled without TCL scripting support :(

Open 8e191a3f-32be-441e-b10b-709124c01dbe opened this issue 6 years ago • 19 comments

I install hping using: brew install hping , and when I run it I got the error: Sorry, this hping binary was compiled without TCL scripting support.

do this in terminal: brew uninstall hping cd ~ mkdir hping cd hping git clone https://github.com/antirez/hping.git brew install tcl-tk brew install libpcap ./configure make sudo make install hping

ghost avatar Jun 15 '18 06:06 ghost

i am getting the same error even after manual installation

# hping3
Sorry, this hping binary was compiled without TCL scripting support

hping3 -v is showing the explicit message that there is no TCP support

# ./hping3 -v
hping version 3.0.0-alpha-1 ($Id: release.h,v 1.4 2004/04/09 23:38:56 antirez Exp $)
NO TCL scripting support compiled in  ##<<<< look here

max-reznichenko avatar Jul 02 '18 20:07 max-reznichenko

@fugiefire

user@device:~/hping/hping$ sudo make install
cp -f hping3 /usr/sbin/
cp: /usr/sbin/hping3: Operation not permitted
make: *** [install] Error 1

47k avatar Oct 12 '18 08:10 47k

Did fugiefire solution work?

shelbiedatta avatar Nov 18 '18 17:11 shelbiedatta

@shelbiedatta Yes it works but @47k also mentioned the install error. From El Capitan onwards you can no longer install or copy flles into /usr/sbin due to SIP (System Integrity Protection) - refer to this post

To fix this, take a look at Makefile in the source, add a local in front of all the sbin and after that make sure your usr/local/sbin is in your $PATH.

cp -f hping3 /usr/local/sbin/
	chmod 755 /usr/local/sbin/hping3
	ln -s /usr/local/sbin/hping3 /usr/local/sbin/hping
	ln -s /usr/local/sbin/hping3 /usr/local/sbin/hping2

Then, run sudo make install again, that should work.

thepoppingone avatar Nov 25 '18 15:11 thepoppingone

image bros, it also can't work...

N0ooooone avatar Jan 17 '19 14:01 N0ooooone

image if I run "sudo", it will work, but I don't wanna sudo all the time..., any ideas? bros

N0ooooone avatar Jan 17 '19 14:01 N0ooooone

@fugiefire

user@device:~/hping/hping$ sudo make install
cp -f hping3 /usr/sbin/
cp: /usr/sbin/hping3: Operation not permitted
make: *** [install] Error 1

bro of second floor, if I do the same command, I can't find ./configure file to run this cmd

N0ooooone avatar Jan 17 '19 14:01 N0ooooone

@Vs0sV I mentioned the SIP issue above, have you tried that?

thepoppingone avatar Jan 17 '19 15:01 thepoppingone

Tried with all above, still cannot work.

kekulyh avatar Apr 01 '19 17:04 kekulyh

Ok, I will try it later, thanks bro.

在 2019年1月17日,23:33,Poh Peng Ric Wang [email protected] 写道:

@Vs0sV https://github.com/Vs0sV I mentioned the SIP issue above, have you tried that?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/antirez/hping/issues/34#issuecomment-455214563, or mute the thread https://github.com/notifications/unsubscribe-auth/AVM4902p7ikGokWJ-dgGI46udoMk0YBaks5vEJfSgaJpZM4SD5-T.

N0ooooone avatar Apr 03 '19 17:04 N0ooooone

brew install hping is still not working. With Homebrew 2.1.2-64-gbcc5f04 and hping: stable 3.20051105 (bottled). Thanks for your kind help and attention.

caspertsui avatar May 20 '19 04:05 caspertsui

+1

sudosean avatar Oct 30 '19 00:10 sudosean

Any way to solve it? UPDATE: it is working fine, just run a command like "sudo /usr/local/sbin/hping3 -h" and it works.

aleixsr avatar Nov 05 '19 10:11 aleixsr

Note; even if the program says that it was built without scripting, it was not if you followed the steps correctly.

This was the case for me.

TheSneakySniper avatar Nov 26 '19 20:11 TheSneakySniper

do this in terminal: brew uninstall hping cd ~ mkdir hping cd hping git clone https://github.com/antirez/hping.git brew install tcl-tk brew install libpcap ./configure make sudo make install hping

This solution worked for me on Manjaro Linux.

aJesus37 avatar Jan 23 '20 17:01 aJesus37

I found installing hping on OS X via brew required making some changes, due to brew installing tcl-tk in a non standard location.

==> Caveats
tcl-tk is keg-only, which means it was not symlinked into /usr/local,
because tk installs some X11 headers and macOS provides an (older) Tcl/Tk.

If you need to have tcl-tk first in your PATH run:
  echo 'export PATH="/usr/local/opt/tcl-tk/bin:$PATH"' >> ~/.bash_profile

For compilers to find tcl-tk you may need to set:
  export LDFLAGS="-L/usr/local/opt/tcl-tk/lib"
  export CPPFLAGS="-I/usr/local/opt/tcl-tk/include"

For pkg-config to find tcl-tk you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig"

So I had to make the following adjustments to the configure file before I ran the ./configure step:

  1. Line 64, add "/usr/local/opt/tcl-tk/bin/" to the end so the script can find the right tcl binary
  2. Line 66, add "8.6" to the end so the script can get the version of tcl-tk brew downloaded (check in /usr/local/opt/tcl-tk/bin for a file starting with tclsh8.? to get the correct version number.)
  3. Line 84, replace the line with the following, so it can get the right include location
  if [ -e /usr/local/opt/tcl-tk/lib/tcl${TCL_VER} ]
  then
      TCL_INC="-I/usr/local/opt/tcl-tk/lib/tcl${TCL_VER}"
  elif [ -e /usr/include/tcl${TCL_VER} ]

Then in the Makefile change all references to /usr/sbin to /usr/local/bin, because on OS X we don't have any rights to write there even as sudo.

After this I could resume the instructions from ./configure. If you've tried this before and failed, be sure and run make clean to remove any artifacts from previous attempts.

colinmo avatar Mar 20 '20 03:03 colinmo

Any patch for Arch linux?

ghost avatar Jan 16 '22 09:01 ghost

@colinmo Hey I know this was a while back, but I'm on my new work laptop (fresh install) and I could not for the life of me remember how I did this before, so THANKS very much for your explanatory post. Very helpful.

I have another issue now (though the binary seems to work), in that I have no man page for hping/2/3 being created so I guess I have to work that out. With so many command line options, a locally-available man page would be super-useful. (edit: 'hping -help' will do it but it's not the same LOL)

Cheers!

petekowalsky avatar Aug 25 '22 01:08 petekowalsky