FreeSWITCH安装报错“You must install libyuv-dev to build mod_fsv”的解决方案

 昨天下午安装FreeSWITCH时遇到该问题时,整了一个下午都没解决,也走了许多弯路。如果直接通过yum安装libyuv-devel时,会报错说找不到该安装包。后来又通过FreeSWITCH官网的网上聊天,找FreeSWITCH的工作人员要到了libyuv-devel的安装方法(请参考:http://pkgs.org/centos-6/epel-x86_64/libyuv-devel-0-0.12.20120727svn312.el6.x86_64.rpm.html)。然而安装之后还是报同样的错误,感觉通过这个方法安装libyuv-devel也没什么卵用。后来通过以下方法完美的解决了该问题。

个人安装环境:

  OS:CentOS6.5  64位
  FreeSWITCH Ver:1.6.0

FreeSWITCH安装的官方手册(适用于CentOS6.*):

  https://freeswitch.org/confluence/display/FREESWITCH/CentOS+6

安装过程中遇到的问题及解决方法

  1. 执行“./configure -C”时,如果出现报错,就是缺少开发包文件(库文件),这种错误比较好解决,缺少什么库文件就安装相应的库文件。

  2. 执行“make && make install”时,我遇到了一个比较麻烦的错误,昨天下午整了一个下午都没解决,所以该文章主要是为了共享这个错误而写。

    错误内容:Makefile:797: *** You must install libyuv-dev to build mod_fsv。停止。

    解决方案:

      (1)下载libyuv源码并编译

        cd freeswitch/libs
        git clone https://freeswitch.org/stash/scm/sd/libyuv.git
        cd libyuv
        make -f linux.mk CXXFLAGS="-fPIC -O2 -fomit-frame-pointer -Iinclude/"
        make install
        cp /usr/lib/pkgconfig/libyuv.pc /usr/lib64/pkgconfig/

        (如果只是安装libyuv,接下来还会有报错,我把我报错而需要安装的文件统一罗列如下)

      (2)下载libvpx源码并编译

        cd ..
        git clone https://freeswitch.org/stash/scm/sd/libvpx.git
        cd libvpx
        ./configure --enable-pic --disable-static --enable-shared
        (如果出现Configuration failed。错误原因为:Neither yasm nor nasm have been found,则参考以下“※”解决该错误.)
        make
        make install
        cp /usr/local/lib/pkgconfig/vpx.pc /usr/lib64/pkgconfig/

      (※)下载yasm并编译

        yasm是一个汇编编译器,是nasm的升级版
        yasm下载地址:http://www.tortall.net/projects/yasm/releases/
        yasm解压命令:tar -zxvf ****.tar.gz (我下载的是yasm-1.3.0.tar.gz)
        yasm编译安装:① ./configure, ② make, ③make install
        yasm安装完毕之后回到第二步重新安装libvpx

      (3)下载opus并编译

        cd ..
        git clone https://freeswitch.org/stash/scm/sd/opus.git
        cd opus
        ./autogen.sh
        ./configure
        make
        make install
        cp /usr/local/lib/pkgconfig/opus.pc /usr/lib64/pkgconfig

      (4)下载libpng并编译

        cd ..
        git clone https://freeswitch.org/stash/scm/sd/libpng.git
        cd libpng
        ./configure
        make
        make install
        cp /usr/local/lib/pkgconfig/libpng* /usr/lib64/pkgconfig/

  下载并安装以上四个依赖文件后,重新执行FreeSWITCH的“./configure”之后,“make && make install”就能正常安装FreeSWITCH了。起码我这边是安装成功了。

时间: 2024-08-09 12:52:16

FreeSWITCH安装报错“You must install libyuv-dev to build mod_fsv”的解决方案的相关文章

安装theano时候发现报错:cannot install ''numpy'.It is a distutils installed project and thus we cannot ...

发现我安装theano的时候需要numpy需要1.9以上版本,而我之前自带的numpy是1.8版本,所以版本有问题.根本原因是theano需要的numpy版本不符合要求,但是numpy已经安装过了,所以无法进行直接卸载.提供两个解决方法: 解决方法1:直接找到numpy的安装目录,直接通过sudo rm 去对文件夹进行删除.(如果找不到文件夹,可以通过下面截图方式,一般都在dist-packages目录下) 方法2:(强行安装更新更高的版本) sudo pip install numpy --i

【Datastage】Datastage在win10上安装报错:This Application requires one of the following versions of the .NET Framework:v1.1.4322 Do you want to install this .NET Framework version now?

Datastage在win10上安装报错如下: 这个错误的意思是:.netFramWork的版本不符合要求,于是,我在网上下载了一个版本一致的 下载地址为:http://pan.baidu.com/s/1i5kmEfN 下载完成以后,就可以开始安装了,但是在win10上安装DataStage时会出现检查不通过,没关系,使用以下命令即可解决问题:setup.exe –force 程序正在开始安装...... 以下是安装过程中截图: 红色复选框打勾,接着next,一直next到底即可完成DS的安装.

mysql安装报错

如果编译时出现了以下错误:checking for tgetent in -ltermcap- nochecking for termcap functions library- configure: error: No curses/termcap library found说明 curses/termcap 库没有安装去下载一个ncurses-5.6.tar.gz,wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gztar zx

rlwrap安装报错You need the GNU readline 解决方法

首先大家肯定知道rlwrap是干什么的? 在linux以及unix中,sqlplus的上下左右.回退无法使用,会出现乱码情况.而rlwrap这个软件就是用来解决这个的. 这个错误曾经困扰我很久很久!下载readline 安装,安装好readline 还是无法运行rlwrap的安装程序 在网上搜寻很久才找到一个靠谱的解决方法 原来rlwrap这个程序的安装,需要依赖两个包, 一个是readline,这个readline在RHEL中已经集成了.不需要去专门下载 另外一个包 libtermcap-de

PHP编译安装报错: mcrypt.h not found. Please reinstall libmcrypt.

PHP编译安装报错: mcrypt.h not found. Please reinstall libmcrypt. 转载2016-04-25 12:40:44 标签:linuxitphp 解决方法: 1.为系统安装perl-Geo-IP,默认yum源中没有这个包,特意安装epel第三方yum源[[email protected] ~] rpm -Uvh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rp

cocoapods 安装报错 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj

cocoapods 安装报错 ERROR:  While executing gem ... (Errno::EPERM)     Operation not permitted - /usr/bin/xcodeproj 执行下面语句安装即可: sudo gem install -n /usr/local/bin cocoapods

LNMP安装报错解决方案

configure: error: no acceptable cc found in $PATH 解决方案:yum install -y gcc configure: error: xml2-config not found. Please check your libxml2 installation. 解决方案:yum install -y libxml2-devel configure: error: Cannot find OpenSSL's <evp.h> 解决方案:yum ins

filezilla server FTP 安装报错 &quot;could not load TLS network. Aborting start of administration interface&quot;

filezilla server FTP 安装报错   "could not load TLS network. Aborting start of administration interface" 需要安装一个系统补丁 kb 2533623 https://forum.filezilla-project.org/viewtopic.php?t=39838 According to the forum above, you need to install https://suppor

Scrapy安装报错 Microsoft Visual C++ 14.0 is required 解决办法

Scrapy安装报错 Microsoft Visual C++ 14.0 is required 解决办法原因:Scrapy需要的组 twisted 需要 C++环境编译. 方法一:根据错误提示去对应的网站下载C++ 14.0  ,然后重新安装 方法二:直接下载对应系统的whl 安装 1.win10,python_3.6.1,64位2.pip install Scrapy报错3.http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted 下载twiste