Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2639 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  impossible d'installer libpcap [UBUNTU]

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

impossible d'installer libpcap [UBUNTU]

n°991631
jul_barrak
Posté le 15-12-2007 à 14:10:42  profilanswer
 

Bonjour tout le monde,
 
je souhaite installer la librairie "libpcap" sous ubuntu 7.10 desktop i386.
j'ai telechargé l'archive sur internet: "libpcap-0.8.1.tar.gz"
puis j'ai suivi la procedure d'instal en faisant "./configure" mais c a ce moment la que j'ai cette erreur et i lne me cree pas le make
 
 
[...]
checking whether we have DAG API... no
checking for flex... no
checking for bison... no
checking for capable lex... insufficient
configure: error: Your operating system's lex is insufficient to compile
libpcap. flex is a lex replacement that has many advantages, including
being able to compile libpcap. For more information, see
http://www.gnu.org/software/flex/flex.html .
 
je tiens a preciser que j'ai tenté d'installer flex avec l'archive "flex-2.5.34.tar.gz" en utilisant aussi ./configure mais 'ai de nouveau une erreur:
checking for gm4... no
checking for gnum4... no
checking for m4... no
checking for GNU m4... no
configure: error: GNU M4 1.4 is required
 
la je commence a plus en voir le bout...
est ce quelqu'un pourrais m'aider!!!
 
Merci d'avance.

mood
Publicité
Posté le 15-12-2007 à 14:10:42  profilanswer
 

n°991654
o'gure
Modérateur
Multi grognon de B_L
Posté le 15-12-2007 à 16:49:41  profilanswer
 

Et tu as pensé à regarder dans les packages d'ubuntu (via apt-get, aptitude ou encore synaptic) ??


---------------
Relax. Take a deep breath !
n°991655
jul_barrak
Posté le 15-12-2007 à 16:52:59  profilanswer
 

o'gure a écrit :

Et tu as pensé à regarder dans les packages d'ubuntu (via apt-get, aptitude ou encore synaptic) ??


 
j'ai deja essayé pas mal de choses...
 
sudo apt-get install libpcap0.8
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
libpcap0.8 est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
 
