LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2018, 04:00 PM   #1
nguytom
LQ Newbie
 
Registered: Jun 2018
Posts: 10

Rep: Reputation: Disabled
libraries: libstdc++.so.6: cannot open shared object file: No such file or directory


Hi All;

I have a issue when I run sas-linux on my linux redhat server after installed glibc.i686, how can I fix this issue, thank you.

[root@cark2nnobkup-media9 ~]# cd /tmp/sas-linux/
[root@cark2nnobkup-media9 sas-linux]# ./sas-linux -t 192.168.168.12 -b 20
./sas-linux: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[root@cark2nnobkup-media9 sas-linux]#



[root@cark2nnobkup-media9 sas-linux]# yum -y install glibc.i686
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
rhel-7-server-rpms | 2.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.17-157.el7_3.1 will be installed
--> Processing Dependency: glibc-common = 2.17-157.el7_3.1 for package: glibc-2.17-157.el7_3.1.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-157.el7_3.1.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.17-157.el7_3.1.i686
--> Running transaction check
---> Package glibc-common.x86_64 0:2.17-105.el7 will be updated
--> Processing Dependency: glibc-common = 2.17-105.el7 for package: glibc-2.17-105.el7.x86_64
---> Package glibc-common.x86_64 0:2.17-157.el7_3.1 will be an update
---> Package nss-softokn-freebl.i686 0:3.16.2.3-14.4.el7 will be installed
--> Running transaction check
---> Package glibc.x86_64 0:2.17-105.el7 will be updated
---> Package glibc.x86_64 0:2.17-157.el7_3.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== ===================================================================================================
Package Arch Version Repository Size
==================================================================================================== ===================================================================================================
Installing:
glibc i686 2.17-157.el7_3.1 rhel-7-server-rpms 4.2 M
Installing for dependencies:
nss-softokn-freebl i686 3.16.2.3-14.4.el7 rhel-7-server-rpms 188 k
Updating for dependencies:
glibc x86_64 2.17-157.el7_3.1 rhel-7-server-rpms 3.6 M
glibc-common x86_64 2.17-157.el7_3.1 rhel-7-server-rpms 11 M

Transaction Summary
==================================================================================================== ===================================================================================================
Install 1 Package (+1 Dependent package)
Upgrade ( 2 Dependent packages)

Total download size: 19 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/4): glibc-2.17-157.el7_3.1.i686.rpm | 4.2 MB 00:00:00
(2/4): glibc-2.17-157.el7_3.1.x86_64.rpm | 3.6 MB 00:00:00
(3/4): nss-softokn-freebl-3.16.2.3-14.4.el7.i686.rpm | 188 kB 00:00:00
(4/4): glibc-common-2.17-157.el7_3.1.x86_64.rpm | 11 MB 00:00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 12 MB/s | 19 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : glibc-2.17-157.el7_3.1.x86_64 1/6
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
Updating : glibc-common-2.17-157.el7_3.1.x86_64 2/6
Installing : nss-softokn-freebl-3.16.2.3-14.4.el7.i686 3/6
Installing : glibc-2.17-157.el7_3.1.i686 4/6
Cleanup : glibc-2.17-105.el7.x86_64 5/6
Cleanup : glibc-common-2.17-105.el7.x86_64 6/6
Verifying : glibc-common-2.17-157.el7_3.1.x86_64 1/6
Verifying : nss-softokn-freebl-3.16.2.3-14.4.el7.i686 2/6
Verifying : glibc-2.17-157.el7_3.1.x86_64 3/6
Verifying : glibc-2.17-157.el7_3.1.i686 4/6
Verifying : glibc-common-2.17-105.el7.x86_64 5/6
Verifying : glibc-2.17-105.el7.x86_64 6/6

Installed:
glibc.i686 0:2.17-157.el7_3.1

Dependency Installed:
nss-softokn-freebl.i686 0:3.16.2.3-14.4.el7

Dependency Updated:
glibc.x86_64 0:2.17-157.el7_3.1 glibc-common.x86_64 0:2.17-157.el7_3.1

Complete!
[root@cark2nnobkup-media9 sas-linux]#
 
Old 06-27-2018, 04:32 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

If glibc.i686 is required for your application, libstdc++.i686 is probably required too:

# yum install libstdc++.i686
 
1 members found this post helpful.
Old 06-27-2018, 05:03 PM   #3
nguytom
LQ Newbie
 
Registered: Jun 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

If glibc.i686 is required for your application, libstdc++.i686 is probably required too:

# yum install libstdc++.i686
I did , but still has same error.

[root@cark2nnobkup-media9 ~]# yum install libstdc++.i686
Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms | 2.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.8.5-11.el7 will be installed
--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_4.2.0) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.3) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1 for package: libstdc++-4.8.5-11.el7.i686
--> Running transaction check
---> Package libgcc.x86_64 0:4.8.5-4.el7 will be updated
---> Package libgcc.i686 0:4.8.5-11.el7 will be installed
---> Package libgcc.x86_64 0:4.8.5-11.el7 will be an update
--> 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 libstdc++ which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of libstdc++ 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 libstdc++.otherarch ... this should give you an error
message showing the root cause of the problem.

