From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 45BBB7FB82 for ; Tue, 1 Mar 2016 06:25:29 +0100 (CET) IronPort-PHdr: 9a23:n/K+YR/u/W4Upf9uRHKM819IXTAuvvDOBiVQ1KB92+ocTK2v8tzYMVDF4r011RmSDdqdtaMP27OempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lRciM3o/njqibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwuwwZgf8q9tZBXKPmZOx4COUAVHV1e1wyserAvBzHBS6G538dVGpethtTH0CR5xj/WtL1szDmnut7wiiTe8PsG+MaQzOnuoVsSBbuwAIOJTM9uDXVjcx5iuReqQCsozRwxofVZMeeM/8oLfCVRs8TWWcUBpUZbCdGGI7pKtJXV+c= Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=johan.mazel@gmail.com; spf=Pass smtp.mailfrom=johan.mazel@gmail.com; spf=None smtp.helo=postmaster@mail-pf0-f182.google.com Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of johan.mazel@gmail.com) identity=pra; client-ip=209.85.192.182; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="johan.mazel@gmail.com"; x-sender="johan.mazel@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of johan.mazel@gmail.com designates 209.85.192.182 as permitted sender) identity=mailfrom; client-ip=209.85.192.182; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="johan.mazel@gmail.com"; x-sender="johan.mazel@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-pf0-f182.google.com) identity=helo; client-ip=209.85.192.182; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="johan.mazel@gmail.com"; x-sender="postmaster@mail-pf0-f182.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BEAQCwJtVWdLbAVdFehAxtBrpoAQ2BZyGFcgKBOQc4FAEBAQEBAQEBEAEKCwwIHzGCLYIUAQEBAwESER0BFAcSDAMBCwYDAgsNKgICIQEBEQEFARwGEwgah2cBAwoIDpNMjz+BMT4xizSBaYJXhT0KGScNUYNwAQEIAQEBAQEVAQUKBIYEhDqCOh2CC4JTgToFh0wIhko+iDGBQoQXhhWBdIFfhESIUocHhgYRHoEPHgEBgjiBfS0uAQEBiEkBAQE X-IPAS-Result: A0BEAQCwJtVWdLbAVdFehAxtBrpoAQ2BZyGFcgKBOQc4FAEBAQEBAQEBEAEKCwwIHzGCLYIUAQEBAwESER0BFAcSDAMBCwYDAgsNKgICIQEBEQEFARwGEwgah2cBAwoIDpNMjz+BMT4xizSBaYJXhT0KGScNUYNwAQEIAQEBAQEVAQUKBIYEhDqCOh2CC4JTgToFh0wIhko+iDGBQoQXhhWBdIFfhESIUocHhgYRHoEPHgEBgjiBfS0uAQEBiEkBAQE X-IronPort-AV: E=Sophos;i="5.22,522,1449529200"; d="scan'208,217";a="166422798" Received: from mail-pf0-f182.google.com ([209.85.192.182]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 01 Mar 2016 06:25:27 +0100 Received: by mail-pf0-f182.google.com with SMTP id l6so8444259pfl.3 for ; Mon, 29 Feb 2016 21:25:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=/j7UpMuJbRgfRIduIpBGy1xAW86J3o/VNuHwOtVpRww=; b=OjwYYqIfI1nUxUgBTxULBcz7sXvUDRJiVCy6GwOTssI0gkW51X1kCY9rNqCWVhENri hNuyv9pCtMIao6ji4lImA4GsvOurBXzJS/UDVBiJc+LbpgBGhKxWF2JJXuapgtvI6GVv Zrtve5rkvrLChRo9Dj66CpacyeyWV91kyoBjkZdM/1ISAHDgU+lnalyPJkd4CZeaXXbz XqTpjRAS8ifFP9jcIl8JMv7HfE7jq73SSYHjT7pAFI+xcGGrk00qmjux9WV/MI98gWR1 5sqTPIGCbQiB+VOFvFbLxlfpoRPmb+n0YJ6+d15dPmpkHBSpoSlvizGNdONuKia9gfqr nUOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=/j7UpMuJbRgfRIduIpBGy1xAW86J3o/VNuHwOtVpRww=; b=JuXmrjRqYNYBLWE/X+GgEfQ2f6wZTc9Mtk9aCEyInByhZyL2xin2O2DqgPRKW7ouTE KaaEmvE7Mk6ppbxKfejnMJqlaO1VMl1mQ41/c3mAe3guc+FrOUmMBKbg2Ky/2yVsLbzU K+HMIpsOb8p+0XQrmXSnD+aUBC5IvT+eijrsWo7GXBVmI5QHoOS2ZImlxpDrvcQEwO+g lHTPTmxDP00FSsj9OSZS3xKrnye/iEYRb92NSVl/RDR6YEfQOHSHOlhEAFdl2EYwL9ht QBKAwp8XMfA+WhpaDkxf+Qhux8GykRFrlAqB2FPC+fte1SnTd/To13DVCj3GP3gtVKvA pBaw== X-Gm-Message-State: AD7BkJI1zfGUG3VaiVB3ptUi6B5MPEh5drcAkc9h4dkMWQ6XgFiQpMuR02vmSinaPVDdX97U6H7mKGBI8O30PQ== X-Received: by 10.98.80.150 with SMTP id g22mr27574342pfj.132.1456809925684; Mon, 29 Feb 2016 21:25:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.66.134.7 with HTTP; Mon, 29 Feb 2016 21:25:06 -0800 (PST) In-Reply-To: References: From: Johan Mazel Date: Tue, 1 Mar 2016 14:25:06 +0900 Message-ID: To: OCaml Mailing List Content-Type: multipart/alternative; boundary=001a113521f6203348052cf5fe2b Subject: Re: [Caml-list] Problem with gsl installation with opam --001a113521f6203348052cf5fe2b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 : > 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 > 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: > > =E2=88=97 install conf-ncurses 1 [required by ocam= lfind] > > =E2=88=97 install conf-gsl 1 [required by gsl] > > =E2=88=97 install ocamlfind 1.6.1 [required by gsl] > > =E2=88=97 install gsl 1.19.1 > > =3D=3D=3D=3D=3D =E2=88=97 4 =3D=3D=3D=3D=3D > > Do you want to continue ? [Y/n] y > > > > =3D-=3D- Gathering sources > > =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D > > [gsl] Archive in cache > > [ocamlfind] Archive in cache > > > > =3D-=3D- Processing actions > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D > > [ERROR] The compilation of conf-gsl failed at "pkg-config gsl". > > [ERROR] The compilation of conf-ncurses failed at "pkg-config ncurses". > > > > #=3D=3D=3D ERROR while installing conf-gsl.1 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D# > > # 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 > > > > > > #=3D=3D=3D ERROR while installing conf-ncurses.1 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D# > > # 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 ### > > > > > > > > > > =3D-=3D- Error report > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D > > The following actions were aborted > > =E2=88=97 install gsl 1.19.1 > > =E2=88=97 install ocamlfind 1.6.1 > > The following actions failed > > =E2=88=97 install conf-gsl 1 > > =E2=88=97 install conf-ncurses 1 > > No changes have been performed > > > > =3D-=3D- conf-gsl.1 troobleshooting > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D > > =3D> 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. > > > > =3D-=3D- conf-ncurses.1 troobleshooting > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D > > =3D> 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 > --001a113521f6203348052cf5fe2b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
pkg-config is installed.

