Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the error report after installing mongodb with Python

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the use of Python to install mongodb after the error report how to solve the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, with a certain reference value, I believe that everyone after reading this article after using Python to install mongodb error report how to solve the article will have a harvest, let's take a look.

After installing mongodb using Python, the following error is reported after executing mongod:

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

Solution:

Find the virtual environment you are using, for example, the name of my virtual environment is torch, and use the following command to see if the libcrypto.so.1.1 file exists in the environment.

# switch to cd / root/anaconda3/envs/torch/lib# under the lib directory to check whether the file exists ls-lh | grep "libcrypto.so.1.1"-rwxrwxrwx 1 root root 3.2m June 4 15:43 libcrypto.so.1.1# if the file exists, execute the following command sudo ldconfig / root/anaconda3/envs/torch/lib

If not in the lib directory, use the following command to conduct a global search

Find /-name 'libcrypto.so.1.1'

Observe the search results and find the existing directory using the sudo ldconfig directory path above

This is the end of the article on "how to solve errors after using Python to install mongodb". Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to solve errors after using Python to install mongodb". If you still want to learn more knowledge, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report