Reading guide
After installing mongodb
in Python, the following error is reported when 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 used. For example, the name of my virtual environment is torch
, and use the following command to check whether the libcrypto. So. 1.1 file exists in the environment
#Switch to the lib directory
cd /root/anaconda3/envs/torch/lib
# Check if the file exists
ls -lh | grep "libcrypto.so.1.1"
-rwxrwxrwx 1 root root 3.2M Jun 4 15:43 libcrypto.so.1.1
# If the file exists execute the following command
sudo ldconfig /root/anaconda3/envs/torch/lib
If there is no in the Lib directory, use the following command for global search
find/-name 'libcrypto.so.1.1'
Observe the search results and find the existing directory by using the above sudo ldconfig directory path
Read More:
- Copy the python3 installation package to Linux and run it. Error while loading shared libraries: libpython3.6. M.so. 1.0
- ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
- Tensorflow import Error: ImportError: libcuda.so.1: cannot open shared object file: No such file or dire
- [Solved] Import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- How to Solve Python Libsm. So. 6 error
- [Solved] Tensorflow cuda Error: Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0:
- python chatterbot [nltk_data] Error loading stopwords: <urlopen error [Errno 11004]
- [Solved] NPM install Error: check python checking for Python executable python2 in the PATH
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- Invalid python sd, Fatal Python error: init_fs_encoding: failed to get the Python cod [How to Solve]
- [Solved] ERROR: Unexpected bus error encountered in worker. This might be caused by insufficient shared memor
- OSError libespeak.so.1 error: no such file or directory [How to Solve]
- [Solved] opencv-python: recipe for target ‘modules/python3/CMakeFiles/opencv_python3.dir/all‘ failed
- [Solved] Error(s) in loading state_dict for GeneratorResNet
- Pytorch Loading model error: RuntimeError: Error(s) in loading state_dict for Model: Missing key(s) in state_dict
- Pychar can’t connect to Python console, but it can run. Py file, and Anaconda’s command line can run Python command
- OSError: [WinError 1455] The page file is too small to complete the operation. Error loading…
- [ONNXRuntimeError] : 10 : INVALID_Graph loading model error
- [Solved] RuntimeError: Error(s) in loading state_dict for BertForTokenClassification
- [Solved] RuntimeError: Error(s) in loading state_dict for Net: