mac hping3报Sorry, this hping binary was compiled w...
hping3 Sorry, this hping binary was compiled without TCL scripting support
解决:
brew uninstall hping
brew install tcl-tk
brew install libpcap
echo 'export PATH="/usr/local/opt/tcl-tk/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/tcl-tk/lib"
export CPPFLAGS="-I/usr/local/opt/tcl-tk/include"
export PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig"
cd ~
mkdir hping
cd hping
git clone https://github.com/antirez/hping.git
vim configure
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} ]
./configure
make
sudo make install
如果遇到:
mac Read-only file system
解决:https://www.zuoer.xin/?post=115
hping
管理员已关闭本篇文章评论!