英文:
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.1
是libssl
软件包的一部分,在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
为什么有这个接近重复的回答?
- 运行FiftyOne时生成的错误消息与这里不同。因此,寻找特定错误消息的人可能会将现有的问题/回答视为不相关。
- 此外,“被接受的答案”不是良好的做法。这个回答试图纠正这种情况。
- 使用关键字“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?
- 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.
- Also, the 'accepted answer' is not good practice. This attempts to
rectify this situation. - People searching by the fityOne keyword will not land on the correct existing answer.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论