koijigen / question-and-answer

0 stars 0 forks source link

How to fix an error `libcrypto.so.3: cannot open shared object file: No such file or directory"? #1

Closed koijigen closed 1 year ago

koijigen commented 1 year ago

Asked bellow question in StackOverflow. How to fix an error `libcrypto.so.3: cannot open shared object file: No such file or directory"?


How to fix an error `libcrypto.so.3: cannot open shared object file: No such file or directory"?

Premise

I want to share a single keyboard between two computers(ArchLinux and Windows), and there are some options to realize it on.

I choiced an option using Barrier.

Expect

Following steps bellow on a ArchLinux machine and verify there are no error:

Installing barrier : $ sudo pacman -S barrier

Using barrier : $ barrier

Actual

I got error at the step using barrier.

The error message is : barrier: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory

Question

How to fix "No such file or directory" about libcrypto.so.3?

Additional information

Commands output

$ ldd /usr/bin/barrier | grep libcrypto
        libcrypto.so.3 => not found
        libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007fcf0f000000)
$ sudo ldconfig -p | grep libcrypto
        libcrypto.so.1.1 (libc6,x86-64) => /usr/lib/libcrypto.so.1.1
        libcrypto.so (libc6,x86-64) => /usr/lib/libcrypto.so

Tried things

  1. Executed sudo barrier, nothing new.
  2. Searched Barrier issues on github, and I obtained no result about the problem not found libcrypto.
koijigen commented 1 year ago

What is libcrypto?

koijigen commented 1 year ago

In generally, how to fix an error about cannot open shared object file?

koijigen commented 1 year ago

Is there a solution to realize kvm by a way don't use Barrier?

koijigen commented 1 year ago

At issue https://github.com/koijigen/question-and-answer/issues/4#issuecomment-1313446417 , I knew that libcrypto is a library that is included the package openssl .

And I did reinstalling openssl, installing openssl-1.1 and executing command $ barrier, no error, Barrier was launched.

koijigen commented 1 year ago

Reopen, because I have not close my question in StackOverflow.

I have to close it by posting self answer.

koijigen commented 1 year ago

Done, posted the self answer.

How to fix

At the issue in my Github repository , I knew that libcrypto is a library that is included the package openssl .

And I did reinstalling openssl, installing openssl-1.1 and executing command $ barrier, no error, Barrier was launched.

Cause of error

Probablly, The error was occured by I had not the library libcrypto.so.3in my machine. So, when I reinstalliing openssl (i.e. update by pacman -Sy openssl), the library is placed in /usr/lib, and the error had dissapeared.

Refferences

  1. OpenSSL's issue
  2. StackOverflow's answer