UWSGI启动异常error while loading shared libraries

问题现象

UWSGI 启动失败,抛出如下异常:

uwsgi: error while loading shared libraries: libicui18n.so.58: cannot open shared object file: No such file or directory

可能原因

通过Anconda安装的UWSGI可能存在native library缺失

解决方案

  1. 找到Anconda的安装路径

  2. 拷贝如下lib包至系统lib目录,我的是 /lib/x86_64-linux-gnu/:

     cd ${ANCONDA_HOME} 
     sudo cp lib/libicui18n.so.58 /lib/x86_64-linux-gnu/
     sudo cp lib/libicuuc.so.58 /lib/x86_64-linux-gnu/
     sudo cp lib/libicudata.so.58 /lib/x86_64-linux-gnu/
    
  3. 再次启动UWSGI

你可能感兴趣的:(UWSGI启动异常error while loading shared libraries)