昨天下午安装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了。起码我这边是安装成功了。

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

  1. VMware station 安装报错 failed to install the hcmon driver

    VMware station 安装报错 failed to install the hcmon driver 1.将 C:\Windows\System32\drivers 下的hcmon.sys改名 ...

  2. PandaSeq安装报错ltld required, install libtool library

    PandaSeq安装 $ ./autogen.sh && ./configure && make && sudo make install PandaS ...

  3. pip安装报错Could not install packages due to an EnvironmentError: Missing dependencies for SOCK

    unset all_proxy && unset ALL_PROXY

  4. android studio 自定义路径安装报错"You are attempting to install the android SDK

    android studio 自定义路径安装报错"You are attempting to install the android SDK 解决方法: 出现这个提示 主要是安装 Andro ...

  5. pip install cv2 安装报错

    pip install cv2 安装报错是一个常见现象: ERROR: Could not find a version that satisfies the requirement cv2 (fro ...

  6. 记录laravelchina中的微信小程序教程的npm install安装报错

    npm安装报错时 npm ERR! code EIOnpm ERR! syscall symlinknpm ERR! path ../@babel/parser/bin/babel-parser.js ...

  7. 【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 ...

  8. mydumper 安装报错处理

    mydumper 官网:https://launchpad.net/mydumper 下载之后,安装报错: [root@localhost local]# cd mydumper-0.6.2 [roo ...

  9. 关于eclipse(64位)下aptana插件安装报错问题解决

    最近一直没有写过js,换了新电脑以后,eclipse下的aptana插件也没有装过,这几天要写js想重新把aptana装上,但是不知怎的,link方式.在线安装方式还有离线包下载下来利用eclipse ...

随机推荐

  1. Format a Hard Drive in Csharp C#格式化总结

    using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Management; ...

  2. python 绘图工具 matplotlib 入门

    转自: http://www.cnblogs.com/kaituorensheng/p/3440273.html matplotlib 是python最著名的绘图库,它提供了一整套和matlab相似的 ...

  3. php的数据访问

    方法一:过去时方法 $定义一个变量 = $mysql_connect("要连接的服务器,默认是 localhost","登录所使用的用户名,默认是 root", ...

  4. Oracle 中批量导入大量测试数据的方法

    执行如下批处理命令: declare  maxrecords constant int := 100000;  i int := 1;begin  for i in 1 .. 20000 loop   ...

  5. (转)Ratchet教程:Buttons组件

    原文:http://www.w3cplus.com/mobile/create-buttons-with-ratchet.html Ratchet教程:Buttons组件               ...

  6. Fractal Tree扩展

    之前的博客实现了最基础的分形树,在这个基础上略微调整一些参数可以得到很多有趣的由分形树发展出的图案. private void drawShape(Graphics g, double x1, dou ...

  7. ASP.NET之Ajax系列(三)

    我们通过前两篇文章的学习,已经大致掌握了Ajax的实现方法,同时也可以对比出两种方式的优劣.但是我们还是没有搞清楚真正的ajax的实现原理,以及最原始的,未经过封装的ajax是什么样的,今天我们一起来 ...

  8. ASP.NET中的指令:

    来源:http://www.cnblogs.com/zhuisha/archive/2008/07/02/1234222.html ASP.NET中的指令: @Page指令: @Page指令只能在.a ...

  9. 六、CCLayer

    一个游戏中可以有很多个场景,每个场景里面又可能包含有多个图层,这里的图层一般就是CCLayer对象.CCLayer本身几乎没什么功能,对比CCNode,CCLayer可用于接收触摸和加速计输入.其实, ...

  10. re-id 资料集

    Shengcai Liao: http://www.cbsr.ia.ac.cn/users/scliao/