uwsgi: error while loading shared libraries: libcrypto.so.1.0.0(centos7中出现的问题)

出现的问题:
uwsgi: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
解决1:
[kiosk@asimov ~]$ find / -name libssl.so.1.0.0
/home/kiosk/anaconda3/pkgs/openssl-1.0.2o-h20670df_0/lib/libssl.so.1.0.0
/home/kiosk/anaconda3/pkgs/openssl-1.0.2p-h14c3975_0/lib/libssl.so.1.0.0
/home/kiosk/anaconda3/lib/libssl.so.1.0.0
/home/kiosk/anaconda3/envs/python36/lib/libssl.so.1.0.0
##确认有这个libssl.so.1.0.0库

/etc/ld.so.conf.d这个文件记录了编译时使用的动态链接库的路径。
默认情况下,编译器只会使用/lib和/usr/lib这两个目录下的库文件
##将库文件路径写入/etc/ld.so.conf文件中,方便调用库文件
[kiosk@asimov /etc/ld.so.conf.d]$ cat uwsgi.conf
/home/kiosk/anaconda3/envs/python36/lib

结果还是报错

解决2:https://blog.csdn.net/qq_37928340/article/details/79800072
cp 加载不出来的库到/usr/lib64/(/usr/lib32/) 或者ln -s 软链接到这个库
cp /home/kiosk/anaconda3/lib/libssl.so.1.0.0 /usr/lib64/
后面按提示将缺少的库全都cp 进去 (总共4个好像)

在这里插入图片描述
提示缺少cxx
conda install libgcc ##安装libgcc
uwsgi: error while loading shared libraries: libcrypto.so.1.0.0(centos7中出现的问题)_第1张图片
##把提示中/usr/lib64 缺少的东西全cp进去
cp /home/kiosk/anaconda3/lib/libstdc++.so.6 /usr/lib64/libstdc++.so.6

cp: overwrite `/usr/lib64/libstdc++.so.6’?

##可以了
[kiosk@asimov ~]$ uwsgi
*** Starting uWSGI 2.0.18 (64bit) on [Thu May 23 21:49:58 2019] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-11) on 22 May 2019 12:28:22
os: Linux-3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016
nodename: asimov
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /home/kiosk
detected binary path: /home/kiosk/anaconda3/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 4096
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
The -s/–socket option is missing and stdin is not a socket.

你可能感兴趣的:(linux)