Rocky9.5编译freeswitch1.10.12

nmtui
reboot
rm -rf *
tar xvfz freeswitch-1.10.12.-release.tar.gz 
mv freeswitch-1.10.12.-release freeswitch
ls
cd freeswitch
ls
dnf install epel-release -y
dnf update -y
dnf groupinstall "Development Tools" -y
ls
dnf install yasm -y
dnf install pcre pcre-devel -y
dnf install libedit-devel -y
dnf install libtiff-devel -y
dnf install wget -y
dnf install libjpeg-devel -y
dnf install spandsp-devel -y
dnf install postgresql-devel -y
dnf install mariadb-devel -y
dnf install -y nasm
ls
./configure 
cd ..
ls
tar xvfz spandsp-3.0.0-0d2e6ac65e.tar.gz 
cd spandsp
ls
rm -rf config
./bootstrap.sh 
make && make install
./configure
make && make install
cd ../freeswitch
./configure 
ls
find / -name spandsp
/usr/local/include/spandsp version
cat /usr/local/lib/pkgconfig/spandsp.pc
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
./configure 
cd ..
git clone https://github.com/freeswitch/sofia-sip
cd sofia-sip/
./bootstrap.sh 
make && make install
cd ..fre
cd ../freeswitch
ls
./configure 
cd ../sofia-sip/
ls
./bootstrap.sh 
./configure
make && make install
cd ../freeswitch
ls
./configure 
nf install speex-devel speexdsp-devel -y
dnf install speex-devel speexdsp-devel -y
./configure 
make
dnf install uuid-devel
make
make clean
./configure 
make
find / -name uuid
sudo dnf install libuuid-devel
make
sudo dnf install libuuid
make clean
 ./configure LDFLAGS="-luuid"
make
dnf install libopus-devel
dnf install opus-devel
make
find / -name opus
pkg-config --cflags --libs opus
./configure PKG_CONFIG_PATH=$PKG_CONFIG_PATH
makke
make
dnf install libsilk-devel
dnf install silk-devel
dnf install silk silk-devel
git clone https://github.com/ymesh/libsilk.git
cd ..
ls
tar xvfz libsilk-1.0.8.tar.gz 
ls
ccd libsilk-1.0.8
ls
cd libsilk-1.0.8
ls
./bootstrap.sh 
ls
./configure
make && make install
cd ..
cd freeswitch
make clean
./configure PKG_CONFIG_PATH=$PKG_CONFIG_PATH
make
make install
id fs
cd ~
mdir libs
mkdir libs
cd libs
ls
touch wget.sh
sh ./wget.sh 
wget
wget https://files.freeswitch.org/downloads/libs/zlib.tar.bz2
groupadd tdulins
useradd -g tdulins tdulins
chown -R tdulins:tdulins /usr/local/freeswitch
vi /etc/systemd/system/freeswitch.service
systemctl daemon-reload
systemctl enable freeswitch
systemctl start freeswitch
 ls
cd ~
reboot

你可能感兴趣的:(VOIP那些事,freeswitch)