libstdc++.so.6: cannot open shared object file: No such file or directory

Problem1:

/opt/FriendlyARM/toolschain/4.4.3/libexec/gcc/arm-none-linux-gnueabi/4.4.3/cc1: error while loading shared libraries:libstdc++.so.6: cannot open shared object file: No such file or directory

Solution:[root@localhost busybox-1.19.2]# yum whatprovides libstdc++.so.6
Loaded plugins: fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Loading mirror speeds from cached hostfile
libstdc++-4.4.7-11.el6.i686 : GNU Standard C++ Library
Repo        : base
Matched from:
Other       : libstdc++.so.6

[root@localhost busybox-1.19.2]# yum install libstdc++-4.4.7-11.el6.i686

Loaded plugins: fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.4.7-11.el6 will be installed
--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: libstdc++-4.4.7-11.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_4.2.0) for package: libstdc++-4.4.7-11.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.3) for package: libstdc++-4.4.7-11.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: libstdc++-4.4.7-11.el6.i686
--> Processing Dependency: libgcc_s.so.1 for package: libstdc++-4.4.7-11.el6.i686
--> Running transaction check
---> Package libgcc.x86_64 0:4.4.6-3.el6 will be updated
---> Package libgcc.i686 0:4.4.7-11.el6 will be installed
---> Package libgcc.x86_64 0:4.4.7-11.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch            Version                 Repository     Size
================================================================================
Installing:
 libstdc++          i686            4.4.7-11.el6            base          301 k
Installing for dependencies:
 libgcc             i686            4.4.7-11.el6            base          113 k
Updating for dependencies:
 libgcc             x86_64          4.4.7-11.el6            base          102 k

Transaction Summary
================================================================================
Install       2 Package(s)
Upgrade       1 Package(s)

Total download size: 517 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): libgcc-4.4.7-11.el6.i686.rpm                      | 113 kB     00:00     
(2/3): libgcc-4.4.7-11.el6.x86_64.rpm                    | 102 kB     00:00     
(3/3): libstdc++-4.4.7-11.el6.i686.rpm                   | 301 kB     00:00     
--------------------------------------------------------------------------------
Total                                           283 kB/s | 517 kB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libgcc-4.4.7-11.el6.i686                                     1/4
  Updating   : libgcc-4.4.7-11.el6.x86_64                                   2/4
  Installing : libstdc++-4.4.7-11.el6.i686                                  3/4
  Cleanup    : libgcc-4.4.6-3.el6.x86_64                                    4/4
Installed products updated.
  Verifying  : libgcc-4.4.7-11.el6.i686                                     1/4
  Verifying  : libstdc++-4.4.7-11.el6.i686                                  2/4
  Verifying  : libgcc-4.4.7-11.el6.x86_64                                   3/4
  Verifying  : libgcc-4.4.6-3.el6.x86_64                                    4/4

Installed:
  libstdc++.i686 0:4.4.7-11.el6                                                 

Dependency Installed:
  libgcc.i686 0:4.4.7-11.el6                                                    

Dependency Updated:
  libgcc.x86_64 0:4.4.7-11.el6                                                  

Complete!


The link listed will  be very useful


http://blog.chinaunix.net/uid-26212859-id-3256667.html


Problem2:

/opt/FriendlyARM/toolschain/4.4.3/lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

Solutiion:


[root@localhost busybox-1.19.2]# yum whatprovides libz.so.1
Loaded plugins: fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Loading mirror speeds from cached hostfile
zlib-1.2.3-29.el6.i686 : The zlib compression and decompression library
Repo        : base
Matched from:

Other       : libz.so.1

[root@localhost busybox-1.19.2]# yum install zlib-1.2.3-29.el6.i686
Loaded plugins: fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package zlib.i686 0:1.2.3-29.el6 will be installed
--> Finished Dependency Resolution
Error:  Multilib version problems found. This often means that the root
       cause is something else and multilib version checking is just
       pointing out that there is a problem. Eg.:
       
         1. You have an upgrade for zlib which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of zlib of the
            different architecture. If you exclude the bad architecture
            yum will tell you what the root cause is (which package
            requires what). You can try redoing the upgrade with
            --exclude zlib.otherarch ... this should give you an error
            message showing the root cause of the problem.
       
         2. You have multiple architectures of zlib installed, but
            yum can only see an upgrade for one of those arcitectures.
            If you don't want/need both architectures anymore then you
            can remove the one with the missing update and everything
            will work.
       
         3. You have duplicate versions of zlib installed already.
            You can use "yum check" to get yum show these errors.
       
       ...you can also use --setopt=protected_multilib=false to remove
       this checking, however this is almost never the correct thing to
       do as something else is very likely to go wrong (often causing
       much more problems).
       

       Protected multilib versions: zlib-1.2.3-29.el6.i686 != zlib-1.2.3-27.el6.x86_64

rpm -q -a zlib*

rpm -e zlib*

yum whatprovides zlib*

yum install zlib-1.2.3-29.el6.i686


find / -name libstdc++*

posted @ 2016-01-20 13:58  离线中  阅读(2559)  评论(0编辑  收藏  举报