Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 08:13 AM
jw
 
Posts: n/a
Default libstd c++.so.5 error

I'm getting the following error when I try to run certain programs. Most
recently I downloaded and installed RealPlayer RPM. When I try and run
the application the following error comes up.

(error while loading shared libraries: libstdc++.so.5: cannot open
shared object file: No such file or directory)

Can someone please help me here?


Thanks


JW

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 08:13 AM
Jean-David Beyer
 
Posts: n/a
Default Re: libstd c++.so.5 error

jw wrote:
> I'm getting the following error when I try to run certain programs. Most
> recently I downloaded and installed RealPlayer RPM. When I try and run
> the application the following error comes up.
>
> (error while loading shared libraries: libstdc++.so.5: cannot open
> shared object file: No such file or directory)
>
> Can someone please help me here?


Do you have such a library installed on your machine? I do:

$ locate libstdc++.so.5
/usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.5.0.3

$ ls -l /usr/lib/libstdc++.so.5*
lrwxrwxrwx 1 root root 18 May 19 11:33 /usr/lib/libstdc++.so.5 ->
libstdc++.so.5.0.3
-rwxr-xr-x 1 root root 709488 Feb 28 13:51 /usr/lib/libstdc++.so.5.0.3

On my system, Red Hat Enterprise Linux 3, it comes in package:
$ rpm -qf /usr/lib/libstdc++.so.5.0.3
libstdc++-3.2.3-52


--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 07:00:00 up 55 days, 54 min, 3 users, load average: 4.25, 4.27, 4.15
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 08:13 AM
Peter T. Breuer
 
Posts: n/a
Default Re: libstd c++.so.5 error

jw <jesswalton37@hotmail.com> wrote:
> (error while loading shared libraries: libstdc++.so.5: cannot open
> shared object file: No such file or directory)
>
> Can someone please help me here?


Put it back or install it. What's your problem with that? In what way
is the message difficult to understand - it says it isn't there, so put
it there!

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 08:13 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: libstd c++.so.5 error


"Peter T. Breuer" <ptb@oboe.it.uc3m.es> wrote in message
news:1ihms2-san.ln1@news.it.uc3m.es...
> jw <jesswalton37@hotmail.com> wrote:
>> (error while loading shared libraries: libstdc++.so.5: cannot open
>> shared object file: No such file or directory)
>>
>> Can someone please help me here?

>
> Put it back or install it. What's your problem with that? In what way
> is the message difficult to understand - it says it isn't there, so put
> it there!


Ye ghods, what a git. Peter is probably single-handedly responsible for
turning off every newbie to Linux in his family, if not everyone he posts to
on this group?

Jess, where did you get the RealPlayer RPM? And for which OS and
distribution are you trying to use it? libstdc++ is one of the really basic
libraries, but those do get revised occasionally, and because RealPlayer is
closed source and distributed as binaries, you may have to instlal
compatibility libraries or do some fascinating wrappers to get a copy of the
right version of that library in place for you to use.

Under Fedora Core 4, for example, doing a "locate libstdc++" reveals that
the current version of libstdc++ is libstdc++.so.6. And by the way, these
libraries files with the ".so" on the end are called dynamic libraries. Like
..DLL files in the Windows world, they get loaded up when the program is run
and are kept in certain locations, like /lib and /usr/lib, and tend to be
shared by a lot of different programs so that the same library gets written
only once and not duplicated for every program in the world. But the
programs are "linked" to specific versions of the libraries, so that
possibly incompatible libraries can exist on the same machnie with different
versions.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 08:13 AM
jw
 
Posts: n/a
Default Re: libstd c++.so.5 error

On Tue, 2005-08-09 at 08:41 -0400, Nico Kadel-Garcia wrote:
> "Peter T. Breuer" <ptb@oboe.it.uc3m.es> wrote in message
> news:1ihms2-san.ln1@news.it.uc3m.es...
> > jw <jesswalton37@hotmail.com> wrote:
> >> (error while loading shared libraries: libstdc++.so.5: cannot open
> >> shared object file: No such file or directory)
> >>
> >> Can someone please help me here?

