FreeSwitch学习之一:FreeSwitch源码安装

开始学习Freeswitch, 在这里记录一下学习过程, 以便后续翻看,查找, 此文记录安装过程,遇到的问题

环境:Ubuntu 14.04 LTS

一. 环境搭建:

     Freeswitch依赖的包安装

     sudo apt-get install git libcurl4-openssl-dev libexpat1-dev libssl-dev libtiff4-dev libx11-dev unixodbc-dev python-dev zlib1g-dev libzrtpcpp-dev libasound2-dev libogg-dev libvorbis-dev libperl-dev libgdbm-dev libdb-dev python-dev uuid-dev bison autoconf g++ libncurses-dev

二. 下载源码

    git clone https://freeswitch.org/stash/scm/fs/freeswitch.git


三. 编译生成

     ./bootstrap.sh
     ./configure

     在编译的时候, 遇到的问题:

     错误1:

                 checking for sqlite3 >= 3.6.20...Package sqlite3 was not found in the pkg-config search path. Perhaps you shouldadd the directory containing `sqlite3.pc' to the PKG_CONFIG_PATH environmentvariable No package 'sqlite3' foundconfigure: error: Library requirements(sqlite3 >= 3.6.20) not met; consider adjusting the PKG_CONFIG_PATHenvironment variable if your libraries are in a nonstandard prefix sopkg-config can find them

                解决:sudo apt-get install libsqlite3-dev

     错误2:

                 checking for libpcre >= 7.8... Packagelibpcre was not found in the pkg-config search path. Perhaps you should add thedirectory containing `libpcre.pc' to the PKG_CONFIG_PATH environment variableNo package 'libpcre' found configure: error: Library requirements(libpcre >= 7.8) not met; consider adjusting the PKG_CONFIG_PATH environmentvariable if your libraries are in a nonstandard prefix so pkg-config can findthem.

                  解决:sudo apt-get install libpcre3-dev

       错误3:

                checking for speex >= 1.2rc1 speexdsp>= 1.2rc1... Package speex was not found in the pkg-config search path.Perhaps you should add the directory containing `speex.pc' to thePKG_CONFIG_PATH environment variable No package 'speex' found Package speexdspwas not found in the pkg-config search path. Perhaps you should add thedirectory containing `speexdsp.pc' to the PKG_CONFIG_PATH environment variableNo package 'speexdsp' found configure: error: Library requirements(speex >= 1.2rc1 speexdsp >= 1.2rc1) not met; consider adjusting thePKG_CONFIG_PATH environment variable if your libraries are in a nonstandardprefix so pkg-config can find them.

                  解决:sudo apt-get install libspeexdsp-dev

       错误4:

                checking for libldns >= 1.6.6...checking for ldns_str2rdf_a in -lldns... noconfigure: error: You need to either installlibldns-dev or disable mod_enum in modules.conf

                 解决:sudo apt-get install libldns-dev

      错误5:

                  configure: error: You need to eitherinstall libedit-dev (>= 2.11) or configure with--disable-core-libedit-suppor

                 解决:sudo apt-get install libedit-dev


    编译完成后执行

        make;

        sudo make install

       在make时, 出现错误:Neither yasm nor nasm have been found....

       解决:sudo apt-get install yasm

       重新make通过


未完待续....




你可能感兴趣的:(Freeswitch学习)