I have a debian 10.7 machine where I install default-mysql-server package for the database. After that I follow the install guide and everything goes smoothly until I have to install the init.d scripts.
1. I do "cd /usr/local/src/kamailio-5.4/kamailio'
2. I do "make install-initd-debian"
Then make fails with the following error
"
root@kamServ:/usr/local/src/kamailio-5.4/kamailio# make install-initd-debian
make -C src/ install-initd-debian
make[1]: Entering directory '/usr/local/src/kamailio-5.4/kamailio/src'
sed -e "s#DAEMON=/usr/sbin/kamailio#DAEMON=/usr/local/sbin/kamailio#g" \
-e "s#NAME=kamailio#NAME=kamailio#g" \
-e "s#DESC=Kamailio#DESC=kamailio#g" \
-e "s#HOMEDIR=/run/kamailio#HOMEDIR=/run/kamailio#g" \
-e "s#DEFAULTS=/etc/default/kamailio#DEFAULTS=/etc/default/kamailio#g" \
-e "s#CFGFILE=/etc/kamailio/kamailio.cfg#CFGFILE=/usr/local/etc/kamailio/kamailio.cfg#g" \
< pkg/kamailio/deb/debian/kamailio.init \
> /etc/init.d/kamailio
/bin/sh: 1: cannot open pkg/kamailio/deb/debian/kamailio.init: No such file
make[1]: *** [Makefile:982: install-initd-debian] Error 2
make[1]: Leaving directory '/usr/local/src/kamailio-5.4/kamailio/src'
make: *** [Makefile:34: install-initd-debian] Error 2
"
Am I doing something wrong? Possibly in the wrong directory? If you need any more information please don't hesitate to ask.
Sincerely,
Matthew Sherwood