> >
> > Put it back or install it. What's your problem with that? In what way
> > is the message difficult to understand - it says it isn't there, so put
> > it there!

>
> Ye ghods, what a git. Peter is probably single-handedly responsible for
> turning off every newbie to Linux in his family, if not everyone he posts to
> on this group?


Thanks for the patience.

I downloaded the rpm from www.real.com/linux.

I tried what you suggested and the locate command revealed:

/usr/lib/libstdc++.so.6.0.5
/usr/lib/libstdc++.so.6


Can I have both libraries on the same machine?
If so where do I obtain them and how to I go about installing?

I'm not familiar with "wrappers". If it's not to much trouble can you
explain in layman terms?

Thanks again!

>
> Jess, where did you get the RealPlayer RPM? And for which OS and
> distribution are you trying to use it? libstdc++ is one of the really basic
> libraries, but those do get revised occasionally, and because RealPlayer is
> closed source and distributed as binaries, you may have to instlal
> compatibility libraries or do some fascinating wrappers to get a copy of the
> right version of that library in place for you to use.
>
> Under Fedora Core 4, for example, doing a "locate libstdc++" reveals that
> the current version of libstdc++ is libstdc++.so.6. And by the way, these
> libraries files with the ".so" on the end are called dynamic libraries. Like
> .DLL files in the Windows world, they get loaded up when the program is run
> and are kept in certain locations, like /lib and /usr/lib, and tend to be
> shared by a lot of different programs so that the same library gets written
> only once and not duplicated for every program in the world. But the
> programs are "linked" to specific versions of the libraries, so that
> possibly incompatible libraries can exist on the same machnie with different
> versions.
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 08:13 AM
jw
 
Posts: n/a
Default Re: libstd c++.so.5 error

On Tue, 2005-08-09 at 07:07 -0400, Jean-David Beyer wrote:
> jw wrote:
> > I'm getting the following error when I try to run certain programs. Most
> > recently I downloaded and installed RealPlayer RPM. When I try and run
> > the application the following error comes up.
> >
> > (error while loading shared libraries: libstdc++.so.5: cannot open
> > shared object file: No such file or directory)
> >
> > Can someone please help me here?

>
> Do you have such a library installed on your machine? I do:
>
> $ locate libstdc++.so.5
> /usr/lib/libstdc++.so.5
> /usr/lib/libstdc++.so.5.0.3
>
> $ ls -l /usr/lib/libstdc++.so.5*
> lrwxrwxrwx 1 root root 18 May 19 11:33 /usr/lib/libstdc++.so.5 ->
> libstdc++.so.5.0.3
> -rwxr-xr-x 1 root root 709488 Feb 28 13:51 /usr/lib/libstdc++.so.5.0.3
>
> On my system, Red Hat Enterprise Linux 3, it comes in package:
> $ rpm -qf /usr/lib/libstdc++.so.5.0.3
> libstdc++-3.2.3-52
>
>

Jean,

Apparently the Fedora 4 has the following:

/usr/lib/libstdc++.so.6.0.5
/usr/lib/libstdc++.so.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 08:13 AM
Peter T. Breuer
 
Posts: n/a
Default Re: libstd c++.so.5 error

jw <jesswalton37@hotmail.com> wrote:
> On Tue, 2005-08-09 at 08:41 -0400, Nico Kadel-Garcia wrote:
> > "Peter T. Breuer" <ptb@oboe.it.uc3m.es> wrote in message
> > news:1ihms2-san.ln1@news.it.uc3m.es...
> > > jw <jesswalton37@hotmail.com> wrote:
> > >> (error while loading shared libraries: libstdc++.so.5: cannot open
> > >> shared object file: No such file or directory)
> > >>
> > >> Can someone please help me here?
> > >
> > > Put it back or install it. What's your problem with that? In what way
> > > is the message difficult to understand - it says it isn't there, so put
> > > it there!

