<div dir="ltr">To install latest version of package i recommend port package from fedora repo (for Lua package <a href="http://dl.fedoraproject.org/pub/fedora/linux/development/23/source/SRPMS/l/">http://dl.fedoraproject.org/pub/fedora/linux/development/23/source/SRPMS/l/</a>)<div><br></div><div>To make rebuild please use mock utility</div><div>mock -r epel-6-x86_64 --rebuild ./lua-5.3.0-4.fc23.src.rpm<br></div><div><br></div><div>Then install other required dependences to build FS. If required make newest packages version from fedora repo. Instruction how to build most of dependences is located at <a href="https://freeswitch.org/confluence/display/FREESWITCH/Creating+RPM+repositary">https://freeswitch.org/confluence/display/FREESWITCH/Creating+RPM+repositary</a></div><div><br></div><div>To make FS srpm execute commands</div><div>git clone -b v1.6 <a href="https://freeswitch.org/stash/scm/fs/freeswitch.git">https://freeswitch.org/stash/scm/fs/freeswitch.git</a><br></div><div>mv freeswitch freeswitch-1.7.0</div><div>mkdir -p ~/rpmbuild/SOURCES</div>
<div>mkdir -p ~/rpmbuild/SPEC</div><div>tar cjf ~/rpmbuild/SOURCES/freeswitch-1.7.0.tar.bz2 freeswitch-1.7.0</div>
<div>cp freeswitch-1.7.0/freeswitch.spec ~/rpmbuild/SPECS/<br></div><div>cd ~/rpmbuild/SOURCES</div><div>wget <a href="http://ftp.nsysu.edu.tw/FreeBSD/ports/distfiles/freeswitch/libmemcached-0.32.tar.gz">http://ftp.nsysu.edu.tw/FreeBSD/ports/distfiles/freeswitch/libmemcached-0.32.tar.gz</a><br></div><div>wget <a href="http://ftp.nsysu.edu.tw/FreeBSD/ports/distfiles/freeswitch/communicator_semi_6000_20080321.tar.gz">http://ftp.nsysu.edu.tw/FreeBSD/ports/distfiles/freeswitch/communicator_semi_6000_20080321.tar.gz</a><br></div><div>wget <a href="http://sourceforge.net/projects/cmusphinx/files/sphinxbase/0.8/sphinxbase-0.8.tar.gz">http://sourceforge.net/projects/cmusphinx/files/sphinxbase/0.8/sphinxbase-0.8.tar.gz</a><br></div><div>wget <a href="http://sourceforge.net/projects/cmusphinx/files/pocketsphinx/0.8/pocketsphinx-0.8.tar.gz">http://sourceforge.net/projects/cmusphinx/files/pocketsphinx/0.8/pocketsphinx-0.8.tar.gz</a><br></div><div>wget <a href="https://github.com/mongodb/mongo-c-driver/releases/download/1.1.0/mongo-c-driver-1.1.0.tar.gz">https://github.com/mongodb/mongo-c-driver/releases/download/1.1.0/mongo-c-driver-1.1.0.tar.gz</a><br></div><div>wget <a href="http://files.freeswitch.org/downloads/libs/v8-3.24.14.tar.bz2">http://files.freeswitch.org/downloads/libs/v8-3.24.14.tar.bz2</a><br></div><div>rpmbuild -bs ~/rpmbuild/SPECS/freeswitch.spec<br></div><div>mock -r epel-6-x86_64 --rebuild ~/rpmbuild/SRPMS/freeswitch-1.7.0-1.el7.centos.src.rpm<br></div><div><br></div><div>Late will be long process. If error will arise write me directly.</div><div><br></div><div>Sergey</div><div><br></div><div><br></div>
<div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 2, 2015 at 12:29 PM, Andrew Keil <span dir="ltr"><<a href="mailto:andrew.keil@visytel.com" target="_blank">andrew.keil@visytel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-AU" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">To all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">After much testing I have managed to get Lua 5.3.2 (the latest Lua version, however this will work with all the Lua 5.2.x versions) to run inside FreeSWITCH 1.6.5 on CentOS 6.7 (however the same should work inside CentOS 7).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Here is what I have done. Please make any comments and improvements to this procedure.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">*** One part I am not happy with is that I have to manually copy the liblua.so from /usr/local/lib to /usr/local/freeswitch/lib (see point 22 below). For some reason FreeSWITCH does not find the shared library inside /usr/local/lib. Maybe
there is a setting for this I can change as the other option is to put liblua.so inside /usr/lib64 where “yum install lua-devel” puts the liblua.so for Lua version 5.1.4, however I do not like this concept. ***<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Please note: Currently mod_fsv and mod_vpx (both are relating to FreeSWITCH video features) are not supported inside these instructions, however if you are wanting to move off 1.4.x (since this is going end-of-life in 2016 at some stage)
then this could at least be a very good first step, especially if upgrading to Centos 7 is not possible based on your current environment setup.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">This is based on a fresh installation of CentOS 6.7 (<b>CentOS-6.7-x86_64-bin-DVD1.iso</b>). In my case I ran a default setup selecting
<b>Software Development Workstation</b>.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Logged in as <b>root</b> user.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">1) Make sure yum update is run and CentOS is up-to-date<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">2) {optional} Inside Terminal window select Edit Profile Preferences and select "Use custom default terminal size" and make it 160 x 60. Close terminal and re-open for the change to take effect.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">3) yum -y install epel-release<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">4) yum -y install git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel sqlite-devel libcurl-devel libxml2-devel libidn-devel<u></u><u></u></p>
<p class="MsoNormal">4.1) These should be already installed and up-to-date<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">5) yum -y install e2fsprogs-devel pcre-devel speex-devel ldns-devel libedit-devel libyuv-devel opus-devel libvpx-devel unbound-devel libuuid-devel libsndfile-devel<u></u><u></u></p>
<p class="MsoNormal">5.1) These should install successfully<u></u><u></u></p>
<p class="MsoNormal">5.2) Originally I also installed lua-devel, so if this has already been installed then remove it by: yum -y remove lua-devel<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">6) Note: No packages for: libvpx2*, libdb4* (so mod_vpx & mod_fsv will not be supported)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">7) Setup Lua 5.3.2 here (obviously you can select your own version):<u></u><u></u></p>
<p class="MsoNormal">7.1) cd /usr/local/src<u></u><u></u></p>
<p class="MsoNormal">7.2) curl -R -O <a href="http://www.lua.org/ftp/lua-5.3.2.tar.gz" target="_blank">
http://www.lua.org/ftp/lua-5.3.2.tar.gz</a><u></u><u></u></p>
<p class="MsoNormal">7.3) tar zxf lua-5.3.2.tar.gz<u></u><u></u></p>
<p class="MsoNormal">7.4) cd /usr/local/src/lua-5.3.2<u></u><u></u></p>
<p class="MsoNormal">7.5) vi Makefile<u></u><u></u></p>
<p class="MsoNormal"> Change: TO_LIB= liblua.a<u></u><u></u></p>
<p class="MsoNormal"> To be: TO_LIB= liblua.a liblua.so<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">Save and close (<Esc> :wq!)<u></u><u></u></p>
<p class="MsoNormal">7.6) cd /usr/local/src/lua-5.3.2/src<u></u><u></u></p>
<p class="MsoNormal">7.7) vi Makefile<u></u><u></u></p>
<p class="MsoNormal"> Change: CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)<u></u><u></u></p>
<p class="MsoNormal"> To be: CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) -fPIC<u></u><u></u></p>
<p class="MsoNormal"> Add under: LUA_A= liblua.a<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">The line: LUA_SO= liblua.so<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">Change: ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)<u></u><u></u></p>
<p class="MsoNormal"> To be: ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">Add under: $(LUAC_T): $(LUAC_O) $(LUA_A)<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt"> $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">The lines: $(LUA_SO): $(CORE_O) $(LIB_O)<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt"> $(CC) -o $@ -shared $?<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">Save and close (<Esc> :wq!)<u></u><u></u></p>
<p class="MsoNormal">7.8) make linux test<u></u><u></u></p>
<p class="MsoNormal">7.9) make linux install<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">8) cd /usr/local/src<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">9) git clone -b v1.6 <a href="https://freeswitch.org/stash/scm/fs/freeswitch.git" target="_blank">
https://freeswitch.org/stash/scm/fs/freeswitch.git</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">10) cd /usr/local/src/freeswitch<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">11) ./bootstrap.sh<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">12) vi modules.conf<u></u><u></u></p>
<p class="MsoNormal">12.1) comment out (ie. place '#' infront):<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-indent:36.0pt">mod_fsv<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-indent:36.0pt">mod_vpx<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">Save and close (<Esc> :wq!)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">13) ./configure<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">14) make<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">15) make install<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">16) make cd-sounds-install<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">17) make cd-moh-install<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">18) cd /usr/local/freeswitch/conf<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">19) vi vars.xml<u></u><u></u></p>
<p class="MsoNormal">19.1) change: <X-PRE-PROCESS cmd="set" data="default_password=1234"/> { !! set it to something different !! }<u></u><u></u></p>
<p class="MsoNormal"> Save and close (<Esc> :wq!)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">20) cd /usr/local/freeswitch/conf/autoload_configs<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">21) vi modules.conf.xml<u></u><u></u></p>
<p class="MsoNormal">21.1) comment out (ie. place '<!--' infront and '-->' at the end):<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-indent:36.0pt">mod_fsv<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-indent:36.0pt">mod_vpx<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">Save and close (<Esc> :wq!)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">22) cp /usr/local/lib/liblua.so /usr/local/freeswitch/lib/.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">23) cd /usr/local/freeswitch/bin<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">24) ./freeswitch -nonat -nonatmap<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">25) ... to exit from the FreeSWITCH console<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>