Question pourquoi / usr / include / boost manque


je cours

sudo apt-get install libboost-all-dev

et pourtant je ne vois rien dans mon /usr/include répertoire pour le boost.

   0 upgraded, 27 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/78.9 kB of archives.
After this operation, 276 kB of additional disk space will be used.
Selecting previously unselected package libboost-dev:amd64.
(Reading database ... 503640 files and directories currently installed.)
Preparing to unpack .../libboost-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-tools-dev.
Preparing to unpack .../libboost-tools-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-tools-dev (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-atomic-dev:amd64.
Preparing to unpack .../libboost-atomic-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-atomic-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-chrono-dev:amd64.
Preparing to unpack .../libboost-chrono-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-chrono-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-context-dev:amd64.
Preparing to unpack .../libboost-context-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-context-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-coroutine-dev:amd64.
Preparing to unpack .../libboost-coroutine-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-coroutine-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-date-time-dev:amd64.
Preparing to unpack .../libboost-date-time-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-date-time-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-exception-dev:amd64.
Preparing to unpack .../libboost-exception-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-exception-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-filesystem-dev:amd64.
Preparing to unpack .../libboost-filesystem-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-filesystem-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-graph-dev:amd64.
Preparing to unpack .../libboost-graph-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-graph-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-graph-parallel-dev.
Preparing to unpack .../libboost-graph-parallel-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-graph-parallel-dev (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-iostreams-dev:amd64.
Preparing to unpack .../libboost-iostreams-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-iostreams-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-locale-dev:amd64.
Preparing to unpack .../libboost-locale-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-locale-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-log-dev.
Preparing to unpack .../libboost-log-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-log-dev (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-math-dev:amd64.
Preparing to unpack .../libboost-math-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-math-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-mpi-dev.
Preparing to unpack .../libboost-mpi-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-mpi-dev (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-mpi-python-dev.
Preparing to unpack .../libboost-mpi-python-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-mpi-python-dev (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-random-dev:amd64.
Preparing to unpack .../libboost-random-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-random-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-regex-dev:amd64.
Preparing to unpack .../libboost-regex-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-regex-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-serialization-dev:amd64.
Preparing to unpack .../libboost-serialization-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-serialization-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-signals-dev:amd64.
Preparing to unpack .../libboost-signals-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-signals-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-system-dev:amd64.
Preparing to unpack .../libboost-system-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-system-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-test-dev:amd64.
Preparing to unpack .../libboost-test-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-test-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-thread-dev:amd64.
Preparing to unpack .../libboost-thread-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-thread-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-timer-dev:amd64.
Preparing to unpack .../libboost-timer-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-timer-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-wave-dev:amd64.
Preparing to unpack .../libboost-wave-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-wave-dev:amd64 (1.58.0.1ubuntu1) ...
Selecting previously unselected package libboost-all-dev.
Preparing to unpack .../libboost-all-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-all-dev (1.58.0.1ubuntu1) ...
Setting up libboost-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-tools-dev (1.58.0.1ubuntu1) ...
Setting up libboost-atomic-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-chrono-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-context-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-coroutine-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-date-time-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-exception-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-filesystem-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-graph-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-graph-parallel-dev (1.58.0.1ubuntu1) ...
Setting up libboost-iostreams-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-locale-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-log-dev (1.58.0.1ubuntu1) ...
Setting up libboost-math-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-mpi-dev (1.58.0.1ubuntu1) ...
Setting up libboost-mpi-python-dev (1.58.0.1ubuntu1) ...
Setting up libboost-random-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-regex-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-serialization-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-signals-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-system-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-test-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-thread-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-timer-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-wave-dev:amd64 (1.58.0.1ubuntu1) ...
Setting up libboost-all-dev (1.58.0.1ubuntu1) ...

Pourtant, le dossier boost est toujours disparu.

Pourquoi se passe-t-il?


1
2018-01-16 21:51


origine


Voulez-vous éditer votre question et placer la sortie de sudo apt install --reinstall libboost-all-dev? En outre, quelle version d'Ubuntu utilisez-vous? Toutes les erreurs que vous obtenez, le cas échéant, sont importantes. - L. D. James
Lorsque vous modifier votre message pour fournir les informations que L. D. James a demandé, s'il vous plaît également donner la sortie de dpkg -S atomic.hpp (au cas où les en-têtes de boost sont quelque part) et lsb_release -a et fournir le contenu de /var/log/apt/history.log et /var/log/dpkg.log. Le site modifie le code de manière à limiter leur hauteur verticale et à les rendre défilables. Il sera donc probablement lisible même s’il est très long, mais au cas où aussi longtemps à être accepté (pourrait arriver avec dpkg.log) ou il est incommode de les mettre dans votre post, vous pourriez utiliser paste.ubuntu.com et ajouter des liens. - Eliah Kagan
J'ai découvert ce qui s'est passé. je devais faire sudo apt-get purge libboost1.58-dev et alors sudo apt-get install libboost-all-dev - Glassjawed
On dirait que la simple réinstallation de libboost-all-dev ne fait rien car il appelle simplement les paquets libboost1.58- *. - Glassjawed
En regardant votre sortie, il semble que votre première tentative d'installation ne s'est pas déroulée. La sortie que vous avez affichée est une sortie normale pour une installation initiale. Voulez-vous donner la sortie de ls -ld /usr/include/b*? Il ne sera guère plus de deux lignes, donc une réponse au commentaire devrait vérifier suffisamment l'installation (ou indiquer qu'il y a un problème). - L. D. James


Réponses:


Vos bibliothèques Boost manquaient parce que vous ne l'aviez pas installé par inadvertance. La commande que je vous ai fournie dans les commentaires était une vérification de l'installation. Si les bibliothèques avaient été correctement installées, la sortie n'aurait été que de quelques lignes.

La première ligne de votre sortie était la suivante:

0 upgraded, 27 newly installed, 0 to remove and 2 not upgraded.

Cela a montré que 27 paquets étaient manquants et installés lors du traitement de la commande.

Commande d'installation / réinstallation:

$ sudo apt install --reinstall libboost-all-dev

Sortie:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/2,228 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 262406 files and directories currently installed.)
Preparing to unpack .../libboost-all-dev_1.58.0.1ubuntu1_amd64.deb ...
Unpacking libboost-all-dev (1.58.0.1ubuntu1) over (1.58.0.1ubuntu1) ...
Setting up libboost-all-dev (1.58.0.1ubuntu1) ...

Maintenant que le Renforcer est correctement installé la réinstallation affichera seulement 10 lignes si réinstallé. Cette ligne de commande vous montrera votre répertoire boost inclut:

$ ls -ld /usr/include/b*

Le résultat sera d'environ deux lignes:

drwxr-xr-x 103 racine racine 12288 16 jan 17:01 / usr / include / boost
-rw-r - r-- 1 racine racine 1404 16 novembre 17:43 /usr/include/byteswap.h

1
2018-01-17 07:40



Non ne fonctionne pas pour moi .... sudo apt install --reinstall libboost-all-dev Préparation pour décompresser ... / libboost-all-dev_1.58.0.1ubuntu1_amd64.deb ... Déballer libboost-all-dev (1.58 .0.1ubuntu1) over (1.58.0.1ubuntu1) ... Configuration de libboost-all-dev (1.58.0.1ubuntu1) ... / usr / include $ ls -ld / usr / include / b * -rw-r- -r-- 1 racine racine 1404 14 janvier 21:49 /usr/include/byteswap.h marius @ HPP: / usr / include - user2195463