centos 7 安装 freeswitch 1.10.7

第一步:通过yum安装依赖包

yum install -y subversion autoconf automake libtool gcc-c++
yum install -y ncurses-devel make libtiff-devel libjpeg-devel

下面yum依赖包可能会出现安装不成功,可以自己在本地搭建一个freeswitch YUM源仓库,再重新安装试试。 本地搭建freeswitch的YUM源参考链接:创建开源freeswitch本地私有化YUM源

yum install -y autoconf automake postgresql-devel libtool gcc gcc-c++ libtiff libtiff-devel libjpeg-devel openssl-devel yum install -y libuuid-devel yasm nasm sqlite-devel libcurl-devel speex-devel ldns-devel libedit-devel lua-devel libsndfile-devel

第二步:下载、安装freeswitch 1.10.7 源码包

ar zxvf freeswitch-1.10.7.-release.tar.gz
cd freeswitch-1.10.7.-release

modules.conf 注释:下面三个模块不需要,需要先注释掉,不然安装会报错

#applications/mod_av

#applications/mod_signalwire

#endpoints/mod_verto

./rebootstrap.sh

./configure
make -j
make install

建立软连接,以方便使用

ln -sf /usr/local/freeswitch/bin/freeswitch /usr/local/bin/

ln -sf /usr/local/freeswitch/bin/fs_cli /usr/local/bin/

freeswitch 安装完成显示如下:

-------------------------- FreeSWITCH configuration --------------------------

  Locations:

          prefix: /usr/local/freeswitch
          exec_prefix: /usr/local/freeswitch
          bindir: ${exec_prefix}/bin
          confdir: /usr/local/freeswitch/conf
          libdir: ${exec_prefix}/lib
          datadir: /usr/local/freeswitch
          localstatedir: /usr/local/freeswitch
          includedir: /usr/local/freeswitch/include/freeswitch

          certsdir: /usr/local/freeswitch/certs
          dbdir: /usr/local/freeswitch/db
          grammardir: /usr/local/freeswitch/grammar
          htdocsdir: /usr/local/freeswitch/htdocs
          fontsdir: /usr/local/freeswitch/fonts
          logfiledir: /usr/local/freeswitch/log
          modulesdir: /usr/local/freeswitch/mod
          pkgconfigdir: ${exec_prefix}/lib/pkgconfig
          recordingsdir: /usr/local/freeswitch/recordings
          imagesdir: /usr/local/freeswitch/images
          runtimedir: /usr/local/freeswitch/run
          scriptdir: /usr/local/freeswitch/scripts
          soundsdir: /usr/local/freeswitch/sounds
          storagedir: /usr/local/freeswitch/storage
          cachedir: /usr/local/freeswitch/cache

------------------------------------------------------------------------------

你可能感兴趣的:(freeswitch,运维)