2. You have multiple architectures of libstdc++ installed, but
yum can only see an upgrade for one of those architectures.
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 libstdc++ 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: libstdc++-4.8.5-11.el7.i686 != libstdc++-4.8.5-4.el7.x86_64
[root@cark2nnobkup-media9 ~]# ./sas-linux -t 192.168.168.12 -b 20
-bash: ./sas-linux: No such file or directory
[root@cark2nnobkup-media9 ~]# cd /tmp/sas-linux/
[root@cark2nnobkup-media9 sas-linux]# ./sas-linux -t 192.168.168.12 -b 20
./sas-linux: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[root@cark2nnobkup-media9 sas-linux]#

[root@cark2nnobkup-media9 sas-linux]# yum check
Loaded plugins: product-id, search-disabled-repos, subscription-manager
ipa-admintools-4.4.0-14.el7_3.7.noarch has installed conflicts freeipa-admintools: ipa-admintools-4.4.0-14.el7_3.7.noarch
ipa-client-4.4.0-14.el7_3.7.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7_3.7.x86_64
ipa-client-common-4.4.0-14.el7_3.7.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7_3.7.noarch
ipa-common-4.4.0-14.el7_3.7.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7_3.7.noarch
ipa-python-compat-4.4.0-14.el7_3.7.noarch has installed conflicts freeipa-python-compat: ipa-python-compat-4.4.0-14.el7_3.7.noarch
ipa-server-4.4.0-14.el7_3.7.x86_64 has installed conflicts freeipa-server: ipa-server-4.4.0-14.el7_3.7.x86_64
ipa-server-common-4.4.0-14.el7_3.7.noarch has installed conflicts freeipa-server-common: ipa-server-common-4.4.0-14.el7_3.7.noarch
ipa-server-dns-4.4.0-14.el7_3.7.noarch has installed conflicts freeipa-server-dns: ipa-server-dns-4.4.0-14.el7_3.7.noarch
Error: check all
[root@cark2nnobkup-media9 sas-linux]#

anyone can help me to fix that ? Thank you.

Last edited by nguytom; 06-29-2018 at 11:08 AM.
 
Old 07-02-2018, 12:38 AM   #4
AusBob
LQ Newbie
 
Registered: May 2011
Distribution: debian wheezy/sid
Posts: 11

Rep: Reputation: 0
If the binary is dynamically linked you can probably confirm that the loader can't find the library by doing
Code:
ldd sas-linux
And if the installed library is compatible this may work:
Code:
LD_PRELOAD=/path/to/libstdc++.so.6 ./sas-linux
If nothing works you may be able to find out why by running strace:
Code:
strace ./sas-linux
(and see where it tries to find the library)
 
Old 07-02-2018, 12:16 PM   #5
nguytom
LQ Newbie
 
Registered: Jun 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AusBob View Post
If the binary is dynamically linked you can probably confirm that the loader can't find the library by doing
Code:
ldd sas-linux
And if the installed library is compatible this may work:
Code:
LD_PRELOAD=/path/to/libstdc++.so.6 ./sas-linux
If nothing works you may be able to find out why by running strace:
Code:
strace ./sas-linux
(and see where it tries to find the library)
I am not sure why it cannot find libstdc++.so.6 , I beleive, I already installed it

[root@cark2nnobkup-media9 sas-linux]# ldd sas-linux
linux-gate.so.1 => (0xf76e1000)
libdl.so.2 => /lib/libdl.so.2 (0xf76d2000)
libpthread.so.0 => /lib/libpthread.so.0 (0xf76b7000)
librt.so.1 => /lib/librt.so.1 (0xf76ae000)
libstdc++.so.6 => not found
libm.so.6 => /lib/libm.so.6 (0xf766a000)
libgcc_s.so.1 => not found
libc.so.6 => /lib/libc.so.6 (0xf74ac000)
/lib/ld-linux.so.2 (0xf76e2000)
[root@cark2nnobkup-media9 sas-linux]# ./sas-linux
./sas-linux: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
 
Old 07-02-2018, 03:08 PM   #6
nguytom
LQ Newbie
 
Registered: Jun 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
I installed libstdc++.so.6 but get error, how can I fix it? I am not linux exppert

[root@cark2nnobkup-media9 ~]# yum install libstdc++.so.6
Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms | 2.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.8.5-11.el7 will be installed
--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_4.2.0) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.3) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1 for package: libstdc++-4.8.5-11.el7.i686
--> Running transaction check
---> Package libgcc.x86_64 0:4.8.5-4.el7 will be updated
---> Package libgcc.i686 0:4.8.5-11.el7 will be installed
---> Package libgcc.x86_64 0:4.8.5-11.el7 will be an update
--> 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 libstdc++ which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of libstdc++ 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 libstdc++.otherarch ... this should give you an error
message showing the root cause of the problem.

