Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

lunes, 5 de enero de 2015

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


by on Jun.02, 2014, under Asterisk
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

http://www.danjourno.com/asterisk-libjansson-cannot-open-shared/

2 comentarios:

  1. The real solution is (as root): apt install libjansson-dev -y

    root@lucho:~# locate libjansson.so.4
    root@lucho:~# locate libjansson.so
    root@lucho:~# locate libjansson
    root@lucho:~# cat /etc/debian_version
    10.10
    root@lucho:~# apt install libjansson-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
    libjansson4
    The following NEW packages will be installed:
    libjansson-dev libjansson4
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 78.5 kB of archives.
    After this operation, 228 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Get:1 http://deb.debian.org/debian buster/main amd64 libjansson4 amd64 2.12-1 [38.0 kB]
    Get:2 http://deb.debian.org/debian buster/main amd64 libjansson-dev amd64 2.12-1 [40.5 kB]
    Fetched 78.5 kB in 0s (470 kB/s)
    Selecting previously unselected package libjansson4:amd64.
    (Reading database ... 88723 files and directories currently installed.)
    Preparing to unpack .../libjansson4_2.12-1_amd64.deb ...
    Unpacking libjansson4:amd64 (2.12-1) ...
    Selecting previously unselected package libjansson-dev:amd64.
    Preparing to unpack .../libjansson-dev_2.12-1_amd64.deb ...
    Unpacking libjansson-dev:amd64 (2.12-1) ...
    Setting up libjansson4:amd64 (2.12-1) ...
    Setting up libjansson-dev:amd64 (2.12-1) ...
    Processing triggers for libc-bin (2.28-10) ...
    root@lucho:~# locate libjansson.so
    root@lucho:~# updatedb
    root@lucho:~# locate libjansson.so
    /usr/lib/x86_64-linux-gnu/libjansson.so
    /usr/lib/x86_64-linux-gnu/libjansson.so.4
    /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1

    ResponderEliminar