2017-10-11 6 views
0

je ne suivant sur ma machine ubuntu:échec de compilation "configure: Erreur: le soutien udev demandé, mais en-tête libudev pas installé"

  1. clone Git https://github.com/libusb/libusb.git
  2. après extraction, a couru le script ./autogen.sh, cela a échoué avec l'erreur suivante:

checking libudev.h usability... no checking libudev.h presence... no checking for libudev.h... no configure: error: udev support requested but libudev header not installed

J'ai aussi essayé d'installer libudev en utilisant la commande suivante sudo apt-get install libudev-dev mais échoue à cause suivant err ou:

Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
The following additional packages will be installed: 
    libudev1 udev 
The following NEW packages will be installed: 
    libudev-dev 
The following packages will be upgraded: 
    libudev1 udev 
2 upgraded, 1 newly installed, 0 to remove and 83 not upgraded. 
Need to get 1,197 kB of archives. 
After this operation, 539 kB of additional disk space will be used. 
Do you want to continue? [Y/n] y 
Err:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 udev amd64 229-4ubuntu17 
    404 Not Found [IP: 91.189.88.162 80] 
Err:2 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libudev1 amd64 229-4ubuntu17 
    404 Not Found [IP: 91.189.88.162 80] 
Err:3 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libudev-dev amd64 229-4ubuntu17 
    404 Not Found [IP: 91.189.88.162 80] 
Unable to correct missing packages. 
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/s/systemd/udev_229-4ubuntu17_amd64.deb 404 Not Found [IP: 91.189.88.162 80] 

E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev1_229-4ubuntu17_amd64.deb 404 Not Found [IP: 91.189.88.162 80] 

E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_229-4ubuntu17_amd64.deb 404 Not Found [IP: 91.189.88.162 80] 

E: Aborting install. 

Toute aide serait grandement appréciée. Merci.

Répondre

0

J'ai commencé à travailler. D'abord j'ai installé libudev-dev le hardway.

1. wget http://kr.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_204-5ubuntu20_amd64.deb et wget http://kr.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev1_204-5ubuntu20_amd64.deb

  1. installé ces paquets en utilisant sudo dpkg -i <*.deb>

  2. Maintenant, couru sous ./autogen.sh dossier libusb.

Configuration terminée avec succès!