climateprediction.net home page
Error while loading libstdc++ library
Error while loading libstdc++ library
log in

Advanced search

Questions and Answers : Unix/Linux : Error while loading libstdc++ library

Author Message
Hal Bregg
Send message
Joined: 20 Nov 18
Posts: 6
Credit: 194,210
RAC: 1,709
Message 59782 - Posted: 11 Mar 2019, 9:38:51 UTC

Hello,

I have five failed UK Met Office HadCM3 short v8.34 i686-pc-linux-gnu tasks with the same error

process exited with code 127 (0x7f, -129)</message> <stderr_txt> ../../projects/climateprediction.net/hadcm3s_8.34_i686-pc-linux-gnu: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory


Boinc version 7.9.3 and is running on 64bit Linux Mint 19.1 with 4.15.0-45-generic kernel.

Does it mean particular library is missing?

Profile Dave Jackson
Volunteer moderator
Send message
Joined: 15 May 09
Posts: 2417
Credit: 3,076,286
RAC: 342
Message 59783 - Posted: 11 Mar 2019, 9:59:11 UTC - in response to Message 59782.
Last modified: 11 Mar 2019, 10:00:49 UTC

Hi Hal,

The executables from the met office are 32 bit and have some 32 bit dependencies. I haven't used Mint but it is worth looking at this thread which should help in tracking down and installing the required 32bit libs.

https://www.cpdn.org/cpdnboinc/forum_thread.php?id=8008#53055

It may not be too long till there are some 64bit tasks for Linux but, "not too long" in cpdn terms may be quite a while!

Edit: At the moment on a 64 bit Linux installation, you won't get any tasks to run without installing these libraries.

Profile geophi
Volunteer moderator
Send message
Joined: 7 Aug 04
Posts: 1811
Credit: 36,354,717
RAC: 10,605
Message 59787 - Posted: 11 Mar 2019, 19:45:19 UTC

On Ubuntu 16.04 LTS this command worked to satisfy the dependencies

sudo apt-get install lib32ncurses5 lib32z1 gcc-4.7-multilib

However, Mint 19.1 is based on Ubuntu 18.04 LTS so may have different dependencies.

You may be able to substitute

lib32stdc++-6-dev

for

gcc-4.7-multilib

in the above command. If that doesn't work, the output from that command may give you an explanation of what replacement dependency is needed.

As a last resort, you can also do a

sudo ldd on the hadcm3s executables (probably 2 of them with different names) and .so file in the (probably) /var/lib/boinc-client/projects/climateprediction.net directory to see what dependencies are left to be satisfied.

Jim1348
Send message
Joined: 15 Jan 06
Posts: 356
Credit: 14,883,302
RAC: 49,539
Message 59788 - Posted: 11 Mar 2019, 21:47:22 UTC - in response to Message 59787.

The last time I installed Ubuntu 16.04.5 (a couple of weeks ago), I could only get "sudo apt install lib32ncurses5 lib32z1" to work.
At least it installs. Whether it runs the CPDN models remains to be seen, when they send me some.

Les Bayliss
Volunteer moderator
Send message
Joined: 5 Sep 04
Posts: 6909
Credit: 20,843,205
RAC: 108
Message 59789 - Posted: 12 Mar 2019, 1:20:44 UTC

I use a disk from the cover of a computer magazine to get an installable version of each new version of Mint.
I've got one for version 19, but I'm running 18.3 with the Cinnamon desktop, which works quite well, and I'm not fanatical about getting the latest of everything.

BOINC is 7.6.31, and everything works "out of the box", without having to go looking for 32 bit stuff.
Which is a bit of a pain, but way back when I did need that pesky file that you're missing, I dug out an old computer, installed 32 bit Linux, and copied the two files from there.

Profile Dave Jackson
Volunteer moderator
Send message
Joined: 15 May 09
Posts: 2417
Credit: 3,076,286
RAC: 342
Message 59791 - Posted: 12 Mar 2019, 7:10:28 UTC - in response to Message 59788.

At least it installs. Whether it runs the CPDN models remains to be seen, when they send me some.

They run on my laptop which has a clean install of Ubuntu 18.10 on it. However with the steady withdrawal of 32 bit support, who knows what will happen with 19.04 next month.

Hal Bregg
Send message
Joined: 20 Nov 18
Posts: 6
Credit: 194,210
RAC: 1,709
Message 59793 - Posted: 12 Mar 2019, 13:56:03 UTC - in response to Message 59787.
Last modified: 12 Mar 2019, 14:01:47 UTC

On Ubuntu 16.04 LTS this command worked to satisfy the dependencies

sudo apt-get install lib32ncurses5 lib32z1 gcc-4.7-multilib

However, Mint 19.1 is based on Ubuntu 18.04 LTS so may have different dependencies.

You may be able to substitute

lib32stdc++-6-dev

for

gcc-4.7-multilib

in the above command. If that doesn't work, the output from that command may give you an explanation of what replacement dependency is needed.

As a last resort, you can also do a

sudo ldd on the hadcm3s executables (probably 2 of them with different names) and .so file in the (probably) /var/lib/boinc-client/projects/climateprediction.net directory to see what dependencies are left to be satisfied.


Library gcc-4.7-multilib was not available for me. However I had gcc-4.8-multilib available which I installed as well as lib32stdc++-6-dev. I am not getting any tasks at the moment but once I get something to crunch I will post update.

Questions and Answers : Unix/Linux : Error while loading libstdc++ library


Main page · Your account · Message boards


Copyright © 2019 climateprediction.net