mais je peux tj pas compiler apres, il manque tj les fichies pcap.h if.h.... pour faire les include dans mon pgm et normalement en installant libpcap les fichiers sont present!!!(je l'avais deja fait sur un autre pc!!
 
mais c quoi la difference entre apt aptitude et synaptic???
 
sinon d'autres idées...
 
merci pour vos reponse

n°991656
o'gure
Modérateur
Multi grognon de B_L
Posté le 15-12-2007 à 17:02:09  profilanswer
 

apt-cache search libpcap
=> libpcap0.8-dev

Message cité 1 fois
Message édité par o'gure le 15-12-2007 à 17:02:25

---------------
Relax. Take a deep breath !
n°991658
jul_barrak
Posté le 15-12-2007 à 17:29:33  profilanswer
 

o'gure a écrit :

apt-cache search libpcap
=> libpcap0.8-dev


 
sudo apt-get install libpcap0.8-dev
[sudo] password for julien:
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances        
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet libpcap0.8-dev
 
voila la reponse....

n°991659
jul_barrak
Posté le 15-12-2007 à 17:33:23  profilanswer
 

avec "apt-cache search libpcap" ne renvoit rien!!! :(

n°991665
o'gure
Modérateur
Multi grognon de B_L
Posté le 15-12-2007 à 18:37:35  profilanswer
 

montre ton /etc/apt/sources.list
http://packages.ubuntu.com/cgi-bin [...] elease=all


---------------
Relax. Take a deep breath !
n°991667
jul_barrak
Posté le 15-12-2007 à 18:48:24  profilanswer
 


 
deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
 
# Line commented out by installer because it failed to verify:
#deb http://fr.archive.ubuntu.com/ubuntu/ gutsy main restricted
# Line commented out by installer because it failed to verify:
#deb-src http://fr.archive.ubuntu.com/ubuntu/ gutsy main restricted
 
## Major bug fix updates produced after the final release of the
## distribution.
# Line commented out by installer because it failed to verify:
#deb http://fr.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
# Line commented out by installer because it failed to verify:
#deb-src http://fr.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
 
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# Line commented out by installer because it failed to verify:
#deb http://fr.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
#deb-src http://fr.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
#deb http://fr.archive.ubuntu.com/ubuntu/ gutsy-updates universe
# Line commented out by installer because it failed to verify:
#deb-src http://fr.archive.ubuntu.com/ubuntu/ gutsy-updates universe
 
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  
## team, and may not be under a free licence. Please satisfy yourself as to  
## your rights to use the software. Also, please note that software in  
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# Line commented out by installer because it failed to verify:
#deb http://fr.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
#deb-src http://fr.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
#deb http://fr.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
# Line commented out by installer because it failed to verify:
#deb-src http://fr.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
 
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://fr.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
 
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner
 
# Line commented out by installer because it failed to verify:
#deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
# Line commented out by installer because it failed to verify:
#deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
# Line commented out by installer because it failed to verify:
#deb http://security.ubuntu.com/ubuntu gutsy-security universe
# Line commented out by installer because it failed to verify:
#deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
# Line commented out by installer because it failed to verify:
#deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
# Line commented out by installer because it failed to verify:
#deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
 
 
 
mais c bon apparement j'ai reussi a installer flex, bison, et libpcap mais je n'arrive tj pas a compiler:
/usr/local/lib/libpcap.a(gencode.o): In function `pcap_compile':
gencode.c:(.text+0x573): undefined reference to `lex_init'
gencode.c:(.text+0x64d): undefined reference to `lex_cleanup'
gencode.c:(.text+0xa0f): undefined reference to `lex_cleanup'
/usr/local/lib/libpcap.a(grammar.o): In function `pcap_parse':
grammar.c:(.text+0x48b): undefined reference to `pcap_lex'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [all] Erreur 1
 
en revanche d'apres ta reponse je suppose que j'ai un pb dans mon sources.list ce qui pourrai etre la source de mon pb de package car je ne peux rien installer avec apt-get...
 
merci

n°991676
black_lord
Modérateur
Truth speaks from peacefulness
Posté le 15-12-2007 à 19:49:05  profilanswer
 

libpcap-dev suffira :o


---------------
uptime is for lousy system administrators what Viagra is for impotent people - mes unixeries - github me
n°991714
o'gure
Modérateur
Multi grognon de B_L
Posté le 16-12-2007 à 00:30:06  profilanswer
 

Tu m'étonnes qu'il arrive pas à installer quoique ce soit par apt-get, il n'a que le cdrom en repositories...


---------------
Relax. Take a deep breath !
mood
Publicité
Posté le 16-12-2007 à 00:30:06  profilanswer
 

n°992192
leto
Posté le 17-12-2007 à 15:51:51  profilanswer
 

Ajoute les bons dépots.
 
La vrai question c'est : pourquoi tu veux installer libpcap ?
Je suis sur que ce que tu essaie de faire manuellement peut etre fait bien plus simplement.


---------------
--

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  impossible d'installer libpcap [UBUNTU]

 

Sujets relatifs
comment installer unbutu, fichier iso ?Installer PHP, Apache et Mysql5
Impossible lire page (your browser doesn t support Iframes .?)ubuntu gusty et virtualbox-ose [résolu]
Installer GD sur Debian SargeConnection Pocket PC a Ubuntu 7.10
Nas Ubuntu indispo si copie gros fichierInstaller mplayer 32 bits sur fedora core 6 64 bits
[Ubuntu 7.10] Résolution forcée (1920x1200) !installer ubuntu et garder vista ???
Plus de sujets relatifs à : impossible d'installer libpcap [UBUNTU]


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR