I’m new in Asterisk i have tried to install it on centOs i was stacked in the below step
i have installed the dependencies but i got the same error any help please ?
pjproject] Downloading https://raw.githubusercontent.com/asterisk/third-party/ master/pjproject/2.6/pjproject-2.6.tar.bz2 to /tmp/pjproject-2.6.tar.bz2
make: *** [/tmp/pjproject-2.6.tar.bz2] Error 4
make: *** Deleting file `/tmp/pjproject-2.6.tar.bz2’
failed
configure: Unable to configure third-party/pjproject
configure: error: Re-run the ./configure command with ‘NOISY_BUILD=yes’ appended to see error details.
[root@localhost asterisk-15.0.0]#
Asterisk 11 reaches End-of-Life (EOL) next week. Therefore, I recommend investigate this issue in more detail. In your folder ‘/tmp’, is there still the file ‘pjproject-2.6.tar.bz2’? If yes, please, remove that manually. Then, give (the non-certified) Asterisk 13 LTS a go. That variant does not build the PJProject on default. Therefore it should do. When ‘./configure’ works, try ‘./configure --with-pjproject-bundled’ and post the results! Perhaps you have a permission thing about your tmp folder? By the way, which version of CentOS are you using?
Were you able to investigate further? Are you on a resource constraint device like a Raspberry Pi?
What happens, when you go for wget -O- --timeout=5 https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/2.6/pjproject-2.6.tar.bz2 > /tmp/pjproject-2.6.tar.bz2
I reported what appears to be possibly the same error with 15.1 a few days ago. I ran NOISY_BUILD and it didn’t produce any useful information but after a few messages back and forth from traud and examining the Makefile for pjproject it appears a call to the DOWNLOAD_TIMEOUT function is likely timing out on a dns_timeout of 5 seconds. I haven’t tried modifying the Makefile because I already got 15.1 to install by using with-externals-cache as shown on the wiki.
I recently decided to build a new asterisk 13 server on and discovered I had the same issue as this one the issue decided to follow me if I tried to compile for asterisk 15 as well. As proftech eluded looks like its a dns related issue. Adjusting DOWNLOAD_TIMEOUT to 10 from 5 in ./third-party/pjproject/Makefile successfully corrected the problem. Hope this helps any future visitors