环境:阿里云
操作系统CentOS8.5
依赖包安装:
libmicrohttpd
cd /usr/local/src
wget https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-latest.tar.gz
tar vzxf libmicrohttpd-latest.tar.gz
cd libmicrohttpd-1.0.1/./configure
make
make install
nghttp2
cd /usr/local/src
wget https://github.com/nghttp2/nghttp2/releases/download/v1.62.1/nghttp2-1.62.1.tar.gz
tar vzxf nghttp2-1.62.1.tar.gz
cd nghttp2-1.62.1/./configure
make
make install
dnf install bison flex
dnf install ncurses-devel
dnf install libuuid-devel libuuid libevent libevent-develdnf install mariadb mariadb-devel mariadb-server
systemctl enable mariadb
systemctl start mariadb
下载opensips
cd /usr/local/src
wget https://opensips.org/pub/opensips/3.5.0/opensips-3.5.0-beta.tar.gz
tar vzxf opensips-3.5.0-beta.tar.gz
cd opensips-3.5.0-beta
配置需要编译的扩展模块
make menuconfig
增加db_msql,httpd,http2d, uuid
make all
make install