FAST Hello World - Preparation for software's running environment
Ubuntu 14.04 安装 libpcap-1.1.1 & libpnet-1.1.4 & NMAC function lib
参考:
libpcap-1.1.1
$ cd libpcap-1.1.1
$ ./configure
Hint:
出现错误:
configure: error: Your operating system's lex is insufficient to compile
原因是缺少flex包,通过以下命令安装:
sudo apt-get install flex
解决问题。
$ make
Hint:
出现错误:
make: yacc: Command not found
原因是缺少bison包,安装即可:
$ sudo apt-get install bison
解决问题。
$ make install
至此,libpcap-1.1.1 安装完毕。
libpnet-1.1.4
$ cd libnet-1.1.4
$ ./configure
$ make
$ make install
至此,libnet-1.1.4 安装完毕。
NMAC function lib
$ cd nmac
$ ./Compile
debug工具:
$ ./debug
root@ubuntu:~/workspace/nmac# ./debug
Select the NetMagic ID:1
Controller IP:192.168.2.106
Controller MAC:00:0c:29:8c:5a:ea
NetMagic IP:136.136.136.136
NetMagic MAC:88:88:88:88:88:88
至此,NMAC function lib安装完毕。
2017.5.1
To improve is to change, to be perfect is to change often.