关于freeswitch1.5在ubuntu14.04上安装遇到的问题1

2017年7月7日
环境:ubuntu14.04-192.168.1.223-局域网主机
安装freeswitch1.5
    公司内一直用的是freeswitch1.5版本,需要我在局域网主机上安装freeswitch1.5版本,我在官网上只发现了一个1.5版本的,可能是我不会找,经过下载编译安装,到最后我检测freeswitch的版本的时候有意外发现显示的是1.9版本,可能是我安装方法出错了,无奈只能从服务器1上拷贝freeswitch的源码包,然后在公司局域网安装
     关于freeswitch1.5在ubuntu14.04上安装遇到的问题1_第1张图片
公司服务1上freeswitch版本如下   
root@fscn:/usr/local/bin# ./freeswitch -version
FreeSWITCH version: 1.5.final+git~20150528T173517Z~6a2fc5e0f7~64bit (git 6a2fc5e 2015-05-28 17:35:17Z 64bit)
在局域网主机上将源码包解压到/usr/src目录下
执行以下命令:
root@ubuntu-server:/usr/src/freeswitch# ./bootstrap.sh
root@ubuntu-server:/usr/src/freeswitch# ./configure
root@ubuntu-server:/usr/src/freeswitch# make
执行编译命令后出现以下错误:
  CXXLD    libfreeswitch.la
/bin/sed: can't read /usr/local/src/fs1.5/freeswitch/libs/apr-util/xml/expat/lib/libexpat.la:
libtool: link: `/usr/local/src/fs1.5/freeswitch/libs/apr-util/xml/expat/lib/libexpat.la' is n
make[1]: *** [libfreeswitch.la] Error 1
make[1]: Leaving directory `/usr/src/freeswitch'
make: *** [all] Error 2
 注:1./bin/sed: can't read /usr/local/src/fs1.5/freeswitch/libs/apr-util/xml/expat/lib/libexpat.la: No such file or directory
          猜测:可能我在局域网主机上放的路径不对,执行以下命令尝试能否解决
root@ubuntu-server:/usr/src# mkdir /usr/local/src/fs1.5/
root@ubuntu-server:/usr/src# mv freeswitch  /usr/local/src/fs1.5/
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch# cd /usr/local/src/fs1.5/freeswitch/
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch# ls -al /usr/local/src/fs1.5/freeswitch/libs/apr-util/xml/expat/lib/ | grep libexpat.la
-rw-r--r-- 1 root root    902  7月  7 09:16 libexpat.la
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch# ./bootstrap.sh
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch# ./configure
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch# make
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch# make install
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch# ./freeswitch -version
FreeSWITCH version: 1.5.final~64bit ( 64bit)
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch# sudo make uhd-sounds-install
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch# sudo make uhd-moh-install
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch# ln -sf /usr/local/src/fs1.5/freeswitch/freeswitch /usr/local/bin/
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch# ln -sf /usr/local/src/fs1.5/freeswitch/fs_cli /usr/local/bin/
    结果:成功,未报错。
    总结:路径很重要!路径很重要!路径很重要!尤其是你照着其他服务器画饼时。
    剩下的工作就是从服务器1的 运行的freeswitch目录下,将成品的配置文件拷贝到局域网主机的freeswitch相应目录下。对于freeswitch我还不太熟悉,只能这么办了。
执行以下命令
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch/html5# mkdir /home/freeswitch_backup/verto_1.5_170707
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch/html5# mv /usr/local/src/fs1.5/freeswitch/html5/verto/* /home/freeswitch_backup/verto_1.5_170707/
    注:操作完后可以ls -al查看确认一下
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch/html5/verto#rz   //此处上传文件。使用的是lrzsz软件,apt-get命令即可安装
    注:上传更换配置文件时,需要对原配置文件进行备份。
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch/scripts# mkdir /home/freeswitch_backup/scripts_1.5_170707
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch/scripts# mv /usr/local/src/fs1.5/freeswitch/scripts/* /home/freeswitch_backup/scripts_1.5_170707/
root@ubuntu-server:/usr/local/src/fs1.5/freeswitch/scripts# rz   //上传配置文件
剩下的就是根据实际情况自己修改了
                                  

你可能感兴趣的:(freeswitch)