> >
> > Ye ghods, what a git. Peter is probably single-handedly responsible for
> > turning off every newbie to Linux in his family, if not everyone he posts to

Shog off, pariah. Thanks.

> Thanks for the patience.


No problemo.

> I downloaded the rpm from www.real.com/linux.


What rpm? For what target distro? Anyway - you downloaded an rpm that
needs a certain set of support libraries. EIther change your support
libraries or change the rpm you downloaded. This is the first time you
have mentioned an rpm, no?

> I tried what you suggested and the locate command revealed:
>
> /usr/lib/libstdc++.so.6.0.5
> /usr/lib/libstdc++.so.6


Fine. So? (I don't have those libs).

> Can I have both libraries on the same machine?


What libraries? Do you mean stdc++.so.5 as well? Yes of course! That's
the whole idea of them having different major numbers.


> If so where do I obtain them and how to I go about installing?


Anywhere you like, and any way you like. What kind of a question is
that?


> I'm not familiar with "wrappers".


What on earth do you mean?

> If it's not to much trouble can you
> explain in layman terms?


Eh? A wrapper can be most anything. It's a loose term. You can write
a script wrapper for realplayer that sets LD_LIBRARY_PATH to wherever
you have stashed the support libs you need, then calls realplay. What's
the idea? Why not get an rpm aimed at your platform instead? Or simply
put the libs out in the open in your system? They don't do any harm.
libstdc++.so.5 looks to me on my platform to be part of generic old c++
back-support. You should be able to fix your problem by simply getting
an rpm aimed at your own libraries instead!

More data on your part would enable us to perceive more accurately what
your problem is.


Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-18-2008, 08:13 AM
jw
 
Posts: n/a
Default Re: libstd c++.so.5 error

On Tue, 2005-08-09 at 16:33 +0200, Peter T. Breuer wrote:
> jw <jesswalton37@hotmail.com> wrote:
> > On Tue, 2005-08-09 at 08:41 -0400, Nico Kadel-Garcia wrote:
> > > "Peter T. Breuer" <ptb@oboe.it.uc3m.es> wrote in message
> > > news:1ihms2-san.ln1@news.it.uc3m.es...
> > > > jw <jesswalton37@hotmail.com> wrote:
> > > >> (error while loading shared libraries: libstdc++.so.5: cannot open
> > > >> shared object file: No such file or directory)
> > > >>
> > > >> Can someone please help me here?
> > > >
> > > > Put it back or install it. What's your problem with that? In what way
> > > > is the message difficult to understand - it says it isn't there, so put
> > > > it there!
> > >
> > > Ye ghods, what a git. Peter is probably single-handedly responsible for
> > > turning off every newbie to Linux in his family, if not everyone he posts to

> Shog off, pariah. Thanks.
>
> > Thanks for the patience.

>
> No problemo.
>
> > I downloaded the rpm from www.real.com/linux.

>
> What rpm? For what target distro? Anyway - you downloaded an rpm that
> needs a certain set of support libraries. EIther change your support
> libraries or change the rpm you downloaded. This is the first time you
> have mentioned an rpm, no?
>
> > I tried what you suggested and the locate command revealed:
> >
> > /usr/lib/libstdc++.so.6.0.5
> > /usr/lib/libstdc++.so.6

>
> Fine. So? (I don't have those libs).
>
> > Can I have both libraries on the same machine?

>
> What libraries? Do you mean stdc++.so.5 as well? Yes of course! That's
> the whole idea of them having different major numbers.
>
>
> > If so where do I obtain them and how to I go about installing?

>
> Anywhere you like, and any way you like. What kind of a question is
> that?
>
>
> > I'm not familiar with "wrappers".

>
> What on earth do you mean?
>
> > If it's not to much trouble can you
> > explain in layman terms?

>
> Eh? A wrapper can be most anything. It's a loose term. You can write
> a script wrapper for realplayer that sets LD_LIBRARY_PATH to wherever
> you have stashed the support libs you need, then calls realplay. What's
> the idea? Why not get an rpm aimed at your platform instead? Or simply
> put the libs out in the open in your system? They don't do any harm.
> libstdc++.so.5 looks to me on my platform to be part of generic old c++
> back-support. You should be able to fix your problem by simply getting
> an rpm aimed at your own libraries instead!
>
> More data on your part would enable us to perceive more accurately what
> your problem is.
>
>
> Peter



Peter,

It seems to me that your not trying to percieve anything. However it is
quite clear that you enjoy responding to these posts because it does
something for your ego.

Your by no means required to respond to any post. If you find the post
is beneath your intellectual level it would probably be best for you as
well as others if you just kept your responses to yourself.





Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-18-2008, 08:13 AM
Peter T. Breuer
 
Posts: n/a
Default Re: libstd c++.so.5 error

jw <jesswalton37@hotmail.com> wrote:
> > What rpm? For what target distro? Anyway - you downloaded an rpm that
> > needs a certain set of support libraries. EIther change your support
> > libraries or change the rpm you downloaded. This is the first time you
> > have mentioned an rpm, no?


> > Eh? A wrapper can be most anything. It's a loose term. You can write
> > a script wrapper for realplayer that sets LD_LIBRARY_PATH to wherever
> > you have stashed the support libs you need, then calls realplay. What's
> > the idea? Why not get an rpm aimed at your platform instead? Or simply
> > put the libs out in the open in your system? They don't do any harm.
> > libstdc++.so.5 looks to me on my platform to be part of generic old c++
> > back-support. You should be able to fix your problem by simply getting
> > an rpm aimed at your own libraries instead!
> >
> > More data on your part would enable us to perceive more accurately what
> > your problem is.



> It seems to me that your not trying to percieve anything. However it is
> quite clear that you enjoy responding to these posts because it does
> something for your ego.


Eh?

> Your by no means required to respond to any post. If you find the post
> is beneath your intellectual level it would probably be best for you as
> well as others if you just kept your responses to yourself.


What the heck is the matter with you?

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-18-2008, 08:13 AM
Michael Heiming
 
Posts: n/a
Default Re: libstd c++.so.5 error

In comp.os.linux.setup jw <jesswalton37@hotmail.com>:
> On Tue, 2005-08-09 at 16:33 +0200, Peter T. Breuer wrote:
>> jw <jesswalton37@hotmail.com> wrote:
>> > On Tue, 2005-08-09 at 08:41 -0400, Nico Kadel-Garcia wrote:
>> > > "Peter T. Breuer" <ptb@oboe.it.uc3m.es> wrote in message
>> > > news:1ihms2-san.ln1@news.it.uc3m.es...
>> > > > jw <jesswalton37@hotmail.com> wrote:
>> > > >> (error while loading shared libraries: libstdc++.so.5: cannot open
>> > > >> shared object file: No such file or directory)
>> > > >>
>> > > >> Can someone please help me here?
>> > > >
>> > > > Put it back or install it. What's your problem with that? In what way
>> > > > is the message difficult to understand - it says it isn't there, so put
>> > > > it there!

[..]

> It seems to me that your not trying to percieve anything. However it is
> quite clear that you enjoy responding to these posts because it does
> something for your ego.


> Your by no means required to respond to any post. If you find the post
> is beneath your intellectual level it would probably be best for you as
> well as others if you just kept your responses to yourself.


You mentioned, in your reply to Jean-David, you'd run FC 4i you
should have pointed out this important information earlier.

Just try (from some xterm, use 'su -' to become root or use sudo
if configure):

yum install compat-libstdc++

Or use 'up2date' to install the package.

Peter already outlined in his first reply you'd simply need to
install the package, you could have used 'yum search libstdc' to
search for the needed file or used up2date. You want to get
comfortable with the tools of your package manager (rpm), so you
could have resolved the problem from just reading the error
message, no rocket science involved. To get you started, try:

man rpm
man yum
man up2date

BTW
Glad to hear "Discovery" came back successfully without further
problems.

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 302: microelectronic Riemannian curved-space
fault in write-only file system
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:06 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545