3

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?

4

1 回答 1

5

看起来你遇到了一些和我一样的东西。我要去吃午饭,但稍后会给出更好的答案。现在,这是我的终端命令的精确副本。您可以看到我必须如何安装依赖项然后重试。

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

我正在使用root。如果你不是,你可能不得不在很多这些之前使用 sudo。我认为其中一些步骤还有另一个 SO 问题,但这也不是一步一步的,我必须阅读几个来源,然后仍然进行一些实验。

我在/etc/systemd/system/turnserver.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
于 2017-11-12T20:34:18.410 回答