Installing CoTurn 4.5.0.6 on Ubuntu 16.04.3 x64 TLS not working

这一生的挚爱 提交于 2019-12-06 13:47:10

问题


I am trying to install CoTurn 4.5.0.6 on a Digital Ocean Ubuntu 16.04.3 LTS. I can't use sudo apt-get install coturn since it installs version 4.5.0.3. Also I can't install Ubuntu 17.10 since I need long term support (TLS).

I create a droplet on Digital Ocean with Ubuntu 16.04.3 LTS. Then I downloaded CoTurn:

wget https://github.com/coturn/coturn/archive/4.5.0.6.tar.gz

I unpack it:

tar xvfz 4.5.0.6.tar.gz

Go inside the folder:

cd coturn-4.5.0.6

Install Libraries & Utilities needed:

sudo apt-get install libssl-dev
sudo apt-get install sqlite3
sudo apt-get install libsqlite3-dev
sudo apt-get install libevent-dev
sudo apt-get install libpq-dev
sudo apt-get install mysql-client
sudo apt-get install libmysqlclient-dev
sudo apt-get install libhiredis-dev

The last one gives an error: E: Unable to locate package libhiredis-dev.

After that running:

./configure

I get error messages:

ginstall: not found
install is /usr/bin/install
pkill is /usr/bin/pkill
sqlite3 is /usr/bin/sqlite3
Use TMP dir /var/tmp
Compiler: unknown
ERROR: cannot use compiler unknown properly

Can someone give me a step by step instructions to install CoTurn?


回答1:


Looks like you ran into some of the same stuff I did. I am going to lunch, but will give a better answer later. For now, here's an exact copy from my terminal commands. You can see how I had to install dependencies and then retry.

apt-get update && apt-get install libssl-dev libevent-dev libhiredis-dev make –y
mkdir /coturn
cd coturn
wget http://turnserver.open-sys.org/downloads/v4.5.0.6/turnserver-4.5.0.6.tar.gz
tar -zxvf turnserver-4.5.0.6.tar.gz
cd turnserver-4.5.0.6
./configure
apt-get install libssl-dev
install libsqlite3
apt-get install libsqlite3
apt-get install libsqlite3-dev
apt-get install libevent-dev
apt-get install libpq-dev
apt-get install libmysqlclient-dev
apt-get install libhiredis-dev
./configure
apt-get install coturn4.5.0.6
Compiler: unknown
apt-get install gdebi-core
gdebi coturn*.deb
./configure
apt-get install ginstall
make install
CC=g** ./configure
apt-get install build-essential
cd ..
tar -zxvf turnserver-4.5.0.6.tar.gz
cd turnserver-4.5.0.6
./configure
Make install
apt-get --purge remove coturn

I was using root. If you are not, you'll probably have to sudo before a lot of these. I think there is another SO question with some of these steps, but it wasn't step by step either, I had to read several sources and then still experiment some.

I made a file like this in /etc/systemd/system/turnserver.service Whatever you name the file will be the name of the service. sudo systemctl enable turnserver

[Unit]
Description=Turnserver Service

[Service]
User=root
Type=simple
TimeoutSec=0
Restart=on-failure
#RestartPreventExitStatus=1
#PrivateTmp=false
PIDFile=/var/run/turnserver_service.pid
ExecStart=/coturn/turnserver-4.5.0.6/bin/turnserver
KillMode=process

StandardOutput=null
StandardError=null

[Install]
WantedBy=default.target


来源:https://stackoverflow.com/questions/47249001/installing-coturn-4-5-0-6-on-ubuntu-16-04-3-x64-tls-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!