PerKins Zhu

Le vent se lève,il faut tenter de vivre.

导航

debian11 freeswitch 编译安装步骤

Posted on 2023-09-22 13:41  PerKins.Zhu  阅读(560)  评论(0编辑  收藏  举报
建议在 Debian 系统中安装
# 安装依赖
apt install -y gnupg2 wget autoconf lsb-release libtool libtool-bin libtiff-dev uuid-dev pkg-config openssl libssl-dev sqlite3 libsqlite3-dev libcurl4-openssl-dev libspeexdsp-dev libldns-dev libedit-dev yasm nasm ffmpeg libswscale-dev libavformat-dev lua5.4 liblua5.4-dev libopus-dev libpq-dev libmariadb-dev unixodbc unixodbc-dev libsndfile1-dev git clone https://github.com/freeswitch/sofia-sip.git cd sofia-sip ./bootstrap.sh -j ./configure make make install ldconfig cd /usr/local/src yum install libatomic git clone https://github.com/signalwire/libks.git cd libks cmake . make make install git clone https://github.com/freeswitch/spandsp.git cd spandsp/ git reset --hard 67d2455efe02e7ff0d897f3fd5636fed4d54549e #使用该提交版本,可以避免bug ./bootstrap.sh ./configure make make install export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH} echo "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}" >> /etc/profile source /etc/profile ldconfig
# 在 make freeswitch 的时候如果提示找不到/private/v80.h ,则手动把 src/spandsp/private/v80.h 复制到/usr/local/...中 git clone https:
//github.com/signalwire/freeswitch.git -bv1.10 freeswitch cd freeswitch ./bootstrap.sh -j # 预编译 ./configure --prefix=/usr/local/freeswitch # 编译。如果是多核处理器,比如4核,可以用make -j4,能加快编译速度 # 编译时可以编辑modules.conf,取消编译mod_signalwire、mod_opus make make install