1. 为省事起见,先下载安装包,发现依赖库版本太低,没法运行。于是源码编译安装。主要参考:https://github.com/codeghar/Seagull,似乎http://gull.sourceforge.net上面的编译安装,陈旧一些,就没有使用。对参考的东西做一下缩略和修正,补充一些东西。例子说的是支持centos7,但我在centos6上也能运行。

  • CentOS (64-bit version only) - 7
  • openSUSE - 13.2 (tested up to commit 79137704f54, before merging patches for issue #1)
  • Ubuntu (64-bit versions only) - 14.04, 16.04, 18.04

sudo yum groupinstall "Development Tools" -y
sudo yum install curl git glib2-devel ksh bison flex flex-devel vim tmux -y

Clone this repo and create a branch to build from.

mkdir -p /source

cd /source
git clone https://github.com/codeghar/Seagull.git
cd /source/Seagull
git branch build master
git checkout build

 

Add SCTP Support
Download the latest sctplib and socketapi tarballs from http://www.sctp.de/ to the external-lib-src directory. They were are version 1.0.15 and 2.2.8 respectively at the time of writing.

cd /source/Seagull/seagull/trunk/src
curl --create-dirs -o external-lib-src/sctplib-1.0.15.tar.gz http://www.sctp.de/download/sctplib-1.0.15.tar.gz
curl --create-dirs -o external-lib-src/socketapi-2.2.8.tar.gz http://www.sctp.de/download/socketapi-2.2.8.tar.gz

Edit build-ext-lib.conf and update the version of this library ONLY if you downloaded a different version.

...
EXTBUILD_3_FILE=openssl-1.0.2e.tar.gz
EXTBUILD_3_DIR=openssl-1.0.2e
...

Build SCTP and TLS Support
Build libraries for SCTP and TLS.

ksh build-ext-lib.ksh

Build Seagull
First clean up previous build attempts and then build. Upon encountering errors (you shouldn't if you followed these instructions exactly but never say never) fix the error and run these two commands again.

ksh -target clean
ksh -target all

Install Seagull
I'm assuming Seagull built successfully. Install its binaries by copying files in /source/Seagull/seagull/trunk/src/bin to /opt/seagull/bin.

sudo cp /source/Seagull/seagull/trunk/src/bin/* /opt/seagull/bin

Following the lead of rpm packages provided by the official projects, install other required files in the /opt hierarchy.

sudo mkdir -p /opt/seagull
sudo cp -r exe-env/* /opt/seagull
sudo chown -R myusername:myusername /opt/seagull
mkdir -p /opt/seagull/{diameter-env,h248-env,http-env,msrp-env,octcap-env,radius-env,sip-env,synchro-env,xcap-env}/logs

To run a client or server, cd to /opt/seagull/*/run dirctory and execute any start*.ksh file. For example, to start a Diameter server

cd /opt/seagull/diameter-env/run
./start_server.ksh

对原来安装指南做的调整是,源文件放到/source下。

运行时,发现需要指定库的路径,于是,在/etc/ld.conf.d/下增加文件,seagull.conf,内容是/opt/seagull/bin,然后 ldconfig,刷新库路径

另外需要安装: yum -y install flex-devel

对sip做测试,可以参考http://gull.sourceforge.net/doc/sip.html,

1. 开两个终端,

分别运行 start_client_test.ksh 和 start_server_test.ksh

2. 开三个终端,分别运行 start_server_corr_1.ksh,start_server_corr_2.ksh,start_client_corr.ksh

实际运行时,发现缺少文件:libssl.so.1.0.0,拷贝

cd /source/Seagull/seagull/trunk/src/ext-1.8.3/lib
cp libssl.so* -dua /opt/seagull/bin
cp libcrypto.so* -dua /opt/seagull/bin

最终,/etc/ld.conf.d/seagull.conf的内容是:

/opt/seagull/bin
/usr/lib64/openmpi/lib

对diameter做测试时,发现:

./start_server_tls.ksh
SSL_CTX_use_certificate_file failed

可能先要安装证书吧,详情再咨询协议专家。

惠普开源的通信测试工具Seagull的安装体会的更多相关文章

  1. 开源图像标注工具labelme的安装使用及汉化

    一 LabelMe简介 labelme是麻省理工(MIT)的计算机科学和人工智能实验室(CSAIL)研发的图像标注工具,人们可以使用该工具创建定制化标注任务或执行图像标注,项目源代码已经开源. 项目开 ...

  2. 【Tools】HP/惠普v285w 量产工具

    前段时间朋友说自己u盘坏了,让帮忙看看.看下图是这个u盘. 坏的问题:往里面复制东西,提示:请去掉写保护或使用另一张磁盘.但是能正常从里面读取出来数据. 无论更换电脑,还是使用网上的修改注册表等方式皆 ...

  3. 惠普hp服务器通过iLO接口远程安装操作系统

    我们以hp proliant sl210t的机器为例,我们在配置好iLO接口的远程管理后,我们便可以通过iLO进行操作系统的安装 关于惠普服务器的iLO配置,可参笔者的另一篇文章<关于hp pr ...

  4. PowerShell 惠普打印机双面驱动自动设置已安装

    win10系统,使用实验室的HP P2055dn打印机.每次关机重连后,都会把默认的双面打印机的设置改回“未安装”,需要手动改成“已安装”.感觉是个bug,win7的时候关机后状态还会保持. 每次连上 ...

  5. 解决:惠普HP LaserJet Pro M126a MFP 驱动 安装失败,及其它同类打印机失败问题

    注意:如果在 Windows XP 系统下安装出错,请先安装WindowsXP KB971276-v3补丁后再安装装驱动. 下载地址:http://www.dyjqd.com/soft/KB97127 ...

  6. 惠普电脑(HP PHILIPS系列)安装ubuntu后无法连接WIFI解决方案(手动安装8821CE驱动)

    一步一步来, 先说环境: 我的电脑是HP PHILIPS系列,ubuntu版本是16.04 背景: win10安装ubuntu后发现无法连接wifi(但win10系统可以连接WIFI),在ubuntu ...

  7. 我所理解的 惠普云 (HP Cloud)

    HP (惠普)于2014年5月27日宣布了它的新的云产品线 HP Helion,并宣布在接下来的两年时间内向该产品线投资10亿美金.应该说这是一笔很大的投入,充分显示了HP 在云这个领域的决心.本文试 ...

  8. 基于RTKLIB构建高并发通信测试工具

    1. RTKLIB基础动态库生成 RTKLIB是全球导航卫星系统GNSS(global navigation satellite system)的标准&精密定位开源程序包,由日本东京海洋大学的 ...

  9. 惠普(HP)战66 Pro G1 - 批量GHOST[Win10专业版 ] (UEFI)

    笔记本型号:惠普(HP)战66 Pro G1 14英寸轻薄笔记本电脑(i5-8250U 8G 256G PCIe SSD+500G 标压MX150 2G独显)银色 需求: 公司一共采购10台笔记本,需 ...

随机推荐

  1. Oracle数据库版本10.2.0.1升级到10.2.0.3(转)

    Oracle数据库版本10.2.0.1升级到10.2.0.3 1.停止OEM/isqlplus/监听/DB实例 $ emctl stop dbconsole $ isqlplusctl stop $ ...

  2. Ubuntu 安装 .bundle 文件

    ubuntu安装VMware-Workstation-Full-15.0.2-10952284.x86_64.bundle 一.*.bundle 文件比较特殊,只有在给它了执行权限后才能执行安装操作. ...

  3. [No0000104]JavaScript-基础课程4

    要说 JavaScript 和其他较为常用的语言最大的不同是什么,那无疑就是 JavaScript 是函数式的语言,函数式语言的特点如下: 函数为第一等的元素,即人们常说的一等公民.就是说,在函数式编 ...

  4. 3-idiots hdu4609 母函数+FFT 组合数学题

    http://acm.hdu.edu.cn/showproblem.php?pid=4609 题意:1e5个数,求取三个数能形成三角形的概率. 题解(这怎么会是fft入门题QAQ): 概率的算法就是三 ...

  5. 模板倍增LCA 求树上两点距离 hdu2586

    http://acm.hdu.edu.cn/showproblem.php?pid=2586 课上给的ppt里的模板是错的,wa了一下午orz.最近总是被坑啊... 题解:树上两点距离转化为到根的距离 ...

  6. python数据结构之图论

    本篇学习笔记内容为图的各项性质.图的表示方法.图ADT的python实现 图(Graph) 是数据结构和算法学中最强大的框架之一(或许没有之一).图几乎可以用来表现所有类型的结构或系统,从交通网络到通 ...

  7. expect远程登录服务器并执行命令

    #!/usr/bin/expectset timeout 120            #设置执行超时时间,任何输入120秒后退出set password "password"  ...

  8. LU decomposition can be viewed as the matrix form of Gaussian elimination.

    https://en.wikipedia.org/wiki/LU_decomposition One way to find the LU decomposition of this simple m ...

  9. Google 的 OKR 制度与KPI 有什么不同?

    https://mp.weixin.qq.com/s/aMGJvPPBA9d2uq8DOi3xFg

  10. odoo权限管理

    Odoo的权限的核心是权限组(res_groups).对每个权限组,可以设置权限组的菜单表示,对象表示,记录规则表示,字段表示. 1.菜单/对象级别 设置哪些人可以访问哪些菜单/对象,对象的访问权限包 ...