centos gcc 的版本问题
执行yum install eosio.cdt-1.3.2.x86_64-0.x86_64.rpm
遇到如下问题
Loading mirror speeds from cached hostfile
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.20)(64bit) for package: eosio.cdt-1.3.2.x86_64-0.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.21)(64bit) for package: eosio.cdt-1.3.2.x86_64-0.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.22)(64bit) for package: eosio.cdt-1.3.2.x86_64-0.x86_64
--> Finished Dependency Resolution
Error: Package: eosio.cdt-1.3.2.x86_64-0.x86_64 (/eosio.cdt-1.3.2.x86_64-0.x86_64)
Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: eosio.cdt-1.3.2.x86_64-0.x86_64 (/eosio.cdt-1.3.2.x86_64-0.x86_64)
Requires: libstdc++.so.6(CXXABI_1.3.8)(64bit)
Error: Package: eosio.cdt-1.3.2.x86_64-0.x86_64 (/eosio.cdt-1.3.2.x86_64-0.x86_64)
Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: eosio.cdt-1.3.2.x86_64-0.x86_64 (/eosio.cdt-1.3.2.x86_64-0.x86_64)
Requires: libstdc++.so.6(GLIBCXX_3.4.22)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
以下是个人尝试提供的信息
手段1locate libstdc++.so.6
/home/contracts/gcc-8.2.0/gcc82-build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6
/home/contracts/gcc-8.2.0/gcc82-build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.25
/home/contracts/gcc-8.2.0/gcc82-build/stage1-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6
/home/contracts/gcc-8.2.0/gcc82-build/stage1-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.25
/home/contracts/gcc-8.2.0/gcc82-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6
/home/contracts/gcc-8.2.0/gcc82-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.25
/opt/rh/devtoolset-4/root/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.py
/opt/rh/devtoolset-4/root/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.pyc
/opt/rh/devtoolset-4/root/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.pyo
/opt/rh/devtoolset-4/root/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.py
/opt/rh/devtoolset-4/root/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.pyc
/opt/rh/devtoolset-4/root/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.pyo
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.19
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.19
/usr/local/lib64/libstdc++.so.6
/usr/local/lib64/libstdc++.so.6.0.25
/usr/local/lib64/libstdc++.so.6.0.25-gdb.py
/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.py
/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.pyc
/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.pyo
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.py
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.pyc
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.pyo
/var/lib/docker/overlay2/335a50951cb489772a7b628e7ecc9ca6af9fbd3dc07b681f6e4bacbd63c8a55c/diff/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/var/lib/docker/overlay2/335a50951cb489772a7b628e7ecc9ca6af9fbd3dc07b681f6e4bacbd63c8a55c/diff/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
/var/lib/docker/overlay2/335a50951cb489772a7b628e7ecc9ca6af9fbd3dc07b681f6e4bacbd63c8a55c/diff/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25-gdb.py
/var/lib/docker/overlay2/51a6cea2d30c2b1a52689cbc21f2bf00a5517343e137ef726ddba8799af7ed08/diff/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/var/lib/docker/overlay2/51a6cea2d30c2b1a52689cbc21f2bf00a5517343e137ef726ddba8799af7ed08/diff/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
/var/lib/docker/overlay2/51a6cea2d30c2b1a52689cbc21f2bf00a5517343e137ef726ddba8799af7ed08/diff/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22-gdb.py
/var/lib/docker/overlay2/6af49fc56e6c3ac859daae47b7e522a765c59694e36763bcb6e381fb9003dae6/diff/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/var/lib/docker/overlay2/6af49fc56e6c3ac859daae47b7e522a765c59694e36763bcb6e381fb9003dae6/diff/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
/var/lib/docker/overlay2/6af49fc56e6c3ac859daae47b7e522a765c59694e36763bcb6e381fb9003dae6/diff/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22-gdb.py
手段2strings /usr/lib/libstdc++.so.6 |grep GLIBCXX_3.4.20
结果:
GLIBCXX_3.4.20
GLIBCXX_3.4.20
手段3gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
关于gcc我已经安装了4.8 4.9 5.6 8.2版本了,现在是切换成4.8.这个问题好像不是gcc版本问题。因为我8.2版本gcc还是安装不过去。
关于/usr/lib/libstdc++.so.6
这个我曾经删除过然后ln -s /usr/local/lib64/libstdc++.so.6.0.25 /usr/lib/libstdc++.so.6
如果还欠缺什么信息,我会进行补充的,望大神帮忙看下
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论