栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

sip测试工具--Sipp的编译

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

sip测试工具--Sipp的编译

目录

1.获取源码包:

2. 环境初始化

3. 源码编译


1.获取源码包:

git clone https://git.code.sf.net/p/sipp/git sipp-git

2. 环境初始化

yum -y install ncurse*

yum -y install openssl*

yum -y install lksctp*

yum -y install libpcap*

yum -y install libsctp-dev lksctp-tools

3. 源码编译

cd sipp-git/

autoreconf -ivf

./configure --with-pcap --with-sctp

make

如果报错:

g++ -g -O2 -o sipp sipp-actions.o sipp-auth.o sipp-comp.o sipp-call.o sipp-deadcall.o sipp-infile.o sipp-listener.o sipp-logger.o sipp-md5.o sipp-message.o sipp-milenage.o sipp-opentask.o sipp-reporttask.o sipp-rijndael.o sipp-scenario.o sipp-sip_parser.o sipp-screen.o sipp-socket.o sipp-socketowner.o sipp-stat.o sipp-strings.o sipp-task.o sipp-time.o sipp-variables.o sipp-watchdog.o sipp-xp_parser.o sipp-prepare_pcap.o sipp-send_packets.o sipp-sipp.o -lpcap -lsctp -lm -lpthread -ldl -lcurses

/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: sipp-screen.o: undefined reference to symbol 'stdscr'

/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: note: 'stdscr' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line

/lib64/libtinfo.so.5: could not read symbols: 无效的操作

解决办法: 打开Makefile添加 -ltinfo链接参数

vim ./Makefile

LIBS = -lpcap -lsctp -lm -lpthread -ldl -lcurses -ltinfo

重新执行make

祝您身体健康,前程似锦,小弟期待文章对您有帮助,也期待您的打赏:

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/338822.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号