美文网首页
UWSGI启动异常error while loading sha

UWSGI启动异常error while loading sha

作者: 独行的卡卡 | 来源:发表于2020-03-05 23:00 被阅读0次

问题现象

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 sha

      本文链接:https://www.haomeiwen.com/subject/bqhrrhtx.html