ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory解决方法

在64位的CentOS系统中安装32位软件时,可能会遇到ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory的错误。解决方法是通过yum命令查找并安装对应的32位库。首先使用`yum whatprovides libstdc++.so.6`找出库的提供者,然后用`yum install libstdc++-4.4.7-18.el6.i686`安装libstdc++的32位版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory解决方法

出现此问题

安装32位共享库问题,究其原因就是在64位系统安装32位软件,需要有32位库。

本文以centOs安装为例。

查看哪个安装包下有这个库

yum whatprovides libstdc++.so.6**
[root@master-yzjbz2411567139-1551927119830-0307080 mysql]# yum whatprovides libstdc++.so.6Loaded plugins: fastestmirror, securityLoading mirror speeds from cached hostfile * base: 100.125.0.40 * extras: 100.125.0.40 * updates: 100.125.0.40libstdc++-4.4.7-18.el6.i686 : GNU Standard C++ LibraryRepo        : baseMatched from:Other       : libstdc++.so.6   libstdc++-4.4.7-18.el6_9.2.i686 : GNU Standard C++ LibraryRepo        : updatesMatched from:Other       : libstdc++.so.6   libstdc++-4.4.7-4.el6.i686 : GNU Standard C++ LibraryRepo        : installedMatched from:Other       : Provides-match: libstdc++.so.6

这里我们选择base的,也就是:

libstdc+±4.4.7-18.el6.i686

安装

yum install libstdc++-4.4.7-18.el6.i686
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值