uwsgi: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
环境:
- Ubuntu / 14.04.1 64位
- python 3.6
错误:
uwsgi: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
解决:
- 查看uwsgi的依赖
ldd $(which /root/software/anaconda3/bin/uwsgi)
![image-20190529105858415](/Users/frmacpro004/Library/Application Support/typora-user-images/image-20190529105858415.png)
-
查看文件位置
find / -name "libpcre.so.1"
![image-20190529105958070](/Users/frmacpro004/Library/Application Support/typora-user-images/image-20190529105958070.png)
-
将文件复制到依赖的位置
cp /root/software/anaconda3/lib/libpcre.so.1 /lib
![image-20190529110050378](/Users/frmacpro004/Library/Application Support/typora-user-images/image-20190529110050378.png)
-
再次查看依赖
ldd $(which /root/software/anaconda3/bin/uwsgi)
![image-20190529110246847](/Users/frmacpro004/Library/Application Support/typora-user-images/image-20190529110246847.png)