FreeSWITCH安装报错“You must install libyuv-dev to build mod_fsv”的解决方案
来源:互联网 发布:淘宝上的苹果官网 编辑:程序博客网 时间:2024/05/29 15:34
转载地址:http://www.cnblogs.com/hezhixiong/p/4797511.html
昨天下午安装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”的解决方案
- FreeSWITCH安装报错“You must install libyuv-dev to build mod_fsv”的解决方案
- Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle
- You must install 'makeinfo' on your build machine
- You must install 'makeinfo' on your build machine
- You must install 'msgfmt' on your build machine
- You must install 'makeinfo' on your build machine
- FreeBSD安装软件报错 “You must upgrade the ports-mgmt/pkg port first.” 的解决方法
- ImportError: You must install PIL to fetch image objects
- ORACLE 11G 安装./runInstaller报错"You are attempting to install 64-bit Oracle on a 32-bit operating
- Linux安装Oracle报错You are attempting to install 64-bit Oracle on a 32-bit operating system. This
- 使用PD时,出现you need to install VBScript before you can run scripts的解决方案
- rlwrap安装报错 You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build this program
- art 解决grub2-install安装报错 grub2-install: error: disk ‘hostdisk//dev/sda1’ not found.
- Windows 2008 R2上安装Visual Studio 2008:you must use the role management tool to install configure .net
- 报错:You Must Rebuild It With Bitcode Enabled (Xcode Setting ENABLE_BITCODE)(解决方案)
- python-pip python-dev build-essential无法安装E: Unable to correct problems, you have held broken package
- ubuntu下bundle install报mysql 的Failed to build gem native extension错误
- struts2 - i18nlocalization(本地化和国际化)
- 提升普通Widget的基类为 QWebView
- 【杭电】[1878]欧拉回路
- 1、DOS 简介与常用命令http://www.jianshu.com/p/6a4202d32012
- Android FrameWork——Activity启动过程详解
- FreeSWITCH安装报错“You must install libyuv-dev to build mod_fsv”的解决方案
- 关于"Auto-Correct"——自动修正功能原理谈究
- SpringMVC强大的数据绑定(1)——第六章 注解式控制器详解——跟着开涛学SpringMVC
- 任意数字的排列
- 查看linux服务器所开放的端口
- 从堆栈剖析block为什么用copy
- hdu 2588 GCD
- jsp页面往mysql里插入中文后数据库里显示乱码
- 格雷码的递归实现