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: 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


    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.






  • 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/

    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
    * => (0x00007fffd29c9000) => /usr/lib64/
    (0x00007ffa226ea000) => /lib64/ (0x0000003456c00000) => /usr/lib64/ (0x0000003459c00000) => /lib64/ (0x0000003457c00000) => /lib64/ (0x0000003457800000) => /usr/lib64/ (0x0000003458800000) => /usr/lib64/ (0x000000345bc00000) => /usr/lib64/ (0x000000345a000000) => not found => /lib64/ (0x00007ffa224e3000) => /lib64/ (0x0000003459400000) => /lib64/ (0x0000003457000000) => /lib64/ (0x0000003457400000) => /lib64/ (0x000000345ac00000) => /lib64/ (0x0000003458c00000)
    /lib64/ (0x0000003456800000) => /lib64/
    (0x000000345a800000) => /lib64/ (0x000000345b800000) => /lib64/ (0x0000003459800000) => /lib64/ (0x000000345b000000) => /lib64/ (0x0000003459000000) => /lib64/
    (0x000000345a400000) => /lib64/ (0x000000345b400000) => /lib64/ (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..