You are not logged in.

#1 2016-05-26 11:52:27

Yax
Member
Registered: 2016-03-19
Posts: 7

[SOLVED] MongoDB GLIBCXX_3.4.22

Hi,

I assume this stopped working after upgrading to latest version. I'm not 100% sure because I didn't used Mongo for few weeks but that's the only change I made.
System is up to date.

Mongo Version         : 3.2.6-2

So, when I try to start service I get:

May 26 13:39:32 archy mongod[10670]: /usr/bin/mongod: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /usr/bin/mongod)

Downgrading will probably help but that's the last option.

When I do

strings /usr/lib/libstdc++.so.6 |grep GLIBCXX |less

I get:

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

So, I have GLIBCXX_3.4.21 but not GLIBCXX_3.4.22.

Is there way to fix this without manually compiling the missing lib? Can I report bug somewhere if this is a bug?

Thanks

Last edited by Yax (2016-05-26 12:20:55)

Offline

#2 2016-05-26 11:59:41

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: [SOLVED] MongoDB GLIBCXX_3.4.22

Is that output the full output? You piped to less, so there may be more if you scroll down.

Post the output of the following commands:

$ pacman -Qs gcc-libs
$ uname -a

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-05-26 12:02:21

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: [SOLVED] MongoDB GLIBCXX_3.4.22

Do a full system update.   Make sure you have not disabled multilib if you use gcc-multilib.

Offline

#4 2016-05-26 12:03:35

Yax
Member
Registered: 2016-03-19
Posts: 7

Re: [SOLVED] MongoDB GLIBCXX_3.4.22

Hi,
no, that's not the full output. I've trimmed the things I thought that are irrelevant.
But that's the last GLIBCXX in the output. There is no 3.4.22.

I have multilib installed.

$ pacman -Qs gcc-libs
local/gcc-libs-multilib 5.3.0-5
    Runtime libraries shipped by GCC for multilib
local/lib32-gcc-libs 5.3.0-5
    Runtime libraries shipped by GCC (32-bit)

uname -a

Linux archy 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64 GNU/Linux

Thanks for the help!

Offline

#5 2016-05-26 12:05:02

Yax
Member
Registered: 2016-03-19
Posts: 7

Re: [SOLVED] MongoDB GLIBCXX_3.4.22

This is why I love open source community.

Yes, I've disabled the multilib in pacman. I totally forgot about that.

Thanks for the help!

Last edited by Yax (2016-05-26 12:07:40)

Offline

Board footer

Powered by FluxBB