Error while trying to install Licode on Ubuntu 16.04 LTS

Hello Lynckia,

I have tried to install Licode on Ubuntu 16.04 (​Linux user-VirtualBox 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux) doing the instructions you have written on the webpage

http://lynckia.com/licode/install.html

and when I had to install Erizo I get an error that said:

Installing erizo…
– Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
– Found glib-2.0: /usr/include/glib-2.0, /usr/lib/x86_64-linux-gnu/libglib-2.0.so;/usr/lib/x86_64-linux-gnu/libgobject-2.0.so;/usr/lib/x86_64-linux-gnu/libgthread-2.0.so
– Boost version: 1.58.0
– Found the following Boost libraries:
– thread
– regex
– system
– chrono
– date_time
– atomic
CMake Error at CMakeLists.txt:7 (message):
lib not found: AVUTIL-NOTFOUND check README
Call Stack (most recent call first):
CMakeLists.txt:91 (test_lib)

– Configuring incomplete, errors occurred!
See also “/home/user/licode/erizo/build/CMakeFiles/CMakeOutput.log”.
See also “/home/user/licode/erizo/build/CMakeFiles/CMakeError.log”.

Logs:

CMakeOutput.log

The system is: Linux - 4.4.0-31-generic - x86_64
Compiling the C compiler identification source file “CMakeCCompilerId.c” succeeded.
Compiler: /usr/bin/cc
Build flags:
Id flags:

The output was:
0

Compilation of the C compiler identification source “CMakeCCompilerId.c” produced “a.out”

The C compiler identification is GNU, found in “/home/user/licode/erizo/build/CMakeFiles/3.5.1/CompilerIdC/a.out”

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” succeeded.
Compiler: /usr/bin/c++
Build flags:
Id flags:

The output was:
0

Compilation of the CXX compiler identification source “CMakeCXXCompilerId.cpp” produced “a.out”

The CXX compiler identification is GNU, found in “/home/user/licode/erizo/build/CMakeFiles/3.5.1/CompilerIdCXX/a.out”

Determining if the C compiler works passed with the following output:
Change Dir: /home/user/licode/erizo/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" “cmTC_e2a2d/fast”
/usr/bin/make -f CMakeFiles/cmTC_e2a2d.dir/build.make CMakeFiles/cmTC_e2a2d.dir/build
make[1]: se entra en el directorio '/home/user/licode/erizo/build/CMakeFiles/CMakeTmp’
Building C object CMakeFiles/cmTC_e2a2d.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_e2a2d.dir/testCCompiler.c.o -c /home/user/licode/erizo/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_e2a2d
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e2a2d.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_e2a2d.dir/testCCompiler.c.o -o cmTC_e2a2d -rdynamic
make[1]: se sale del directorio ‘/home/user/licode/erizo/build/CMakeFiles/CMakeTmp’

Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/user/licode/erizo/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" “cmTC_c8cb1/fast”
/usr/bin/make -f CMakeFiles/cmTC_c8cb1.dir/build.make CMakeFiles/cmTC_c8cb1.dir/build
make[1]: se entra en el directorio '/home/user/licode/erizo/build/CMakeFiles/CMakeTmp’
Building C object CMakeFiles/cmTC_c8cb1.dir/CMakeCCompilerABI.c.o
/usr/bin/cc -o CMakeFiles/cmTC_c8cb1.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.5/Modules/CMakeCCompilerABI.c

CMakeError.log:

​Determining if the pthread_create exist failed with the following output:
Change Dir: /home/user/licode/erizo/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" “cmTC_10afe/fast”
/usr/bin/make -f CMakeFiles/cmTC_10afe.dir/build.make CMakeFiles/cmTC_10afe.dir/build
make[1]: se entra en el directorio ‘/home/user/licode/erizo/build/CMakeFiles/CMakeTmp’
Building C object CMakeFiles/cmTC_10afe.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_10afe.dir/CheckSymbolExists.c.o -c /home/user/licode/erizo/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_10afe
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_10afe.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_10afe.dir/CheckSymbolExists.c.o -o cmTC_10afe -rdynamic
CMakeFiles/cmTC_10afe.dir/CheckSymbolExists.c.o: En la función main': CheckSymbolExists.c:(.text+0x16): referencia apthread_create’ sin definir
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_10afe.dir/build.make:97: fallo en las instrucciones para el objetivo 'cmTC_10afe’
make[1]: *** [cmTC_10afe] Error 1
make[1]: se sale del directorio '/home/user/licode/erizo/build/CMakeFiles/CMakeTmp’
Makefile:126: fallo en las instrucciones para el objetivo 'cmTC_10afe/fast’
make: *** [cmTC_10afe/fast] Error 2

File /home/user/licode/erizo/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/user/licode/erizo/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" “cmTC_054a0/fast”
/usr/bin/make -f CMakeFiles/cmTC_054a0.dir/build.make CMakeFiles/cmTC_054a0.dir/build
make[1]: se entra en el directorio '/home/user/licode/erizo/build/CMakeFiles/CMakeTmp’
Building C object CMakeFiles/cmTC_054a0.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_054a0.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_054a0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_054a0.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_054a0.dir/CheckFunctionExists.c.o -o cmTC_054a0 -rdynamic -lpthreads
/usr/bin/ld: no se puede encontrar -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_054a0.dir/build.make:97: fallo en las instrucciones para el objetivo 'cmTC_054a0’​

Can you help me with that error?

Thank you a lot!

I hope you will know how to solve it!

We don’t officially support Ubuntu 16 atm. There’s people making it work in this thread -
Any plan to support newer versions of Ubuntu?

However, any change that we make in the installation process may break that since we only actively test in Ubuntu 14.04 and Docker for now.