Install janus on ubuntu 16.10

3,895 views
Skip to first unread message

Freddy Daniel

unread,
Jun 29, 2017, 9:04:17 AM6/29/17
to meetecho-janus
Please anyone help me to install Janus WebRTC on my Ubuntu 16.10. Documentation and guides in gitlab seems unfamiliar to me.


Firas Abd Alrahman

unread,
Jun 29, 2017, 12:33:13 PM6/29/17
to meetecho-janus

Freddy Daniel

unread,
Jun 30, 2017, 2:35:11 AM6/30/17
to meetecho-janus
But Above steps fails 
 
below is my terminal session output after run  (sh autogen.sh)

root@freddy-tst:/home/freddy/janus-gateway# sh autogen.sh 
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:11: installing './compile'
configure.ac:8: installing './missing'
Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
root@freddy-tst:/home/freddy/janus-gateway# cd ..
root@freddy-tst:/home/freddy# mkdir -p ~/build
root@freddy-tst:/home/freddy# cd ~/build
root@freddy-tst:~/build# git clone git://github.com/meetecho/janus-gateway.git
Cloning into 'janus-gateway'...
remote: Counting objects: 11497, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 11497 (delta 24), reused 26 (delta 13), pack-reused 11454
Receiving objects: 100% (11497/11497), 16.02 MiB | 138.00 KiB/s, done.
Resolving deltas: 100% (8524/8524), done.
Checking connectivity... done.
root@freddy-tst:~/build# cd janus-gateway
root@freddy-tst:~/build/janus-gateway# sh autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:11: installing './compile'
configure.ac:16: installing './config.guess'
configure.ac:16: installing './config.sub'
configure.ac:8: installing './install-sh'
configure.ac:8: installing './missing'
Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
root@freddy-tst:~/build/janus-gateway# ./configure --disable-data-channels --disable-rabbitmq --disable-docs --prefix=/opt/janus LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" CFLAGS="-I/usr/local/include"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for JANUS... yes
checking for nice_agent_set_port_range in -lnice... yes
checking for nice_address_equal_no_port in -lnice... yes
checking for dlopen in -ldl... yes
checking for srtp_init in -lsrtp2... no
checking for srtp_init in -lsrtp... yes
checking srtp/srtp.h usability... yes
checking srtp/srtp.h presence... yes
checking for srtp/srtp.h... yes
checking for SRTP15X... no
configure: error: Package requirements (
                                                                 libsrtp >= 1.5.0
                                                               ) were not met:

No package 'libsrtp' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SRTP15X_CFLAGS
and SRTP15X_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

After i run to next command (make && sudo make install) i got below output

root@freddy-tst:~/build/janus-gateway# make && sudo make install
make: *** No targets specified and no makefile found.  Stop.
root@freddy-tst:~/build/janus-gateway# sudo make configs
make: *** No rule to make target 'configs'.  Stop.
root@freddy-tst:~/build/janus-gateway# 


Please help me...

Mirko Brankovic

unread,
Jun 30, 2017, 3:37:40 AM6/30/17
to meetecho-janus
you need to install 
libsrtp-dev
so sudo apt-get install libsrpt-dev

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
Mirko

Lorenzo Miniero

unread,
Jun 30, 2017, 5:12:06 AM6/30/17
to meetecho-janus
As explained in giant characters in the guideline above, please do NOT post huge bunches of text inline in these messages.

L.
Message has been deleted

Freddy Daniel

unread,
Jun 30, 2017, 7:25:35 AM6/30/17
to meetecho-janus
Still i can't install janus. There is no package libsrtp-dev from apt-get install, So i installed it with aptitude install .
But it's still showing 

freddy@freddy-tst:~/janus-gateway$ sudo ./configure --disable-data-channels --disable-rabbitmq --disable-docs --prefix=/opt/janus LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" CFLAGS="-I/usr/local/include"
-
-
configure: error: Package requirements (
                                                                 libsrtp >= 1.5.0
                                                               ) were not met:

No package 'libsrtp' found
-
-

Also I have downloaded package from https://github.com/cisco/libsrtp . And copied to usr/local/lib/ nothing seems to work.

Lorenzo Miniero

unread,
Jun 30, 2017, 7:28:58 AM6/30/17
to meetecho-janus
I have the feeling you didn't follow the README instructions at all, as it's all explained in quite detail there. For what concerns libsrtp:

wget https://github.com/cisco/libsrtp/archive/v2.0.0.tar.gz
tar xfv v2.0.0.tar.gz
cd libsrtp-2.0.0
./configure --prefix=/usr --enable-openssl
make shared_library && sudo make install
Hope this helps,
Lorenzo

Mirko Brankovic

unread,
Jun 30, 2017, 7:30:50 AM6/30/17
to meetecho-janus
make sure you install libsrtp also,
aptitude install libsrtp :D

On Fri, Jun 30, 2017 at 1:23 PM, Freddy Daniel <fre...@techgentsia.com> wrote:
Sorry for Huge Terminal session posted here. Still i can't install janus. There is no package libsrtp-dev from apt-get install, So i installed it with aptitude install .
But it's still showing 

freddy@freddy-tst:~/janus-gateway$ sudo ./configure --disable-data-channels --disable-rabbitmq --disable-docs --prefix=/opt/janus LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" CFLAGS="-I/usr/local/include"
-
-
configure: error: Package requirements (
                                                                 libsrtp >= 1.5.0
                                                               ) were not met:

No package 'libsrtp' found
-
-

Also I have downloaded package from https://github.com/cisco/libsrtp . And copied to usr/local/lib/ nothing seems to work.

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
Mirko

Mirko Brankovic

unread,
Jun 30, 2017, 7:32:08 AM6/30/17
to meetecho-janus
if the >=1.5.0 version is not there,  you can always build it from source like described on Janus github readme.md
--
Regards,
Mirko

Freddy Daniel

unread,
Jul 3, 2017, 7:23:20 AM7/3/17
to Mirko Brankovic, meetecho-janus
Thanks.. Finally It's done...but https not working...even after i enabled in janus.transport.http.cfg file


Thanks& Regards,

            Freddy Daniel


You received this message because you are subscribed to a topic in the Google Groups "meetecho-janus" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/meetecho-janus/Ubp_lNJ5l9w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to meetecho-janus+unsubscribe@googlegroups.com.

Freddy Daniel

unread,
Jul 5, 2017, 6:28:32 AM7/5/17
to meetecho-janus
Sorry for late response  here's my terminal log after janus start https://pastebin.com/ZaKMufy3

Freddy Daniel

unread,
Jul 5, 2017, 8:00:22 AM7/5/17
to meetecho-janus
Thanks everyone... thanks a lot....Your supported me great....I think it was mistake from my side .Finally It's listening https port after enabling http and https for janus admin on "janus.transport.http.cfg"

Freddy Daniel

unread,
Jul 5, 2017, 8:01:32 AM7/5/17
to meetecho-janus
Thanks Finally It's working fine....


Thanks& Regards,

            Freddy Daniel


On Wed, Jul 5, 2017 at 3:58 PM, Freddy Daniel <fre...@techgentsia.com> wrote:
Sorry for late response  here's my terminal log after janus start https://pastebin.com/ZaKMufy3

--

NIGEL SMITH

unread,
Jun 25, 2019, 11:37:18 AM6/25/19
to meetecho-janus
Is it possible to install a janus pre-compiled BINARY instead of going through the hell of compiling it?
Reply all
Reply to author
Forward
0 new messages