• centos7 freeswitch1.8.7 一次性成功安装


    一定要按照顺序和版本来安装,不然会各种奇奇怪怪的错误,有些git clone 无法下载,建议FQ下载好放到linux里面

    先看我的centos系统版本7+,freeswitch版本:1.8.7

    [root@localhost bin]# uname -a
    Linux localhost.localdomain 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

     [root@localhost bin]# cat /etc/redhat-release
     CentOS Linux release 7.9.2009 (Core)

    freeswitch 版本

    [root@localhost bin]# ./freeswitch -version
    FreeSWITCH version: 1.8.7~64bit ( 64bit)# 更新rpm (这里可选,反正我没更新)yum -y update 
    #fs仓库,这里选择网络
    yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release #可选
    #安装fs所需依赖
    yum install -y git alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel libdb4-devel e2fsprogs-devel erlang flite-devel g722_1-devel gcc-c++ gdbm-devel gnutls-devel ilbc2-devel ldns-devel libcodec2-devel libcurl-devel libedit-devel libidn-devel libjpeg-devel libmemcached-devel libogg-devel libsilk-devel libsndfile-devel libtheora-devel libtiff-devel libtool libuuid-devel libvorbis-devel libxml2-devel lua-devel lzo-devel mongo-c-driver-devel ncurses-devel net-snmp-devel openssl-devel opus-devel pcre-devel perl perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel wget which yasm zlib-devel libshout-devel libmpg123-devel lame-devel rpm-build libX11-devel libyuv-devel
    #安装cmake
    cd /usr/local/src
    wget https://cmake.org/files/v3.14/cmake-3.14.0.tar.gz
    tar vzxf cmake-3.14.0.tar.gz
    cd cmake-3.14.0
    ./configure
    make
    make install
    
    # 安装libks
    cd /usr/local/src
    yum install libatomic
    git clone https://github.com/signalwire/libks.git
    cd libks
    cmake .
    make
    make install
    
    #安装signalwire-c
    cd /usr/local/src
    git clone https://github.com/signalwire/signalwire-c.git
    cd signalwire-c/
    cmake .
    make
    make install
    ln -sf /usr/local/lib64/pkgconfig/signalwire_client.pc /usr/lib64/pkgconfig/signalwire_client.pc
    
    #freeswitch安装
    cd /opt
    wget https://github.com/signalwire/freeswitch/archive/refs/tags/v1.8.7.tar.gz
    tar vzxf v1.8.7.tar.gz .
    /bootstrap.sh ./configure make make install #语言包安装(可选择,反正我没用到) make sounds-install make moh-install # 可选-设置软链接 ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin/ ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin/

    最后启动

    cd /usr/local/freeswitch/bin
    ./freeswitch
    
    没有报错即可
    
    2021-12-25 05:23:52.851463 [CONSOLE] switch_core.c:2478 
    .=============================================================.
    |   _____              ______        _____ _____ ____ _   _   |
    |  |  ___| __ ___  ___/ ___\ \      / /_ _|_   _/ ___| | | |  |
    |  | |_ | '__/ _ \/ _ \___ \\ \ /\ / / | |  | || |   | |_| |  |
    |  |  _|| | |  __/  __/___) |\ V  V /  | |  | || |___|  _  |  |
    |  |_|  |_|  \___|\___|____/  \_/\_/  |___| |_| \____|_| |_|  |
    |                                                             |
    .=============================================================.
    |   Anthony Minessale II, Michael Jerris, Brian West, Others  |
    |   FreeSWITCH (http://www.freeswitch.org)                    |
    |   Paypal Donations Appreciated: paypal@freeswitch.org       |
    |   Brought to you by ClueCon http://www.cluecon.com/         |
    .=============================================================.
    
    .===============================================================.
    |       _                                                       |
    |   ___| |_   _  ___  ___ ___  _ __         ___ ___  _ __ ___   |
    |  / __| | | | |/ _ \/ __/ _ \| '_ \       / __/ _ \| '_ ` _ \  |
    | | (__| | |_| |  __/ (_| (_) | | | |  _  | (_| (_) | | | | | | |
    |  \___|_|\__,_|\___|\___\___/|_| |_| (_)  \___\___/|_| |_| |_| |
    |                                                               |
    .===============================================================.
    
    
    2021-12-25 05:23:52.851470 [INFO] switch_core.c:2487 
    FreeSWITCH Version 1.8.7~64bit ( 64bit)
  • 相关阅读:
    又搬回来了233
    2017.10.2解题报告
    2017.10.1解题报告
    Android 百度地图开发(二)--- 定位功能之MyLocationOverlay,PopupOverlay的使用
    Last_IO_Errno: 1236 Last_IO_Error: Got fatal error 1236 from master when reading data from binary lo
    [Warning] Aborted connection 11203 to db: 'ide' user: 'nuc' host: 'prd01.mb.com' (Got an error writi
    浅析地方门户网优化的方法
    xxx==null和xxx.equals(null)的区别
    Java+7入门经典
    《UNIX环境高级编程》笔记--read函数,write函数,lseek函数
  • 原文地址:https://www.cnblogs.com/wtcl/p/15731158.html
Copyright © 2020-2023  润新知