Build error on CentOS 7

2,684 views
Skip to first unread message

mkh

unread,
Jan 17, 2016, 2:30:14 PM1/17/16
to meetecho-janus
Hi Janus community :)

It is my first post here. I'm trying to install Janus on CentOS 7. I could install all dependencies and create the make file:

$ ./configure --prefix=/opt/janus --disable-docs --disable-websockets --libdir=/usr/lib64


But `make` stops with the following error:

$ make
...
  CC       plugins/plugins_libjanus_audiobridge_la-janus_audiobridge.lo
In file included from plugins/../debug.h:15:0,
                 from plugins/janus_audiobridge.c:377:
/usr/include/glib-1.2/glib.h:66:24: fatal error: glibconfig.h: No such file or directory
 #include <glibconfig.h>
                        ^
compilation terminated.
make[2]: *** [plugins/plugins_libjanus_audiobridge_la-janus_audiobridge.lo] Error 1
make[2]: Leaving directory `/root/Development/janus-gateway'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Development/janus-gateway'
make: *** [all] Error 2


I have `glibconfig.h` in the following paths:

$ locate glibconfig.h
/usr/lib64/glib/include/glibconfig.h
/usr/lib64/glib-2.0/include/glibconfig.h


And none of the following commands helped:

$ export PATH=$PATH:/usr/lib64/glib-2.0/include
$ export JANUS_CFLAGS=$JANUS_CFLAGS:'-I/usr/lib64/glib-2.0/include'
$ make -I/usr/lib64/glib-2.0/include


What am I doing wrong?

Lorenzo Miniero

unread,
Jan 18, 2016, 5:07:41 AM1/18/16
to meetecho-janus
CentOS is known to give tons of problems with respect to Janus. According to your log, glib 1.2 is being used instead of 2.0, which means you probably have both installed and the wrong one is being detected.

L.

mkh

unread,
Jan 18, 2016, 5:16:20 AM1/18/16
to meetecho-janus
Thanks for the reply Lorenzo. Do you have any idea how to introduce the right version of the glib to make?

Lorenzo Miniero

unread,
Jan 18, 2016, 5:17:10 AM1/18/16
to meetecho-janus
No, I'm not familiar with CentOS sorry.

L.

Амнон Исраэли

unread,
Jan 18, 2016, 9:14:10 AM1/18/16
to meetecho-janus
I use CentoOS 7.
No problem with build janus

mkh

unread,
Jan 19, 2016, 10:08:27 AM1/19/16
to meetecho-janus
Thanks Амнон for informing. I do believe it should work on CentOS 7. I will fix the error.

Ajay Choudary

unread,
Jan 21, 2016, 1:40:36 PM1/21/16
to meetecho-janus
Try export LDFLAGS & PKG_CONFIG_PATH before configure, i installed janus in CentOS-6.

mkh

unread,
Jan 22, 2016, 1:59:31 AM1/22/16
to meetecho-janus
Thank you Ajay for the response!

Actually the following command fixed the issue and no more export is required:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig


But when running it was not able to find "libusrsctp.so" so I had to do:

export LD_LIBRARY_PATH=/usr/lib

Janus installed successfully!

Joe Palmer

unread,
May 24, 2016, 8:57:51 AM5/24/16
to meetecho-janus
I am also struggling to get Janus compiled for Centos7. My problem is Janus cannot find 'sofia-sip-ua' as yum install sofia-sip-devel says no package available.

I tried compiling sofia-sip from source but it requires some really old libraries from OpenSSL. I've tried installing it from various other repos but it still isn't found by Janus.

Did anyone else have this problem or know how I might solve it?

Many thanks,

Joe

Joe Palmer

unread,
May 24, 2016, 11:33:20 AM5/24/16
to meetecho-janus
OK, I finally found an RPM that worked using this tool:


I was able to install Sofia-SIP with this:


Hopefully this will help someone else. Maybe this is worth adding to the documentation? I can create a pull request if helpful...

Lorenzo Miniero

unread,
May 24, 2016, 11:40:37 AM5/24/16
to meetecho-janus
Il giorno martedì 24 maggio 2016 17:33:20 UTC+2, Joe Palmer ha scritto:
OK, I finally found an RPM that worked using this tool:


I was able to install Sofia-SIP with this:


Hopefully this will help someone else. Maybe this is worth adding to the documentation? I can create a pull request if helpful...




I don't think that's needed, a search on the forum here would yield the result. If we start adding details on every single distro out there the docs will explode...

L.

Joe Palmer

unread,
May 24, 2016, 11:42:49 AM5/24/16
to meetecho-janus
OK, good point!
Reply all
Reply to author
Forward
0 new messages