# libstdc++5 with SLES12

**URL:** <https://forums.suse.com/t/libstdc-5-with-sles12/26645>\
**Category:** SLES Configure-Administer\
**Created:** [February 4, 2015, 11:16am UTC](https://forums.suse.com/t/libstdc-5-with-sles12/26645 "2015-02-04T11:16:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![swadm](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@swadm](https://forums.suse.com/u/swadm)\
**Post date:** [February 4, 2015, 11:16am UTC](https://forums.suse.com/t/libstdc-5-with-sles12/26645/1 "2015-02-04T11:16:24Z")

</div>

Dear SLESians,

when a program reports it requires libstdc++5 … is there a chance to get it running on SLES12: SLES 12 contains only libstdc++6:

Thanks and regards, Thomas

[CODE]host:/ # zypper se libstdc++6  
Refreshing service ‘SUSE\_Linux\_Enterprise\_Server\_12\_x86\_64’.  
Retrieving repository ‘SLES12-Updates’ metadata …[done]  
Building repository ‘SLES12-Updates’ cache …[done]  
Loading repository data…  
Reading installed packages…

S | Name | Summary | Type  
–±-----------------±--------------------------------±-------  
i | libstdc++6 | The standard C++ shared library | package  
i | libstdc++6-32bit | The standard C++ shared library | package  
host:/ # zypper se libstdc++5  
Refreshing service ‘SUSE\_Linux\_Enterprise\_Server\_12\_x86\_64’.  
Loading repository data…  
Reading installed packages…  
No packages found.  
host:/ # rpm -qil libstdc++6  
Name : libstdc++6  
Version : 4.8.3+r212056  
Release : 11.2  
Architecture: x86\_64  
Install Date: Thu Jan 22 15:06:21 2015  
Group : System/Libraries  
Size : 995512  
License : GPL-3.0-with-GCC-exception  
Signature : RSA/SHA256, Thu Nov 13 15:36:04 2014, Key ID 70af9e8139db7c82  
Source RPM : gcc48-4.8.3+r212056-11.2.src.rpm  
Build Date : Wed Nov 5 18:19:34 2014  
Build Host : tornado4  
Relocations : (not relocatable)  
Packager : [https://www.suse.com/](https://www.suse.com/)  
Vendor : SUSE LLC [https://www.suse.com/](https://www.suse.com/)  
URL : [http://gcc.gnu.org/](http://gcc.gnu.org/)  
Summary : The standard C++ shared library  
Description :  
The standard C++ library, needed for dynamically linked C++ programs.  
Distribution: SUSE Linux Enterprise 12  
/usr/lib64/libstdc++.so.6  
/usr/lib64/libstdc++.so.6.0.19  
host:/ #

[/CODE]

---

<div class="post-metadata">

**Author:** ![swadm](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@swadm](https://forums.suse.com/u/swadm)\
**Post date:** [February 4, 2015, 6:40pm UTC](https://forums.suse.com/t/libstdc-5-with-sles12/26645/2 "2015-02-04T18:40:32Z")

</div>

With the help of Novell Support we found the following clean solution,  
which utilizes the service channel “Legacy\_Module\_12\_86\_64”, to  
provide the - as novell support call it - ancient Version of libstdc++  
that the Networker client needs:

1.) Installation of Legacy Module 12

` host:/ # yast2 repositories
   <add>
   Available Extensions and Modules
   ...
   [x] Legacy Module 12 x86_64
   ...
   <Finish>
`

after that:

[CODE] host:/ # zypper lr

# | Alias | Name | Enabled | Refresh

—±----------------------------------------------------------------±--------------------------------------±--------±-------  
1 | Legacy\_Module\_12\_x86\_64:SLE-Module-Legacy12-Debuginfo-Pool | SLE-Module-Legacy12-Debuginfo-Pool | Yes | No  
2 | Legacy\_Module\_12\_x86\_64:SLE-Module-Legacy12-Debuginfo-Updates | SLE-Module-Legacy12-Debuginfo-Updates | Yes | Yes  
3 | Legacy\_Module\_12\_x86\_64:SLE-Module-Legacy12-Pool | SLE-Module-Legacy12-Pool | Yes | No  
4 | Legacy\_Module\_12\_x86\_64:SLE-Module-Legacy12-Updates | SLE-Module-Legacy12-Updates | Yes | Yes  
…  
host:/ #  
[/CODE]

2.) Installation of libstdc++

zypper in libstdc++33 libstdc++33-32bit

now we have:

` host:/dir/# # rpm -ql libstdc++33
   /usr/lib64/libstdc++.so.5
   /usr/lib64/libstdc++.so.5.0.7
   host:/dir/ # rpm -ql libstdc++33-32bit
   /usr/lib/libstdc++.so.5
   /usr/lib/libstdc++.so.5.0.7
   host:/dir/ #
`

3.) finally, the installation of Legato Client, e.g. Version 8.2

` host:/dir/ # rpm -U lgtoclnt-8.2.0.5-1.x86_64.rpm
   host:/dir/ #
`

The networker service is now running cleanly, as does the backup of  
the SLES 12 host.

Regards, Thomas

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [February 4, 2015, 6:41pm UTC](https://forums.suse.com/t/libstdc-5-with-sles12/26645/3 "2015-02-04T18:41:34Z")

</div>

Hi Thomas,

> when a program reports it requires libstdc++5 … is there a chance to get it running on SLES12: SLES 12 contains only libstdc++6:

I don’t have a SLES12 system at hand - but you might want to search for “libstdc” instead of “libstdc++6”… I remember that SLES11 had at least libstdc++33 and libstdc++46. If you cannot find anything in the standard distribution repos, give the SDK a try as well.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![swadm](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@swadm](https://forums.suse.com/u/swadm)\
**Post date:** [February 4, 2015, 6:56pm UTC](https://forums.suse.com/t/libstdc-5-with-sles12/26645/4 "2015-02-04T18:56:49Z")

</div>

Jens,

thanks,  
a minute ago I posted a solution 🙂

Have a nice evening, Thomas

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [February 4, 2015, 7:03pm UTC](https://forums.suse.com/t/libstdc-5-with-sles12/26645/5 "2015-02-04T19:03:03Z")

</div>

Hi Thomas,

yes, had I been a bit slower 😉 But I learned how to do it on SLES12, so many thanks to you, for getting back with the update!

Regards,  
Jens
