码迷,mamicode.com
首页 > 编程语言 > 详细

python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory

时间:2016-12-22 19:29:39      阅读:1365      评论:0      收藏:0      [点我收藏+]

标签:--   复制   get   file   load   install   3.5   shared   cannot   

安装python3遇到报错:

 

wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz

./configure --prefix=/usr/local/Python-3.5.2 --enable-shared
make
make install
ln -s /usr/local/Python-3.5.2/bin/python3 /usr/bin/python3
 
遇到报错:
python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
解决:
查看动态库情况
ldd /usr/local/Python-3.5.2/bin/python3
源码目录复制过去
cp libpython3.5m.so.1.0 /usr/lib/

python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory

标签:--   复制   get   file   load   install   3.5   shared   cannot   

原文地址:http://www.cnblogs.com/trasin/p/6212124.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!