Discussion:
[SR-Users] 4.1 Compilation issue
Gilbert T. Gutierrez, Jr.
2014-08-03 18:28:37 UTC
Permalink
CentOS6.5
Kamailio 4.1

I compiled Kamailio as follows so that the configuration file would be
in "/etc/kamailio" rather than "/usr/local/etc/kamailio/"...

make cfg_prefix=/ all
make cfg_prefix=/ install

When I try to start kamailio I get the following error...

Not starting : invalid configuration file!

ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No
such file or directory

I can find no reference in the init file to that location (which does
not exist). Did I use the wrong options in make?

Gilbert
Daniel-Constantin Mierla
2014-08-04 09:46:14 UTC
Permalink
Hello,

do you have any other kamailio instance installed before?

Can you give the output of 'kamailio -I'? (that's an upper case i).

Cheers,
Daniel
Post by Gilbert T. Gutierrez, Jr.
CentOS6.5
Kamailio 4.1
I compiled Kamailio as follows so that the configuration file would be
in "/etc/kamailio" rather than "/usr/local/etc/kamailio/"...
make cfg_prefix=/ all
make cfg_prefix=/ install
When I try to start kamailio I get the following error...
Not starting : invalid configuration file!
ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No
such file or directory
I can find no reference in the init file to that location (which does
not exist). Did I use the wrong options in make?
Gilbert
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Gilbert T. Gutierrez, Jr.
2014-08-04 16:01:44 UTC
Permalink
This is a new machine that going to be used for testing. This is the
only instance, compiled from GIT. I can try recompiling it but I believe
I compiled it with the cfg option as listed.

[***@localhost ~]# kamailio -I
Print out of kamailio internals
Version: kamailio 4.1.4 (x86_64/linux) 4eb7b5
Default config: /usr/local/etc/kamailio/kamailio.cfg
Default paths to modules: /usr/local/lib64/kamailio/modules
Compile flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS,
USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
MAX_RECV_BUFFER_SIZE=262144
MAX_LISTEN=16
MAX_URI_SIZE=1024
BUF_SIZE=65535
DEFAULT PKG_SIZE=4MB
DEFAULT SHM_SIZE=32MB
ADAPTIVE_WAIT_LOOPS=1024
TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select
Source code revision ID: 4eb7b5
Compiled with: gcc 4.4.7
Compiled on: 16:27:56 Jul 31 2014
Thank you for flying kamailio!

Gilbert
Post by Daniel-Constantin Mierla
Hello,
do you have any other kamailio instance installed before?
Can you give the output of 'kamailio -I'? (that's an upper case i).
Cheers,
Daniel
Post by Gilbert T. Gutierrez, Jr.
CentOS6.5
Kamailio 4.1
I compiled Kamailio as follows so that the configuration file would
be in "/etc/kamailio" rather than "/usr/local/etc/kamailio/"...
make cfg_prefix=/ all
make cfg_prefix=/ install
When I try to start kamailio I get the following error...
Not starting : invalid configuration file!
ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No
such file or directory
I can find no reference in the init file to that location (which does
not exist). Did I use the wrong options in make?
Gilbert
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Anthony Messina
2014-08-04 16:11:53 UTC
Permalink
Post by Gilbert T. Gutierrez, Jr.
This is a new machine that going to be used for testing. This is the
only instance, compiled from GIT. I can try recompiling it but I believe
I compiled it with the cfg option as listed.
Print out of kamailio internals
Version: kamailio 4.1.4 (x86_64/linux) 4eb7b5
Default config: /usr/local/etc/kamailio/kamailio.cfg
Default paths to modules: /usr/local/lib64/kamailio/modules
Compile flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS,
USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
MAX_RECV_BUFFER_SIZE=262144
MAX_LISTEN=16
MAX_URI_SIZE=1024
BUF_SIZE=65535
DEFAULT PKG_SIZE=4MB
DEFAULT SHM_SIZE=32MB
ADAPTIVE_WAIT_LOOPS=1024
TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select
Source code revision ID: 4eb7b5
Compiled with: gcc 4.4.7
Compiled on: 16:27:56 Jul 31 2014
Thank you for flying kamailio!
Gilbert
Post by Daniel-Constantin Mierla
Hello,
do you have any other kamailio instance installed before?
Can you give the output of 'kamailio -I'? (that's an upper case i).
Cheers,
Daniel
Post by Gilbert T. Gutierrez, Jr.
CentOS6.5
Kamailio 4.1
I compiled Kamailio as follows so that the configuration file would
be in "/etc/kamailio" rather than "/usr/local/etc/kamailio/"...
make cfg_prefix=/ all
make cfg_prefix=/ install
When I try to start kamailio I get the following error...
Not starting : invalid configuration file!
ERROR: loading config file(/usr/local/etc/kamailio/kamailio.cfg): No
such file or directory
I can find no reference in the init file to that location (which does
not exist). Did I use the wrong options in make?
Gilbert, I just started building Kamailio for Fedora 20, 21 & EL 7. You can
take a look at my RPM spec file and patches here:

https://messinet.com/rpms/browser/kamailio

The notable difference with EL6 will be the lack of systemd support. You can
probably use a similar spec file without my patches, which were mainly
implemented to move the sockets and FIFOs to /run/kamailio instead of /tmp,
which would allow for running Kamailio with systemd and PrivateTmp=True while
still allowing access to FIFO and/or socket commands.

-A
--
Anthony - https://messinet.com/ - https://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
Loading...