which pkg-c= onfig 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 f= ailing on the
exact same command (pkg-config), I assume that this is the source of
the problem.=C2=A0 Maybe `pkg-config` needs to be installed first, or the right one needs to be in your path.=C2=A0 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 mailin= g
> list. If not, please tell me where should I send this.
>
> I am trying to install gsl (https://opam.ocaml.o= rg/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:
>=C2=A0 =C2=A0=E2=88=97=C2=A0 install conf-ncurses 1=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[required by ocamlfind]
>=C2=A0 =C2=A0=E2=88=97=C2=A0 install conf-gsl=C2=A0 =C2=A0 =C2=A01=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[required= by gsl]
>=C2=A0 =C2=A0=E2=88=97=C2=A0 install ocamlfind=C2=A0 =C2=A0 1.6.1=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[required by gsl]
>=C2=A0 =C2=A0=E2=88=97=C2=A0 install gsl=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 1.19.1
> =3D=3D=3D=3D=3D =E2=88=97=C2=A0 4 =3D=3D=3D=3D=3D
> Do you want to continue ? [Y/n] y
>
> =3D-=3D- Gathering sources
> =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
> [gsl] Archive in cache
> [ocamlfind] Archive in cache
>
> =3D-=3D- Processing actions
> -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
> [ERROR] The compilation of conf-gsl failed at "pkg-config gsl&quo= t;.
> [ERROR] The compilation of conf-ncurses failed at "pkg-config ncu= rses".
>
> #=3D=3D=3D ERROR while installing conf-gsl.1
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D#
> # opam-version 1.2.2
> # os=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0linux
> # command=C2=A0 =C2=A0 =C2=A0 pkg-config gsl
> # path=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/home/jmazel/.opam/4.02.3/buil= d/conf-gsl.1
> # compiler=C2=A0 =C2=A0 =C2=A04.02.3
> # exit-code=C2=A0 =C2=A0 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 >
>
> #=3D=3D=3D ERROR while installing conf-ncurses.1
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D#
> # opam-version 1.2.2
> # os=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0linux
> # command=C2=A0 =C2=A0 =C2=A0 pkg-config ncurses
> # path=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/home/jmazel/.opam/4.02.3/buil= d/conf-ncurses.1
> # compiler=C2=A0 =C2=A0 =C2=A04.02.3
> # exit-code=C2=A0 =C2=A0 127
> # env-file
> /home/jmazel/.opam/4.02.3/build/conf-ncurses.1/conf-ncurses-10926-58c5= 14.env
> # stdout-file
> /home/jmazel/.opam/4.02.3/build/conf-ncurses.1/conf-ncurses-10926-58c5= 14.out
> # stderr-file
> /home/jmazel/.opam/4.02.3/build/conf-ncurses.1/conf-ncurses-10926-58c5= 14.err
> ### stdout ###
>
>
>
>
> =3D-=3D- Error report
> -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
> The following actions were aborted
>=C2=A0 =C2=A0=E2=88=97=C2=A0 install gsl=C2=A0 =C2=A0 =C2=A0 =C2=A01.19= .1
>=C2=A0 =C2=A0=E2=88=97=C2=A0 install ocamlfind 1.6.1
> The following actions failed
>=C2=A0 =C2=A0=E2=88=97=C2=A0 install conf-gsl=C2=A0 =C2=A0 =C2=A01
>=C2=A0 =C2=A0=E2=88=97=C2=A0 install conf-ncurses 1
> No changes have been performed
>
> =3D-=3D- conf-gsl.1 troobleshooting
> -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D
> =3D> This package relies on external (system) dependencies that may= be
> missing. `opam depext conf-gsl.1' may help you find the correct in= stallation
> for
>=C2=A0 =C2=A0 your system.
>
> =3D-=3D- conf-ncurses.1 troobleshooting
> -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D
> =3D> This package relies on external (system) dependencies that may= be
> missing. `opam depext conf-ncurses.1' may help you find the correc= t
> installation
>=C2=A0 =C2=A0 for your system.
>
> opam depext conf-gsl.1 yields:
> # Detecting depexts using flags: x86_64 linux debian
> # The following system packages are needed:
> #=C2=A0 - libgsl0-dev
> Not running as root, the following command will be run through "s= udo":
>=C2=A0 =C2=A0 =C2=A0apt-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:
> #=C2=A0 - ncurses-dev
> Not running as root, the following command will be run through "s= udo":
>=C2=A0 =C2=A0 =C2=A0apt-get install -qq -yy ncurses-dev
> # OS packages installation successful
>
> If I rerun "opam install gsl", I get the same output as abov= e.
> 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=C2=A0 =C2=A0 =C2=A0 =C2=A0 http://www.ocaml.info=C2=A0 =C2=A0 = =C2=A0 =C2=A0 markus.mottl@gmail.= com

--001a113521f6203348052cf5fe2b--