impossible d'installer libpcap [UBUNTU]

impossible d'installer libpcap [UBUNTU] - Installation - Linux et OS Alternatifs

Marsh Posté le 15-12-2007 à 14:10:42    

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.

Reply

Marsh Posté le 15-12-2007 à 14:10:42   

Reply

Marsh Posté le 15-12-2007 à 16:49:41    

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


---------------
Relax. Take a deep breath !
Reply

Marsh Posté le 15-12-2007 à 16:52:59    

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

Reply

Marsh Posté le 15-12-2007 à 17:02:09    

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 !
Reply

Marsh Posté le 15-12-2007 à 17:29:33    

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....

Reply

Marsh Posté le 15-12-2007 à 17:33:23    

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

Reply

Marsh Posté le 15-12-2007 à 18:37:35    

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


---------------
Relax. Take a deep breath !
Reply

Marsh Posté le 15-12-2007 à 18:48:24    


 
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

Reply

Marsh Posté le 15-12-2007 à 19:49:05    

libpcap-dev suffira :o


---------------
uptime is for lousy system administrators what Viagra is for impotent people - mes unixeries - github me
Reply

Marsh Posté le 16-12-2007 à 00:30:06    

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 !
Reply

Marsh Posté le 16-12-2007 à 00:30:06   

Reply

Marsh Posté le 17-12-2007 à 15:51:51    

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.


---------------
--
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed