voxel51 / fiftyone: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

huangapple go评论137阅读模式
英文:

voxel51 / fiftyone: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

问题

After installing and running fiftyone in python (using ubuntu 22.04), you get:

error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
英文:

After installing and running fiftyone in python (using ubuntu 22.04), you get:

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

答案1

得分: 1

libcrypto.so.1.1libssl软件包的一部分,在Ubuntu 22.04上默认版本是3.*

你不想覆盖默认的libssl安装,只是为了运行FiftyOne。相反,你可以下载一个较旧的版本并将其安装在隔离的位置。例如:

$ mkdir $HOME/Software/openssl_1.1 && cd $HOME/Software/openssl_1.1
$ cd $HOME/Software/openssl_1.1
$ wget https://www.openssl.org/source/openssl-1.1.1o.tar.gz
$ tar -zxvf openssl-1.1.1o.tar.gz
$ cd openssl-1.1.1o
$ ./config && make && make test

然后在运行Python程序之前执行以下命令:

EXPORT LD_LIBRARY_PATH=$HOME/Software/openssl_1.1/openssl-1.1.1o

为什么有这个接近重复的回答?

  1. 运行FiftyOne时生成的错误消息与这里不同。因此,寻找特定错误消息的人可能会将现有的问题/回答视为不相关。
  2. 此外,“被接受的答案”不是良好的做法。这个回答试图纠正这种情况。
  3. 使用关键字“FiftyOne”进行搜索的人将无法找到正确的现有答案。
英文:

[DISCLAIMER: credits for this answer should go here]

libcrypto.so.1.1 is part of the libssl package, which is by default version 3.* on ubuntu 22.04.

You don't want to override your default libssl installation just for running fiftyOne. Instead, you can download an older version and install it in an isolated location. For example:

$ mkdir $HOME/Software/openssl_1.1 && cd $HOME/Software/openssl_1.1
$ cd $HOME/Software/openssl_1.1
$ wget https://www.openssl.org/source/openssl-1.1.1o.tar.gz
$ tar -zxvf openssl-1.1.1o.tar.gz
$ cd openssl-1.1.1o
$ ./config && make && make test

Then before running your python program:

EXPORT LD_LIBRARY_PATH=$HOME/Software/openssl_1.1/openssl-1.1.1o

<br>


Why this near duplicate answer?

  1. The error message emitted when running fityOne is different from here. So people looking for this specific error message may discard the existing question/answer as not relevant.
  2. Also, the 'accepted answer' is not good practice. This attempts to
    rectify this situation.
  3. People searching by the fityOne keyword will not land on the correct existing answer.

huangapple
  • 本文由 发表于 2023年8月10日 23:18:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/76877144.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定