安装sipp时遇到的小问题

11 篇文章 3 订阅

先把官网的复制过来:

On Linux, SIPp is provided in the form of source code. You will need to compile SIPp to actually use it.
Pre-requisites to compile SIPp are :
C++ Compiler
curses or ncurses library
For TLS support: OpenSSL >= 0.9.8
For pcap play support: libpcap and libnet
For SCTP support: lksctp-tools
For distributed pauses: Gnu Scientific Libraries
You have four options to compile SIPp:
Without TLS (Transport Layer Security), SCTP or PCAP support: - This is the recommended setup if you don’t need to handle SCTP, TLS or PCAP.
-# tar -xvzf sipp-xxx.tar
# cd sipp
# ./configure
# make

With TLS support, you must have installed OpenSSL library (>=0.9.8) (which may come with your system). Building SIPp consists only in adding the “–with-openssl” option to the configure command:

-# tar -xvzf sipp-xxx.tar.gz
# cd sipp
# ./configure –with-openssl
# make

With PCAP play support:

-# tar -xvzf sipp-xxx.tar.gz
# cd sipp
# ./configure –with-pcap
# make

With SCTP support:

-# tar -xvzf sipp-xxx.tar.gz
# cd sipp
# ./configure –with-sctp
# make

You can also combine these various options, e.g.::
-# tar -xvzf sipp-xxx.tar.gz
# cd sipp
# ./configure –with-sctp –with-pcap –with-openssl
# make

如果是比较新的系统(指没有安装太多环境)有以下提示

没有ncurses*
Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
没有openssl
checking openssl/md5.h usability... no
checking openssl/md5.h presence... no
checking for openssl/md5.h ... no
configure: error: <openssl/md5.h> header missing
没有netinet头文件sctp.h
checking netinet/sctp.h usability... no
checking netient/sctp.h presence...  no
checking for netinet/sctp.h... no
configure: WARNING: <netinet/sctp.h> header missing, but this is acceptable on Mac OS X Lion
checking for library contain sctp_send... no
configure: error: SCTP library missing 
没有pcap.h
checking pcap.h usability... no
checking pcap.h presence... no
checking for pcap.h...   no
configure: error:<pcap.h>header missing

现在用的是centOS6.9。回去试一下centOS7和macOSX。

yum install ncurse*
yum install openssl*
yum install lksctp*
yum install libpcap*

(libssl) (lksctp-tools) (openssl-dev)

sctp是一个协议,内核对sctp协议的支持可以用插入对应模块的方式找到。不过我是在按完 lksctp-tools才试的:
modprobe sctp
ls /usr/include/netinet/sctp.h

之后就make install。

补充:sudo apt-get install libsctp-dev lksctp-tools
然后 ls /usr/include/netinet/sctp.h

openssl libncurses
sudoaptinstalllibssldev s u d o a p t i n s t a l l l i b s s l − d e v sudo apt-get install libncurses5-dev

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值