On darwin (macos), as I tested the usual commands I do when developing/testing, with the version before my commit I got the error:

 0(44284) ERROR: <core> [main.c:3141]: main(): failed to create runtime dir /usr/local/var/run/kamailio, check directory permissions

It was simply after mkdir buildmac; cd buildmac; cmake ..; make and then running locally, not doing the make install.

Also, as I tested on the Ubuntu 24.04, I got similar situation:

 0(562038) DEBUG: jsonrpcs [jsonrpcs_fifo.c:570]: jsonrpc_fifo_mod_init(): fifo path is [/usr/local/var/run/kamailio/kamailio_rpc.fifo]
 0(562038) DEBUG: jsonrpcs [jsonrpcs_fifo.c:157]: jsonrpc_init_fifo_file(): testing if fifo file exists ...
 0(562038) ERROR: jsonrpcs [jsonrpcs_fifo.c:72]: jsonrpc_init_fifo_server(): Can't create FIFO: Permission denied (mode=432)

MacOS is not a GNU System, but Ubuntu should be, so I don't know what actually happens -- I just compared with the old-makefiles to figure out a solution.

Furthermore, I think that the recommended standard path for runtime folders on Linux'es is now /run/ no longer /var/run/, I remember that we had to do such change (also checking the ubunut, /var/run is a synlink to /run -- @linuxmaniac: am I right here?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/commit/1860420fea7ed57d25bc7d735b46c11c739aa0c4/150535482@github.com>