先把官网的复制过来:
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
sudoaptinstalllibssl−dev
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