ubuntu16 下安裝freeswitch 1.8.3
https://www.codetd.com/article/5754468
apt-get install pkg-config
libsqlite3-dev
sudo apt-get install libcurl4-openssl-dev libspeex-dev libspeexdsp-dev libldns-dev libedit-dev libtiff-dev yasm uuid-dev
wget https://files.freeswitch.org/freeswitch-releases/freeswitch-1.8.3.tar.gz
./configure --prefix=/home/sjw/local/freeswitch --enable-core-odbc-support
apt-get install libreadline-dev lua5.2 lua5.2-doc liblua5.2-dev
安裝完將相關標頭檔案拷貝一下
cp /usr/include/lua5.2/*.h src/mod/languages/mod_lua/
將so檔案做個連結
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/lib/x86_64-linux-gnu/liblua.so
如果還是報這個錯誤, 就註釋這兩行,在Makefile:
vim freeswitch/src/mod/codecs/mod_opus/Makefile
# Comment line 896 & 897
#install: error
#all: error
git clone https://github.com/signalwire/libks.git
cd libks
cmake .
cp /usr/lib/pkgconfig/libks.pc /usr/lib64/pkgconfig/ #這個比較坑爹,不然還是還找不到libks模組
git clone https://github.com/signalwire/signalwire-c.git
cd signalwire-c
cmake .
make
make install
cp /usr/local/lib/pkgconfig/*.pc /usr/lib64/pkgconfig/
wget http://www.cmake.org/files/v3.11/cmake-3.11.3.tar.gz
$ tar xf cmake-3.11.3.tar.gz
$ cd cmake-3.11.3
$ ./configure
$ make
<