libnetconf2 icon indicating copy to clipboard operation
libnetconf2 copied to clipboard

cmake: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

Open rohitkathuria102 opened this issue 4 years ago • 7 comments

I've trying to compile libnetconf2 for ARM

I've installed the toolkit and set the Compilers as::

export CC=/home/labadmin/rohit/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc

export CXX=/home/labadmin/rohit/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-c++

and

exported the path ::

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/home/labadmin/rohit/openssl-1.1.1c:/usr/local/openssl:/usr/local/lib:/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/bin"

now libssl.so.1.1 is at the path :: /usr/local/openssl

despite exporting the path i'm facing this error. I have added the path /usr/local/openssl/lib to /etc/ld.so.conf and run ldconfig as suggested by this issue::

https://github.com/openssl/openssl/issues/3993

rohitkathuria102 avatar Feb 18 '21 06:02 rohitkathuria102

I cannot really help you as the problem is specific to your environment. Also, this is not a libnetconf2 issue, the problem is loading a shared library, that is a generic Linux problem.

But I may be able to give you a couple of tips. You should know the problem is fixed when you execute # ldconfig -p | grep libssl and you get some output. So, you need to modify ld paths to find it and yes, # ldconfig command reloads the shared library paths based on the current settings (so you need to run it after making changes for them to actually take effect).

michalvasko avatar Feb 18 '21 07:02 michalvasko

Im having the exact same issue on my aws instance,

After running ldconfig -p | grep libssl

This is what I get

        libssl3.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libssl3.so
        libssl.so.3 (libc6,x86-64) => /lib/x86_64-linux-gnu/libssl.so.3
        libssl.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libssl.so

What I notice is that there is no libssl.so.1.1 listed, does that account for the error? And what can I do to modify the ld path

Elko-Lemiso avatar May 25 '22 13:05 Elko-Lemiso

Learn more about how to add searched directories in the manual ldconfig(8).

michalvasko avatar May 25 '22 13:05 michalvasko

Thnaks for the reply @michalvasko Do you have any resources you could possibly share?

Elko-Lemiso avatar May 25 '22 14:05 Elko-Lemiso

What "resources" do you have in mind? I do not understand the question.

michalvasko avatar May 26 '22 06:05 michalvasko

Hi Guys I am having the exact same fail here:

spl-token create-token spl-token: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

does anyone find any solution ??

Thx in advance

MiladZarour avatar Aug 09 '22 16:08 MiladZarour

This project is not related to "Solana SPL blockchain"; you're talking to wrong people.

jktjkt avatar Aug 10 '22 09:08 jktjkt

On the same ground , trying to use spl-token create- token throws the same sort of error. If anyone has found the error do let me know thanks

kaushikc44 avatar Aug 23 '22 12:08 kaushikc44

Hello everyone, I have the same issue then kaushikc44. So if someone could help it would be grateful.

stevests avatar Jan 29 '23 16:01 stevests

Please stop reporting whatever problems you have with other projects not authored by us.

michalvasko avatar Jan 30 '23 08:01 michalvasko