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} ]
Xnip2020-08-24_12-46-19.jpg
./configure
make
sudo make install

如果遇到:

mac Read-only file system

解决:https://www.zuoer.xin/?post=115

hping

版权声明:若无特殊注明,本文皆为《 zuoer 》原创,转载请保留文章出处。
本文链接:mac hping3报Sorry, this hping binary was compiled without TCL scripting support https://www.zuoer.xin/?post=116
正文到此结束

热门推荐

管理员已关闭本篇文章评论!