Install Asterisk 20.4.0 on Rocky Linux 9.2

Hi Asterisk Team,

I’ve tried to install Asterisk on Rocky Linux. I read the next doc: Installing Asterisk - Documentation, I used these lines and added others, but Asterisk wasn’t installed.

The error is: “/etc/rc.d/init.d/asterisk: line 42: /etc/rc.d/init.d/functions: No such file or directory”. I installed the package “initscripts” and Asterisk was running. But, another error appears:
“asterisk.service: can’t open pid file /run/asterisk/asterisk.pid (yet?) after start: operation not permitted”.

I need to install Asterisk on Rocky Linux. I’m sure, you know the method correct. ¿Another version of Asterisk? ¿Another version of Rocky Linux?

Sincerely,
Mauro

vi /etc/selinux/config

selinux=disabled

systemctl stop firewalld && systemctl disable firewalld

dnf install epel-release

dnf config-manager --set-enabled crb

dnf group install “Development Tools”

cd /usr/src

wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz

tar xvfz asterisk-20-current.tar.gz

cd asterisk-20.4.0/

dnf install -y initscripts svn chkconfig

./contrib/scripts/get_mp3_source.sh

contrib/scripts/install_prereq install

./configure --libdir=/usr/lib64 --with-jansson-bundled

make menuselect

make

make install

make samples

make basic-pbx

make config

ldconfig

reboot

asterisk -r

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.