Yesterday afternoon when installing FreeSWITCH encountered this problem, the whole afternoon has not been resolved, also took a lot of detours. If you install libyuv-devel directly from Yum, you will get an error saying that the installation package could not be found. Later through the FreeSWITCH website of the online chat, find FreeSWITCH staff to Libyuv-devel installation method (please refer to: http://pkgs.org/centos-6/epel-x86_64/ libyuv-devel-0-0.12.20120727svn312.el6.x86_64.rpm.html). After installation, however, the same error was reported, and it was felt that installing libyuv-devel in this way was no more than an egg. The problem was then solved perfectly by the following methods.
Personal installation Environment:
os:centos6.5 64-bit
FreeSWITCH ver:1.6.0
Official Manual for FreeSWITCH installation (for centos6.*):
Https://freeswitch.org/confluence/display/FREESWITCH/CentOS+6
Problems encountered during installation and their solutions
1. Execute "./configure-c", if an error occurs, is missing the development package files (library files), this error is better resolved, the lack of any library files to install the appropriate library files.
2. "Make && make install", I encountered a troublesome error, yesterday afternoon the whole afternoon was not resolved, so the article is mainly to share this error and write.
Error content: makefile:797: * * * must install Libyuv-dev to build MOD_FSV. Stop it.
Solution:
(1) Download LIBYUV source code and compile
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/
(If you just install LIBYUV, then there will be an error, I put my error and need to install the files listed below)
(2) Download LIBVPX source code and compile
Cd..
git clone https://freeswitch.org/stash/scm/sd/libvpx.git
CD LIBVPX
./configure--enable-pic--disable-static--enable-shared
(If configuration failed appears.) The reason for the error is: neither Yasm nor NASM have been found, then refer to the following "※" to resolve the error.)
Make
Make install
cp/usr/local/lib/pkgconfig/vpx.pc/usr/lib64/pkgconfig/
(※) Download yasm and compile
Yasm is a compilation compiler, an upgraded version of NASM
yasm:http://www.tortall.net/projects/yasm/releases/
Yasm decompression Command: TAR-ZXVF ****.tar.gz (i downloaded yasm-1.3.0.tar.gz)
YASM Compilation installation: ①./configure,②make,③make install
Yasm after installation, go back to the second step and reinstall LIBVPX
(3) Download opus and compile
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) Download libpng and compile
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/
After downloading and installing the above four dependent files, after re-executing the FreeSWITCH "./configure", the "Make && makes install" will install the FreeSWITCH properly. At least my side was installed successfully.
FreeSWITCH installation Error "You must install Libyuv-dev to build MOD_FSV" solution