I am attempting to move from Asterisk 20 to the latest version on a raspberry pi 5.
I have installed the version 22.1.0 source code and resolved all the complaints that ./configure makes regarding missing packages.
The result is the asterisk letter art and:
configure: Package configured for: configure: OS type : linux-gnu configure: Host CPU : aarch64 configure: build-cpu:vendor:os: aarch64 : unknown : linux-gnu : configure: host-cpu:vendor:os: aarch64 : unknown : linux-gnu :
Which looks OK. Then I continue to follow the instructions below the heading “Using install_prereq”
When I get to “install_prereq install-unpackaged” I get an error:
ray@raspberrypi:/usr/local/src/asterisk-22.1.0/contrib/scripts $ ./install_prereq install-unpackaged PJProject not installed, yet. Therefore, please, run ./configure --with-pjproject-bundled
Which I do, apparently without error.
The output at lines 100 and 101 reads:
checking for embedded pjproject (may have to download)... configuring checking for bundled pjproject... yes
install_prereq install-unpackaged is making the test:
if ! test -f /usr/include/pjlib.h; then echo "PJProject not installed, yet. Therefore, please, run" echo "./configure --with-pjproject-bundled" fi
I have checked, /usr/include does not have pjlib.h installed.
Furthermore ray@raspberrypi:/usr/local/src/asterisk-22.1.0/contrib/scripts $ sudo find / -name “pjlib.h” 2>/dev/null
Yields:
/usr/local/src/asterisk-22.1.0/third-party/pjproject/source/pjlib/include/pjlib.h
i.e. the only place that it is installed is in the original sources.
Question - what am I doing wrong? Is there a missing step between .configure and ./install_prereq install-unpackaged?