The error is make[1]: *** No rule to make target /usr/src/asterisk-20.1.0/third-party/pjproject/pjproject.symbols', needed by libasteriskpj.exports’. Stop.
make: *** [main] Error 2 while running sudo make
please let me know which version of PJSIP and jansson I need download for Asterisk 20.1.0? Do I need to configure third_party tools first and then configure/make asterisk?
You don’t have to download either, or configure either. Bundled PJSIP is enabled by default, and jansson can be done that way by passing “–with-jansson-bundled” to configure. Asterisk will download, configure, build, and embed them.
I don’t know why this is failing on your system, but we haven’t had any other reports so it may be environmental. If you use the install_prereq script in the contrib/scripts directory does it download additional things, and afterwards work?
No package speexdsp-devel available.
Package 1:mariadb-devel-5.5.68-1.el7.x86_64 already installed and latest version
No package iksemel-devel available.
No package hoard available.
Nothing to do
#############################################
yum -y update
sudo setenforce 0
sestatus
sudo yum install -y epel-release dmidecode gcc-c++ ncurses-devel libxml2-devel make wget openssl-devel newt-devel kernel-devel sqlite-devel libuuid-devel gtk2-devel jansson-devel binutils-devel libedit libedit-devel wget
sudo yum -y groupinstall “Development Tools”
cd /usr/src/
ls
sudo git clone GitHub - akheron/jansson: C library for encoding, decoding and manipulating JSON data
cd jansson
sudo autoreconf -i
sudo ./configure --prefix=/usr/
sudo make
sudo make install
cd ~
git clone URL pjproject.git
cd pjproject
./configure CFLAGS=“-DNDEBUG -DPJ_HAS_IPV6=1” --prefix=/usr --libdir=/usr/lib64 --enable-shared --disable-video --disable-sound --disable-opencore-amr
make dep
make
sudo make install
sudo ldconfig
ldconfig -p | grep pj
cd /usr/src
wget URL asterisk-20.1.0.tar.gz
sudo tar xvf asterisk-20.1.0.tar.gz
ls
cd asterisk-20.1.0
sudo yum install svn
sudo ./contrib/scripts/get_mp3_source.sh
sudo contrib/scripts/install_prereq install
sudo ./configure --libdir=/usr/lib64 --with-jansson-bundled
sudo make menuselect
sudo make
sudo make install
sudo make samples
sudo make config
sudo systemctl restart asterisk
systemctl status asterisk
The error is make[1]: *** No rule to make target /usr/src/asterisk-20.1.0/third-party/pjproject/pjproject.symbols', needed by libasteriskpj.exports’. Stop.
make: *** [main] Error 2 while running sudo make
If you want to use the system installed version of PJSIP, then you’d need to tell configure that or else things will go awry. I believe it would be “–with-pjproject-bundled=no” though having not done such a thing in years I can’t say for certain.
Asterisk will automatically download, build, and use PJSIP without any involvement by you. You’ve messed that up by manually downloading and installing a version of PJSIP on the system globally.
You need to either remove that, or tell Asterisk to use with the argument I gave to configure (you REALLY don’t want to use their master branch though because it can cease working with Asterisk).
bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? Possible reason follows.
bzip2: Inappropriate ioctl for device
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover’ program to attempt to recover
data from undamaged sections of corrupted files.
/bin/tar: Child returned status 2
/bin/tar: Error is not recoverable: exiting now
mv: cannot stat ‘pjproject-2.12.1’: No such file or directory
make: *** [source/.unpacked] Error 1
failed
configure: Unable to configure third-party/pjproject
configure: error: Re-run the ./configure command with ‘NOISY_BUILD=yes’ appended to see error details.
Github was having issues, which is where it downloads from so it is entirely possible that is the reason. According to their status page things should be returning to normal.