安装Asterisk 12,启动报错:asterisk: error while loading shared libraries: libjansson.so.4: cannot open shar

安装Asterisk的时候,启动时报错

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

的解决方法:

先下载

Jansson进行安装。

./configure DBUILD_SHARED=1

make
make install
 
    

 //创建一个libjansson.so的符号链接到/usr/lib目录下

            ln -s /usr/local/lib/libjansson.so /usr/lib/libjansson.so.4

    //重新加载库

            ldconfig

就可以正常启动了。

asterisk -vvvvc


你可能感兴趣的:(安装Asterisk 12,启动报错:asterisk: error while loading shared libraries: libjansson.so.4: cannot open shar)