PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > loading shared libraries: libstdc++.so.6
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

loading shared libraries: libstdc++.so.6

Réponse
 
LinkBack Outils de la discussion
Vieux 03/01/2008, 17h40   #1
tclin1998@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut loading shared libraries: libstdc++.so.6

Hi:

I got an error message when running a program:

>./router

../router: error while loading shared libraries: libstdc++.so.6: cannot
open shared object file: No such file or directory

Does anyone know the cause?
I don't have libstdc++.so.6 in /usr/lib but the program is static
linked.

> ldd router

not a dynamic executable

Thanks

-Todd
  Réponse avec citation
Vieux 03/01/2008, 19h10   #2
Icarus Sparry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: loading shared libraries: libstdc++.so.6

On Thu, 03 Jan 2008 09:40:24 -0800, tclin1998 wrote:

> Hi:
>
> I got an error message when running a program:
>
>>./router

> ./router: error while loading shared libraries: libstdc++.so.6: cannot
> open shared object file: No such file or directory
>
> Does anyone know the cause?
> I don't have libstdc++.so.6 in /usr/lib but the program is static
> linked.
>
>> ldd router

> not a dynamic executable
>
> Thanks
>
> -Todd


The fact that ldd says it is not a dynamic executable does not mean as
much as you seem to think.
1) The way that ldd works means that you have to be able to execute
"router" on the machine that is running ldd. If you are cross compiling
this is often not the case.
2) Even if the "router" program is statically linked, it does not mean
that it cannot load additional libraries whilst it is running.

"readelf -d" is often a better tool than ldd to see what is required at
startup time.

The "elfutils" version of readelf is also good.

I suggest you install the library that it is asking for.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h00.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11657 seconds with 10 queries