Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Docker build failed #291

Closed
wisenight opened this issue Mar 2, 2016 · 2 comments
Closed

Docker build failed #291

wisenight opened this issue Mar 2, 2016 · 2 comments
Assignees

Comments

@wisenight
Copy link

Hi, Sir

I use docker to build the infer images.

And it got below error:

Could you help to check it?

[ERROR] The compilation of conf-ncurses failed at "pkg-config ncurses".


=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[conf-m4: m4] Command started
[conf-ncurses: pkg-config ncurses] Command started
-> installed ocamlbuild.0
[camlp4: ./configure] Command started
-> installed conf-m4.1
[ERROR] The compilation of conf-ncurses failed at "pkg-config ncurses".
[camlp4: make all] Command started
[camlp4: make install] Command started
-> installed camlp4.4.02+7
@jvillard jvillard self-assigned this Mar 2, 2016
@kstreee
Copy link
Contributor

kstreee commented Mar 5, 2016

I experienced it too very recently, and I found a solution of it, add pkg-config after this line.
I don't know what exactly it is, but a command opam depext conf-pkg-config.1.0 installs it to resolve installation failure what you reported.

F.Y.I, I got the opam command from following warning after run docker build .

=-=- conf-pkg-config.1.0 troobleshooting =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=> This package relies on external (system) dependencies that may be missing. `opam depext conf-pkg-config.1.0' may help you find the correct installation for your system.

and this is the result of the opam command.

root@0a2a5fe9f3ad:~# opam depext conf-pkg-config.1.0
# Detecting depexts using flags: x86_64 linux ubuntu
# The following system packages are needed:
#  - pkg-config
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 1.)
debconf: falling back to frontend: Readline
Selecting previously unselected package pkg-config.
(Reading database ... 26799 files and directories currently installed.)
Preparing to unpack .../pkg-config_0.28-1ubuntu1_amd64.deb ...
Unpacking pkg-config (0.28-1ubuntu1) ...
Setting up pkg-config (0.28-1ubuntu1) ...
# OS packages installation successful

@wisenight
Copy link
Author

@kstreee thx for your hlep, it works now

@ghost ghost closed this as completed in 8e8b710 Mar 7, 2016
This issue was closed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants