1. 下载tcpreplay-3.4.2.tar.gz 。
2. 解压:tar -xzfv tcpreplay-3.4.2.tar.gz
3. 进入解压后的文件:cd tcpreplay-3.4.2
4. yum install -y gcc gcc-c++ 配置:./configure (在这里遇见一个错误提示:configure: error: libpcap not found)
5. 安装:libpcap(下载libpcap-1.1.1.tar.gz,解压)
6. 进入libpcap-1.1.1 中,
配置: ./configure.
(在此遇见错误提示:configure: error: Your operating system's lex is insufficient to compile libpcap. flex is a lex replacement
that has many advantages, including being able to compile libpcap.
For more information, see http://www.gnu.org/software/flex/flex.html .)
7、yum install -y flex
8、在libpcap-1.1.1中重新编译:make 然后make install. 这是libpcap 安装ok。(在libpcap-1.1.1中编译:make (这时又提示错误:make: yacc: Command not found ,这是因为没有安装: yacc)
9. 安装yacc: yum install -y byacc
10、在libpcap-1.1.1中重新编译:make 然后make install. 这是libpcap 安装ok。
11、重新安装tcpreplay 。
12、 配置:./configure
13、 编译:make
14、安装:make install.
2. 解压:tar -xzfv tcpreplay-3.4.2.tar.gz
3. 进入解压后的文件:cd tcpreplay-3.4.2
4. yum install -y gcc gcc-c++ 配置:./configure (在这里遇见一个错误提示:configure: error: libpcap not found)
5. 安装:libpcap(下载libpcap-1.1.1.tar.gz,解压)
6. 进入libpcap-1.1.1 中,
配置: ./configure.
(在此遇见错误提示:configure: error: Your operating system's lex is insufficient to compile libpcap. flex is a lex replacement
that has many advantages, including being able to compile libpcap.
For more information, see http://www.gnu.org/software/flex/flex.html .)
7、yum install -y flex
8、在libpcap-1.1.1中重新编译:make 然后make install. 这是libpcap 安装ok。(在libpcap-1.1.1中编译:make (这时又提示错误:make: yacc: Command not found ,这是因为没有安装: yacc)
9. 安装yacc: yum install -y byacc
10、在libpcap-1.1.1中重新编译:make 然后make install. 这是libpcap 安装ok。
11、重新安装tcpreplay 。
12、 配置:./configure
13、 编译:make
14、安装:make install.