fatal: libstdc++.so.3: open failed

Questions and Answers : Unix/Linux : fatal: libstdc++.so.3: open failed
Message board moderation

To post messages, you must log in.

AuthorMessage
Seth Hornstein

Send message
Joined: 16 May 99
Posts: 3
Credit: 382,515
RAC: 0
United States
Message 744 - Posted: 23 Jun 2004, 18:52:54 UTC

hello,
I have a sunblade-1000 runing Solaris 5.9. I just downloaded the new BOINC version of S@H today and after gunziping it and chmoding it, when I try to run it, I get the following error:
----Begin Error Message-----
ld.so.1: ./boinc_3.18_sparc-sun-solaris2.7: fatal: libstdc++.so.3: open failed: No such file or directory
Killed
----End Error Message-------
I don't have any administrative access on the terminal and am just trying to run it as a user. Is there anyway I can get this to work without making system changes?
TIA!
seth

ID: 744 · Report as offensive
Profile AthlonRob
Volunteer developer
Avatar

Send message
Joined: 18 May 99
Posts: 378
Credit: 7,041
RAC: 0
United States
Message 814 - Posted: 23 Jun 2004, 21:23:37 UTC

Yes... it should be possible to get around this without making system-wide changes. Do you have a disk quota there? I think if you download glibc and gcc, compile them both, install them both into your home directory, edit your library path, and launch boinc... it'll work.

That isn't exactly ideal, though.

I'd report it to your sysadmin, though.. if they expect people to be able to use the system, they really should have glibc things on it.

Rob
ID: 814 · Report as offensive
albertw

Send message
Joined: 13 Apr 99
Posts: 8
Credit: 3,155,815
RAC: 0
Ireland
Message 864 - Posted: 23 Jun 2004, 22:56:27 UTC - in response to Message 814.  

Folks, I seem to remember this coming up in beta test, and its a little worrying that it isnt fixed yet. iirc AthlonRob is correct and you will need to install glibc, installing packages from sunfreeware.com may be easier than compiling from scratch if you can get administrator access, or have an administrator do it for you.

boinc folks, can boinc be recompiled statically or set to use standard solaris dynamic libraries? I can help out with if needed.

Cheers,
~Al
ID: 864 · Report as offensive
Seth Hornstein

Send message
Joined: 16 May 99
Posts: 3
Credit: 382,515
RAC: 0
United States
Message 871 - Posted: 23 Jun 2004, 23:03:36 UTC - in response to Message 864.  
Last modified: 23 Jun 2004, 23:04:06 UTC

> Folks, I seem to remember this coming up in beta test, and its a little
> worrying that it isnt fixed yet. iirc AthlonRob is correct and you will need
> to install glibc, installing packages from sunfreeware.com may be easier than
> compiling from scratch if you can get administrator access, or have an
> administrator do it for you.
>
> boinc folks, can boinc be recompiled statically or set to use standard solaris
> dynamic libraries? I can help out with if needed.
>
> Cheers,
> ~Al
>

you are right, this did come up during beta testing.
http://setiboinc.ssl.berkeley.edu/ap/forum_thread.php?id=1294

But this is a bit beyond my ability/knowledge. I have already contacted my sysadmin to see if the library is available somewhere already. However, since S@H is my own pet project on a bunch of unix boxes that go unused (but are left on) most of the evenings I am kind of on my own on this. The sysadmins have much more important things to work on and getting S@H is very low on that list. (I have already been scolded once by sysadmins for causing problems when running S@H.) So if it requires adding/making/compiling anything new, I am afraid I am not going to be able to continue to run boinc/S@H.
ID: 871 · Report as offensive
albertw

Send message
Joined: 13 Apr 99
Posts: 8
Credit: 3,155,815
RAC: 0
Ireland
Message 1200 - Posted: 24 Jun 2004, 15:01:52 UTC - in response to Message 871.  

Hi,

