checking for JANSSON… no
checking for json_sprintf in -ljansson… no
configure: *** Asterisk requires libjansson >= 2.11 and no system copy was found.
configure: *** Please install the ‘libjansson’ development package or
configure: *** use ‘./configure --with-jansson-bundled’
is there a way to bypass this and make Asterisk work with the 2.12 version?
EDIT:
Changed post title from Error while compiling Asterisk 16 over CentOS 7.6
to Error while compiling -and later running- Asterisk 16 over CentOS 7.6
because the first was solved by a post however found another issue on the same installation which is now also solved
Cheers
Did you compile and install jansson in a place that Asterisk would be able to detect it from? It seems not. The easiest option, though, is really to just use the bundled version.
I ran this again, on a clean virtual machine with CentOS 7.6 just in case I messed something up since I was following the FreePBX installation wiki
downloaded Asterisk 16.3.0 in my /usr/src directory
used the bundled version as you suggested so I ran:
./configure --libdir=/usr/lib64 --with-pjproject-bundled
and still got the same error:
configure: *** Asterisk requires libjansson >= 2.11 and no system copy was found.
configure: *** Please install the ‘libjansson’ development package or
configure: *** use ‘./configure --with-jansson-bundled’
So yes, the command is correct, however, is easy to missread the error message is actually this:
configure: use ‘./configure --with-jansson-bundled’
So I did that and it could finish configuring Asterisk the I ran make menuselect, only added chan_ooh and app_macro also ran make && make install && make config
there were no issues