From: Johan Mazel <johan.mazel@gmail.com>
To: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Problem with gsl installation with opam
Date: Tue, 1 Mar 2016 14:25:06 +0900 [thread overview]
Message-ID: <CAKS5mhQFPcmR+6Av+irQ8OA8LE_9F7LiFkwf_AGjbsRb_Ckjkg@mail.gmail.com> (raw)
In-Reply-To: <CAP_800pcSvv1QjuabG2DY0qVEDQOd618DCQQRaJj1fXowtV+wg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 5431 bytes --]
pkg-config is installed.
which pkg-config yields:
/usr/bin/pkg-config
How can I make sure that "the command will return meaningful compilation
and linking flags for the required
packages"?
Regards,
Johan
2016-03-01 14:01 GMT+09:00 Markus Mottl <markus.mottl@gmail.com>:
> Considering that two unrelated packages are apparently failing on the
> exact same command (pkg-config), I assume that this is the source of
> the problem. Maybe `pkg-config` needs to be installed first, or the
> right one needs to be in your path. Just make sure the command will
> return meaningful compilation and linking flags for the required
> packages, and installation through OPAM should work.
>
> Regards,
> Markus
>
> On Mon, Feb 29, 2016 at 11:50 PM, Johan Mazel <johan.mazel@gmail.com>
> wrote:
> > Hi
> > First of all, I am not sure if I am writing this to the correct mailing
> > list. If not, please tell me where should I send this.
> >
> > I am trying to install gsl (
> https://opam.ocaml.org/packages/gsl/gsl.1.19.1/)
> > with opam.
> > I previously installed OCaml 4.02.3 with opam.
> >
> > I get this message error when I do "opam install gsl":
> >
> > The following actions will be performed:
> > ∗ install conf-ncurses 1 [required by ocamlfind]
> > ∗ install conf-gsl 1 [required by gsl]
> > ∗ install ocamlfind 1.6.1 [required by gsl]
> > ∗ install gsl 1.19.1
> > ===== ∗ 4 =====
> > Do you want to continue ? [Y/n] y
> >
> > =-=- Gathering sources
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > [gsl] Archive in cache
> > [ocamlfind] Archive in cache
> >
> > =-=- Processing actions
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > [ERROR] The compilation of conf-gsl failed at "pkg-config gsl".
> > [ERROR] The compilation of conf-ncurses failed at "pkg-config ncurses".
> >
> > #=== ERROR while installing conf-gsl.1
> > ========================================#
> > # opam-version 1.2.2
> > # os linux
> > # command pkg-config gsl
> > # path /home/jmazel/.opam/4.02.3/build/conf-gsl.1
> > # compiler 4.02.3
> > # exit-code 127
> > # env-file
> > /home/jmazel/.opam/4.02.3/build/conf-gsl.1/conf-gsl-10926-5f1023.env
> > # stdout-file
> > /home/jmazel/.opam/4.02.3/build/conf-gsl.1/conf-gsl-10926-5f1023.out
> > # stderr-file
> > /home/jmazel/.opam/4.02.3/build/conf-gsl.1/conf-gsl-10926-5f1023.err
> >
> >
> > #=== ERROR while installing conf-ncurses.1
> > ====================================#
> > # opam-version 1.2.2
> > # os linux
> > # command pkg-config ncurses
> > # path /home/jmazel/.opam/4.02.3/build/conf-ncurses.1
> > # compiler 4.02.3
> > # exit-code 127
> > # env-file
> >
> /home/jmazel/.opam/4.02.3/build/conf-ncurses.1/conf-ncurses-10926-58c514.env
> > # stdout-file
> >
> /home/jmazel/.opam/4.02.3/build/conf-ncurses.1/conf-ncurses-10926-58c514.out
> > # stderr-file
> >
> /home/jmazel/.opam/4.02.3/build/conf-ncurses.1/conf-ncurses-10926-58c514.err
> > ### stdout ###
> >
> >
> >
> >
> > =-=- Error report
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > The following actions were aborted
> > ∗ install gsl 1.19.1
> > ∗ install ocamlfind 1.6.1
> > The following actions failed
> > ∗ install conf-gsl 1
> > ∗ install conf-ncurses 1
> > No changes have been performed
> >
> > =-=- conf-gsl.1 troobleshooting
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > => This package relies on external (system) dependencies that may be
> > missing. `opam depext conf-gsl.1' may help you find the correct
> installation
> > for
> > your system.
> >
> > =-=- conf-ncurses.1 troobleshooting
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > => This package relies on external (system) dependencies that may be
> > missing. `opam depext conf-ncurses.1' may help you find the correct
> > installation
> > for your system.
> >
> > opam depext conf-gsl.1 yields:
> > # Detecting depexts using flags: x86_64 linux debian
> > # The following system packages are needed:
> > # - libgsl0-dev
> > Not running as root, the following command will be run through "sudo":
> > apt-get install -qq -yy libgsl0-dev
> > # OS packages installation successful
> >
> > opam depext conf-ncurses.1 yields:
> > # Detecting depexts using flags: x86_64 linux debian
> > # The following system packages are needed:
> > # - ncurses-dev
> > Not running as root, the following command will be run through "sudo":
> > apt-get install -qq -yy ncurses-dev
> > # OS packages installation successful
> >
> > If I rerun "opam install gsl", I get the same output as above.
> > And no matter how many times I run "opam depext conf-gsl.1" and "opam
> depext
> > conf-ncurses.1", no new packages are installed.
> >
> > libncurses5-dev is installed. Its version is 6.0+20160213-1.
> > libgsl-dev is installed. Its version is 2.1+dfsg-2.
> >
> > As a side note, on my system compiler (4.02.3), libocamlgsl-ocaml-dev is
> > installed and it has no dependency problems.
> >
> > Thank you very much for your time.
> > Regards,
> > Johan
> >
> >
> >
> >
>
>
>
> --
> Markus Mottl http://www.ocaml.info markus.mottl@gmail.com
>
[-- Attachment #2: Type: text/html, Size: 6990 bytes --]
next prev parent reply other threads:[~2016-03-01 5:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-01 4:50 Johan Mazel
2016-03-01 5:01 ` Markus Mottl
2016-03-01 5:25 ` Johan Mazel [this message]
2016-03-01 5:36 ` Markus Mottl
2016-03-01 5:52 ` Johan Mazel
2016-03-01 5:58 ` Johan Mazel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKS5mhQFPcmR+6Av+irQ8OA8LE_9F7LiFkwf_AGjbsRb_Ckjkg@mail.gmail.com \
--to=johan.mazel@gmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox