1、先编译osip库
在osip的目录下(有configure文件的目录),执行
./configure
可选命令:
1、–prefix=/home/han/设置安装目录,make install时安装在哪个文件
2、–disable-shared禁止生成动态库,只生成静态库
3、–disable-mt 禁止锁,如果库要配合其他程序使用,要根据实际选择,exosip库不能执行这个命令
make 编译在本目录
make install 将生成文件安装到指定目录
2、安装openssl
1、openssl 是否安装
执行
openssl version -a 如果显示openssl版本号说明安装
简单安装 yum install openssl 或yum update openssl
***********************************************openssl 部分未写完
2、 下载openssl压缩包
3、解压
4、查看gcc版本,版本低升级
gcc -v
yum update gcc 升级
yum -y install gcc 安装
5、查看zlib库是否安装
whereis zlib查看安装路径,没有显示路径说明没安装
yum -y install zlib
***********************************************openssl 部分未写完
3、编译exosip
在exosip的目录下(有configure文件的目录),执行
./configure
1、–prefix=/home/han/设置安装目录,make install时安装在哪个文件
2、–disable-shared禁止生成动态库,只生成静态库
3、OSIP_CFLAGS=-I/home/han/include 指定osip头文件
4、OSIP_LIBS="-L/home/han/lib/ -losip2 -losipparser2" 指定osip的a文件路径
5、如果openssl库位置不是默认,需另外定义
CFLAGS="-I/home/ssl/include"
LDFLAGS="-L/home/ssl/lib/"
LIBS="-lssl -lcrypto"
3、4也可定义在5
make
make install
4、使用osip 、exosip库
头文件位置/home/han/include
库文件/home/han/lib/
标志 -leXosip2 -losip2 -losipparser2 一定按顺序
标签:han,centos,openssl,osip,install,linux,home,安装
来源: https://blog.csdn.net/welongfor/article/details/86663618