2. You have multiple architectures of libstdc++ installed, but
yum can only see an upgrade for one of those architectures.
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 libstdc++ 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: libstdc++-4.8.5-11.el7.i686 != libstdc++-4.8.5-4.el7.x86_64
[root@cark2nnobkup-media9 ~]# cd /usr/openv/netbackup/sas-linux/
[root@cark2nnobkup-media9 sas-linux]# ldd sas-linux
linux-gate.so.1 => (0xf770f000)
libdl.so.2 => /lib/libdl.so.2 (0xf7700000)
libpthread.so.0 => /lib/libpthread.so.0 (0xf76e5000)
librt.so.1 => /lib/librt.so.1 (0xf76dc000)
libstdc++.so.6 => not found
libm.so.6 => /lib/libm.so.6 (0xf7698000)
libgcc_s.so.1 => not found
libc.so.6 => /lib/libc.so.6 (0xf74da000)
/lib/ld-linux.so.2 (0xf7710000)
[root@cark2nnobkup-media9 sas-linux]#
 
Old 07-02-2018, 03:26 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
this IS redhat right ?
have you opened a support ticket ?
you ARE paying for that required support ? right ?
you might want to use it


to fix this there is a well known shortcut that will install gcc and stc
Code:
su -
yum reinstall gcc++
just double check the name with a yum search
Code:
yum search gcc
that should install ALL the dependencies including stc6

you also might want to sync your install with the reops
Code:
yum distribution-synchronization
 
Old 07-02-2018, 07:13 PM   #8
AusBob
LQ Newbie
 
Registered: May 2011
Distribution: debian wheezy/sid
Posts: 11

Rep: Reputation: 0
Quote:
Originally Posted by nguytom View Post
I installed libstdc++.so.6 but get error, how can I fix it? I am not linux exppert

[root@cark2nnobkup-media9 ~]# yum install libstdc++.so.6
Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms | 2.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.8.5-11.el7 will be installed
--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_4.2.0) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.3) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: libstdc++-4.8.5-11.el7.i686
--> Processing Dependency: libgcc_s.so.1 for package: libstdc++-4.8.5-11.el7.i686
--> Running transaction check
---> Package libgcc.x86_64 0:4.8.5-4.el7 will be updated
---> Package libgcc.i686 0:4.8.5-11.el7 will be installed
---> Package libgcc.x86_64 0:4.8.5-11.el7 will be an update
--> 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.:
Quote:
Protected multilib versions: libstdc++-4.8.5-11.el7.i686 != libstdc++-4.8.5-4.el7.x86_64

No, you have not installed the library, see the Error above. It looks like the 64-bit version is being kept at 4.8.5-4.
So you may have to either:
Code:
yum update
first to get the proper 64-bit level, then install the 32-bit version, or try

Code:
yum install libstdc++-4.8.5-4.el7.i686
 
Old 07-02-2018, 08:47 PM   #9
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
wrong glibc.
 
Old 07-05-2018, 10:06 AM   #10
nguytom
LQ Newbie
 
Registered: Jun 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AusBob View Post
No, you have not installed the library, see the Error above. It looks like the 64-bit version is being kept at 4.8.5-4.
So you may have to either:
Code:
yum update
first to get the proper 64-bit level, then install the 32-bit version, or try

Code:
yum install libstdc++-4.8.5-4.el7.i686
after ran yum update and yum install libstdc++-4.8.5-4.el7.i686 but I still have issue

[root@cark2nnobkup-media9 sas-linux]# yum install libstdc++-4.8.5-4.el7.i686
Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms | 2.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.8.5-4.el7 will be installed
--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: libstdc++-4.8.5-4.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_4.2.0) for package: libstdc++-4.8.5-4.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.3) for package: libstdc++-4.8.5-4.el7.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: libstdc++-4.8.5-4.el7.i686
--> Processing Dependency: libgcc_s.so.1 for package: libstdc++-4.8.5-4.el7.i686
--> Running transaction check
---> Package libgcc.i686 0:4.8.5-11.el7 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 libstdc++ which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of libstdc++ 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 libstdc++.otherarch ... this should give you an error
message showing the root cause of the problem.

2. You have multiple architectures of libstdc++ installed, but
yum can only see an upgrade for one of those architectures.
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 libstdc++ 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: libstdc++-4.8.5-4.el7.i686 != libstdc++-4.8.5-11.el7.x86_64
[root@cark2nnobkup-media9 sas-linux]#
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: mahiba Linux - Hardware 2 05-10-2013 05:18 PM
while loading shared libraries: libstdc++.so.6: cannot open shared object file: vswapnasr@gmail.com Linux - Software 2 05-05-2013 04:44 AM
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: vswapnasr@gmail.com Linux - Software 1 05-04-2013 06:49 AM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file PaulyWally Debian 2 10-18-2008 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration