Asterisk Start problem

Hello community,

I have a problem with asterisk installed in a VM Ubuntu server.

When i made some tests with my softphones, everything was alright.

But when i had to restart asterisk for some changes to apply, then a message came up, which says "Error loading shared libraries: libasteriskssl.so.1 : cannot open shared object file : No such file or directory. "

I really dont know what to do now.

Please if anyone knows how to solve it , respond to the topic.

Thanks in advance.

Assuming your asterisk binary is in /usr/sbin/ directory, please try pasting the output of this command:

ldd /usr/sbin/asterisk

Hello penguin ,

I am really sorry that iam answering now and i really thank you for your response.

Here is the output from the command :

ldd /usr/sbin/asterisk
linux-vdso.so.1 (0x00007ffd68f97000)
libasteriskssl.so.1 => not found
libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f1d6a888000)
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f1d6a57f000)
libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f1d6a2f2000)
libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f1d69e27000)
libjansson.so.4 => /usr/lib/x86_64-linux-gnu/libjansson.so.4 (0x00007f1d69c19000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f1d69a12000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f1d697da000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1d695d6000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1d693b7000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f1d6918d000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f1d68f72000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1d68bd4000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1d687e3000)
libicuuc.so.60 => /usr/lib/x86_64-linux-gnu/libicuuc.so.60 (0x00007f1d6842c000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1d6820f000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f1d67fe9000)
/lib64/ld-linux-x86-64.so.2 (0x00007f1d6b15e000)
libicudata.so.60 => /usr/lib/x86_64-linux-gnu/libicudata.so.60 (0x00007f1d66440000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1d660b7000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1d65e9f000)

In addition , I’ve installed libssl package before i installed asterisk, maybe plays a role.

Thanks in advance.

Try the shell command “locate” to find things:

locate libasteriskssl.so

Or:

locate libasteriskssl

Based on your ldd output (thank you), you should probably find the file in /usr/lib/x86_64-linux-gnu/ directory, and if not, try putting it there and double-check permissions on the file.

Hi penguin,

Thank you very much for your response.

I run the locate libasteriskssl.so.1 command libssl%20location

So the thing i have to do is to copy the file from the Desktop directory to which directory?

Thanks in advance.

/usr/lib/x86_64-linux-gnu/

Either that or update /etc/ld.so.conf file to include /usr/lib64/

Then run ldd again to confirm the Asterisk binary can use the library.