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

安装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

遇到报错:

解决:

查看动态库情况

ldd /usr/local/Python-3.5.2/bin/python3

源码目录复制过去

cp libpython3.5m.so.1.0 /usr/lib/

时间: 2024-08-06 23:33:03

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

python3安装后运行出错:error while loading shared libraries: libpython3.6m.so.1.0

安装好python3后,运行出现下面错误: python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory 解决方案:设置环境变量: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/python3/bin 注:其中/usr/local/python3/为p

./jad: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

Ubuntu 上使用jad,出现上面错误: 网上搜索有的建议是这样: 1. Download the package from http://packages.ubuntu.com/dapper/i386/libstdc++2.10-glibc2.2/download2. sudo dpkg -i libstdc++2.10-glibc2.2_2.95.4-24_i386.deb 3. If you don’t have the following items in the package, p

伤不起的shared libraries

error while loading shared libraries 案例1:vim: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory 这是我升级python后,删除旧的python库引起的 首先查找命令的安装位置:which vi /usr/bin/vim 然后查看vim使用了哪些链接库,ldd /usr/

〖Android〗arm-linux-androideabi-gdb报 libpython2.6.so.1.0: cannot open shared object file错误的解决方法

执行: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gdb out/target/product/rk30sdk/symbols/system/bin/app_process 报错: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gdb: error while loa

Ubuntu14.04 ,libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory

[email protected]:/opt$ roslaunch blarospack : error while loading shared libraries: libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory Traceback (most recent call last): File "/home/macname/Desktop/ros/indigo/bi

【翻译自mos文章】在UNIX中,怎么确定一个特定的可执行程序link的是哪些Shared Libraries ?

在UNIX中,怎么确定一个特定的可执行程序link的是哪些Shared Libraries ? 来源于: How to Determine what Shared Libraries are Linked into an Executable (UNIX) (文档 ID 160308.1) fix: The following commands are used to determine what shared libraries are linked into an executable. F

Nginx 启动出错 error while loading shared libraries: libpcre.so.1

在 centos 6.5  64位上编译安装nginx1.63语法检查出错[root @localhost conf]# /usr/local/nginx/sbin/nginx -t /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 从错误看出是缺少lib文件导致,进一步

sqlplus: error while loading shared libraries解决方法

dbca建库后sqlplus提示如下 $ sqlplus / as sysdba sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied 解决方法 将selinux功能关掉 root用户 将/etc/selinux/c

error while loading shared libraries: libluajit-5.1.so.2: cannot open shared 解决办法

一般我们在Linux下执行某些外部程序的时候可能会提示找不到共享库的错误, 比如: tmux: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 原因一般有两个, 一个是操作系统里确实没有包含该共享库(lib*.so.*文件)或者共享库版本不对, 遇到这种情况那就去网上下载并安装上即可. 另外一个原因就是已经安装了该共