How to update libstdc++.so.6?

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
sokolov
Level 1
Level 1
Posts: 5
Joined: Fri Aug 23, 2013 11:07 pm

How to update libstdc++.so.6?

Post by sokolov »

Hello,

How can I update libstdc++.so.6 to a newer version?

I run Linux Mint 18.3. I have installed Firefox-ESR 68 and Firefox 79. Firefox 79 works fine, but Firefox-ESR 68 won't start. This is the error message:

XPCOMGlueLoad error for file /usr/lib/firefox-esr/libxul.so:
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.23' not found (required by /usr/lib/firefox-esr/libxul.so)
Couldn't load XPCOM.

When I do
$ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
OR
$ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 | grep GLIBCXX

I get this:

GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_DEBUG_MESSAGE_LENGTH

So it seems a I need a newer version of libstdc++.so.6 - but how?

I had a look in folder /usr/lib/x86_64-linux-gnu/1 and found a Link libstdc++.so.6 and the actual libstdc++.so.6.0.21.

I already had installed GCC 4.5.3.1, GCC 5.4.0 and GCC 6 base 6.0.1. I added GCC 4.9
.3, hoping that that would update libstdc++.so.6, but it did not.

Thank you.
User avatar
xenopeek
Level 24
Level 24
Posts: 24846
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How to update libstdc++.so.6?

Post by xenopeek »

From where did you install Firefox-ESR 68? You may have the download for wrong OS.

As for package libstdc++6 I wouldn't touch it. That 6.0.21 version is the current version for Linux Mint 18.x / Ubuntu 16.04 Xenial. You may risk breaking other software that is compiled against this version if you replace. If you must have a newer libstdc++6 version it's maybe time to considering upgrading to Linux Mint 19.x or 20. Those have newer versions of that package, with the other software in the repositories that depends on it also compiled against that version.
Image
Post Reply

Return to “Software & Applications”