本文介绍了在Ubuntu 16.04.3 x64 TLS上安装CoTurn 4.5.0.6无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Digital Ocean Ubuntu 16.04.3 LTS上安装CoTurn 4.5.0.6.我不能使用sudo apt-get install coturn,因为它安装了版本4.5.0.3.另外,由于我需要长期支持(TLS),因此我无法安装Ubuntu 17.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).

我使用Ubuntu 16.04.3 LTS在Digital Ocean上创建了一个Droplet.然后我下载了CoTurn:

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

我打开包装:

tar xvfz 4.5.0.6.tar.gz

进入文件夹:

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

最后一个给出错误:E: Unable to locate package libhiredis-dev.

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

在运行之后:

./configure

我收到错误消息:

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

有人可以给我逐步说明来安装CoTurn吗?

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

推荐答案

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

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

我正在使用root.如果不是这样,那么您可能必须在其中许多内容之前先进行sudo.我认为其中一些步骤还有另一个SO问题,但这也不是循序渐进的,我不得不阅读一些资料,然后仍然尝试一些.

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.

我在/etc/systemd/system/turnserver.service中创建了一个像这样的文件,无论您使用什么文件名都是服务的名称. sudo systemctl enable turnserver

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

这篇关于在Ubuntu 16.04.3 x64 TLS上安装CoTurn 4.5.0.6无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 06:14