Having issue configuring Asterisk 13 with --with-pjproject-bundled

Hello,

I was following this wiki page: https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+pjproject specifically the Bundled Version part, but when I run ./configure --with-pjproject-bundled

I receive this error:


checking for embedded pjproject (may have to download)… configuring
[pjproject] Unpacking /tmp/pjproject-2.4.5.tar.bz2
[pjproject] Applying patches
./apply_patches: line 30: patch: command not found
Patchfile 0001-2.4.5-fix-for-tls-async-ops.patch failed to apply >&2
make: *** [source/.unpacked] Error 1
failed
configure: Unable to configure third-party/pjproject
configure: error: Run “make -C third-party/pjproject NOISY_BUILD=yes configure” to see error details.
[root@asterisk asterisk-13.9.1] #

If I run make -C third-party/pjproject NOISY_BUILD=yes configure I get:

make: Entering directory /usr/local/src/asterisk-13.9.1/third-party/pjproject' tar --strip-components=1 -C source -xjf /tmp/pjproject-2.4.5.tar.bz2 ./apply_patches ./patches ./source ./apply_patches: line 30: patch: command not found Patchfile 0001-2.4.5-fix-for-tls-async-ops.patch failed to apply >&2 make: *** [source/.unpacked] Error 1 make: Leaving directory/usr/local/src/asterisk-13.9.1/third-party/pjproject’
[root@asterisk1 asterisk-13.9.1]#

I have bzip2 installed. What am I missing?

You do not appear to have the “patch” utility installed. It should be available in the package repository for your distribution.

1 Like

Thank you. Executing “yum -y install patch” fixed the issue. [CentOS 7]

You might want to run ‘install_prereq’ in contrib/scripts to make sure you are not missing anything else.

1 Like

Yes, that’s a good point.
I actually did that when following the wiki.