Try putting the following two files from the gcc solaris 9 sparc package into the directory with the boinc executable:

http://www.cademuir.net/libgcc_s.so.1
http://www.cademuir.net/libstdc++.so.3

Or compile them, or copy them from another box etc. etc.

Then in the directory with the boinc exacutable and the libraries:
LD_LIBRARYPATH=`pwd`
export LD_LIBRARYPATH
./boinc_3.18_sparc-sun-solaris2.7

That should get you up and running without needing your sysadmin to do anything.

Cheers,
~Al
ID: 1200 · Report as offensive
Seth Hornstein

Send message
Joined: 16 May 99
Posts: 3
Credit: 382,515
RAC: 0
United States
Message 1274 - Posted: 24 Jun 2004, 18:17:40 UTC - in response to Message 1200.  

> http://www.cademuir.net/libgcc_s.so.1
> http://www.cademuir.net/libstdc++.so.3
>
> Then in the directory with the boinc exacutable and the libraries:
> LD_LIBRARYPATH=`pwd`
> export LD_LIBRARYPATH
> ./boinc_3.18_sparc-sun-solaris2.7

YOU ROCK! This worked!
I actually just created a directory in my home called ~/lib and put the two files there. Then modified my .cshrc (which already had the command
setenv LD_LIBRARY_PATH /usr/local/lib/
to
setenv LD_LIBRARY_PATH /usr/local/lib/:~/lib

now it works! Thanks for everyone's help!


ID: 1274 · Report as offensive
lemonade lucy

Send message
Joined: 23 Sep 99
Posts: 73
Credit: 1,454,014
RAC: 0
United States
Message 7239 - Posted: 13 Jul 2004, 2:34:09 UTC - in response to Message 1200.  

> Hi,
>
> Try putting the following two files from the gcc solaris 9 sparc package into
> the directory with the boinc executable:
>
> http://www.cademuir.net/libgcc_s.so.1
> http://www.cademuir.net/libstdc++.so.3
>
> Or compile them, or copy them from another box etc. etc.
>
> Then in the directory with the boinc exacutable and the libraries:
> LD_LIBRARYPATH=`pwd`
> export LD_LIBRARYPATH
> ./boinc_3.18_sparc-sun-solaris2.7
>
> That should get you up and running without needing your sysadmin to do
> anything.
>
> Cheers,
> ~Al
>
>

this solution did nothing for me and though it looks like nothing to miss, I must have missed something. ...and the thought of compiling back to 2.9.5 (from 3.4.1) or the like is simply unacceptable--I have apps that failed with pre3.

any advice?

thanks.


ID: 7239 · Report as offensive
Soeren

Send message
Joined: 3 Apr 99
Posts: 1
Credit: 973
RAC: 0
Germany
Message 9680 - Posted: 19 Jul 2004, 9:57:46 UTC - in response to Message 7239.  

Depending on the shell you are using the syntax for LD_LIBRARY_PATH may be different. Just fell into this trap myself.
for tcshell it's LD_LIBRARY_PATH, not LD_LIBRARYPATH




> > Hi,
> >
> > Try putting the following two files from the gcc solaris 9 sparc package
> into
> > the directory with the boinc executable:
> >
> > http://www.cademuir.net/libgcc_s.so.1
> > http://www.cademuir.net/libstdc++.so.3
> >
> > Or compile them, or copy them from another box etc. etc.
> >
> > Then in the directory with the boinc exacutable and the libraries:
> > =`pwd`
> > export LD_LIBRARYPATH
> > ./boinc_3.18_sparc-sun-solaris2.7
> >
> > That should get you up and running without needing your sysadmin to do
> > anything.
> >
> > Cheers,
> > ~Al
> >
> >
>
> this solution did nothing for me and though it looks like nothing to miss, I
> must have missed something. ...and the thought of compiling back to 2.9.5
> (from 3.4.1) or the like is simply unacceptable--I have apps that failed with
> pre3.
>
> any advice?
>
> thanks.
>
>
>
>

ID: 9680 · Report as offensive
john e bean
Avatar

Send message
Joined: 27 Aug 99
Posts: 4
Credit: 501,044
RAC: 0
United States
Message 9998 - Posted: 19 Jul 2004, 20:20:39 UTC - in response to Message 814.  

I am getting the libgcc_s.so.1 not found msg under Redhat linux 7.3.
I am trying to install this bionc thing because it appears to be the only way to continue contributing to seti.
I am NOT unix guru...the advice I see on this topic appear to a way to confuse my system about the libraies (I already have) are.
Does this mean I am hopeless to continue with seti?
Note, I received no emails or other notification that this conversion was even going on.
I wasted a couple of days assuming it was just a server down problem.
I know I am ragging, but sheesh, this cutover is difficult for novice linux users like myself. I need something that just installs without getting who knows what versions of some libs I alreay have.
Will the boinc install be corrected? Soon? my cpuS are waiting...

> Yes... it should be possible to get around this without making system-wide
> changes. Do you have a disk quota there? I think if you download glibc and
> gcc, compile them both, install them both into your home directory, edit your
> library path, and launch boinc... it'll work.
>
> That isn't exactly ideal, though.
>
> I'd report it to your sysadmin, though.. if they expect people to be able to
> use the system, they really should have glibc things on it.
>
> Rob
>
>
ID: 9998 · Report as offensive
wumpus

Send message
Joined: 3 Apr 99
Posts: 3
Credit: 420,330
RAC: 0
United States
Message 23972 - Posted: 9 Sep 2004, 3:58:53 UTC

I am on a Sunblade 100, 2Gb ram, Solaris 9 u7. I got the link to the GCC libraries going using

crle -l /usr/lib -l /opt/local/lib

I had to reboot also. This method seem to have changed on Solaris 8 and later. crle - configure
runtime linking enviroment.

I just used the latest GCC off of www.sunfreeware.com libgcc 3.4.1
ID: 23972 · Report as offensive
spex

Send message
Joined: 17 May 99
Posts: 1
Credit: 2,294,433
RAC: 0
United States
Message 36644 - Posted: 14 Oct 2004, 22:27:07 UTC

I have gcc-3.4.1 installed (SPARC Solaris 2.9), and there is no libstdc++.so.3 file.

Instead I created a symbolic link to the ligstdc++.so.6 file which came with the gcc I installed.

You could probably put the symbolic link anywhere, and add the path to your LD_LIBRARY_PATH variable:

cd ~/lib
ln -s /usr/local/lib/libstdc++.so.6 libstdc++.so.3
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/lib
<pre>
s p e x

I * j u s t * w a n t * a
* l i t t l e * p a s s i
o n * t o * h o l d * m e
* i n * t h e * d a r k * </pre>
ID: 36644 · Report as offensive
Archmage

Send message
Joined: 3 Apr 99
Posts: 2
Credit: 8,889
RAC: 0
United States
Message 50023 - Posted: 29 Nov 2004, 23:43:23 UTC - in response to Message 9680.  

Ok, so I copied in the files, and changed the LD_LIBRARY_PATH environment (I'm using tcsh), and now it runs, but it doesn't do any. At all. And I can't break out; I have to kill the terminal. If I run it in the background, it still doesn't do anything but create a "lockfile" in the directory. I ran it once with no switches, and again with the -attach_project switch, and it never does anything.

Any idea why?

> Depending on the shell you are using the syntax for LD_LIBRARY_PATH may be
> different.
>
> > > Try putting the following two files from the gcc solaris 9 sparc package into
> > > the directory with the boinc executable:
> > >
> > > http://www.cademuir.net/libgcc_s.so.1
> > > http://www.cademuir.net/libstdc++.so.3
> > >
ID: 50023 · Report as offensive

Questions and Answers : Unix/Linux : fatal: libstdc++.so.3: open failed


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.