Asterisk-12 Issue After Successful Installation

Home » Asterisk Users » Asterisk-12 Issue After Successful Installation
Asterisk Users 8 Comments

Hi Team,

I have installed asterisk-12 Beta but when I try to asterisk start then get below issue.

*[root@cs-gb-pwr-1-04 asterisk-12.0.0-beta1]# asterisk -r asterisk: error while loading shared libraries: libjansson.so.4: cannot open shared object file: No such file or directory
[root@cs-gb-pwr-1-04 asterisk-12.0.0-beta1]#*

8 thoughts on - Asterisk-12 Issue After Successful Installation

  • Hello,

    is a 64bit installation?

    Maybe Asterisk looking for the file on /usr/lib64 and you have this file on /usr/lib. In this case create a symbolic link to /usr/lib64

    Regards

    El 21/10/2013 07:26, virendra bhati escribi

  • Did you build it yourself from Source Code, or did you install someone else’s pre-compiled package? If the latter, the packager may have omitted a dependency. It happens from time to time. You probably need to install a –
    dev or -devel package (what distro are you running?)

    What do you get for
    # ldd /usr/sbin/asterisk
    ?

  • Hello –

    libjansson is now a required library. Please see the build system changes in the UPGRADE notes [1] or on the wiki [2]. Note: if you have not yet read the upgrade notes and the list of changes, please do so before installing and running Asterisk 12. Please 🙂

    Note that if your distro doesn’t have a package of libjansson (or, more accurately, libjansson-dev{el}), you can download a source tarball and install it [3]. The install_prereq script [4] should also take care of it for you.

    [1] http://svn.asterisk.org/svn/asterisk/branches/12/UPGRADE.txt

    [2] https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+12

    [3] http://www.digip.org/jansson/

    [4]
    http://svn.asterisk.org/svn/asterisk/branches/12/contrib/scripts/install_prereq

    Matt

  • So, as a specific answer to the original question, the proper resolution to this issue, assuming you manually installed libjansson, is the following, pulled from the install_prereq scripts:

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

    This worked for me on a fresh CentOS 6.4 installation where I didn’t use the install_prereq script, and thus was having your same issue. Hope this helps someone in the future!

  • Hi ,

    Below is the details of your provided linux command

    [root@cs-gb-pwr-1-04 ~]# ldd /usr/sbin/asterisk
    * linux-vdso.so.1 => (0x00007fffd29c9000)
    libasteriskssl.so.1 => /usr/lib64/libasteriskssl.so.1
    (0x00007ffa226ea000)
    libc.so.6 => /lib64/libc.so.6 (0x0000003456c00000)
    libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x0000003459c00000)
    libz.so.1 => /lib64/libz.so.1 (0x0000003457c00000)
    libm.so.6 => /lib64/libm.so.6 (0x0000003457800000)
    libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0 (0x0000003458800000)
    libssl.so.10 => /usr/lib64/libssl.so.10 (0x000000345bc00000)
    libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x000000345a000000)
    libjansson.so.4 => not found
    libuuid.so.1 => /lib64/libuuid.so.1 (0x00007ffa224e3000)
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003459400000)
    libdl.so.2 => /lib64/libdl.so.2 (0x0000003457000000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003457400000)
    libtinfo.so.5 => /lib64/libtinfo.so.5 (0x000000345ac00000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003458c00000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003456800000)
    libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2
    (0x000000345a800000)
    libkrb5.so.3 => /lib64/libkrb5.so.3 (0x000000345b800000)
    libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003459800000)
    libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x000000345b000000)
    libfreebl3.so => /lib64/libfreebl3.so (0x0000003459000000)
    libkrb5support.so.0 => /lib64/libkrb5support.so.0
    (0x000000345a400000)
    libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x000000345b400000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003458000000)*
    [root@cs-gb-pwr-1-04 ~]#

  • Hi Team,

    After suggested links and patch ,

    I installed all and then start asterisk and that start working.

    Thanks for suggestion..