asterisk: error while loading shared libraries: libjansson.so.4: cannot open shared object file: No such file or directory

Issue

You install Asterisk 12 successfully but receive the following error when trying to launch asterisk:

asterisk: error while loading shared libraries: libjansson.so.4: cannot open shared object file: No such file or directory

Solution

Execute this

echo “/usr/local/lib” > /etc/ld.so.conf.d/usr_local.conf

and

/sbin/ldconfig

Cause

I’m not expert on this. Can anyone explain why this works? I’ll give you a link to your website in return.