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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id B55C57FB82 for ; Tue, 1 Mar 2016 06:36:05 +0100 (CET) IronPort-PHdr: 9a23:kMjERx1GSLazMc+wsmDT+DRfVm0co7zxezQtwd8ZsegRIvad9pjvdHbS+e9qxAeQG96LtLQa2qGG7OjJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6NyZrmnLDts7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cYk7sb+sVBSaT3ebgjBfwdVWx+cjN92Mq+lx7DRA3Hw3IOX2FexhhPAwHDqhTzTJr1miT/v+t5niKdOJulY6ozXGGH5r1oVQSgrSAbKzpxpGTekM9tl+Repw69ozRwxofVZMeeM/8oLfCVRs8TWWcUBpUZbCdGGI7pKtJXV+c= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=markus.mottl@gmail.com; spf=Pass smtp.mailfrom=markus.mottl@gmail.com; spf=None smtp.helo=postmaster@mail-oi0-f42.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of markus.mottl@gmail.com) identity=pra; client-ip=209.85.218.42; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="markus.mottl@gmail.com"; x-sender="markus.mottl@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of markus.mottl@gmail.com designates 209.85.218.42 as permitted sender) identity=mailfrom; client-ip=209.85.218.42; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="markus.mottl@gmail.com"; x-sender="markus.mottl@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-oi0-f42.google.com) identity=helo; client-ip=209.85.218.42; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="markus.mottl@gmail.com"; x-sender="postmaster@mail-oi0-f42.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DDAADZKdVWlSraVdFeg1g0Xg8GqHSRdAENgWchhXICgTkHOBQBAQEBAQEBARABAQEBBwsLCSEvgi2CFQEBBBIRHQEUBxILAQMMBgULDQICJgICIQEBEQEFARwGEyKHZwEDEg6jCoExPjGLNIFpgleFPQoZJw1Rg3ABAQEBAQEBAQEBAQEBAQEBARMBBQoEbYUXhDqCOh2BXIMCgToFh0wIhks9iDGBQoQXhhWBdIFfhESIUocHhgYRHoEPHgEBgjgegW4eLgEBAYhJAQEB X-IPAS-Result: A0DDAADZKdVWlSraVdFeg1g0Xg8GqHSRdAENgWchhXICgTkHOBQBAQEBAQEBARABAQEBBwsLCSEvgi2CFQEBBBIRHQEUBxILAQMMBgULDQICJgICIQEBEQEFARwGEyKHZwEDEg6jCoExPjGLNIFpgleFPQoZJw1Rg3ABAQEBAQEBAQEBAQEBAQEBARMBBQoEbYUXhDqCOh2BXIMCgToFh0wIhks9iDGBQoQXhhWBdIFfhESIUocHhgYRHoEPHgEBgjgegW4eLgEBAYhJAQEB X-IronPort-AV: E=Sophos;i="5.22,522,1449529200"; d="scan'208";a="205163100" Received: from mail-oi0-f42.google.com ([209.85.218.42]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 01 Mar 2016 06:36:04 +0100 Received: by mail-oi0-f42.google.com with SMTP id d205so39118144oia.0 for ; Mon, 29 Feb 2016 21:36:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-transfer-encoding; bh=j9JFS0CihG68ZYJsDTs+GeAjEkA88j8zxlmK7aQugyk=; b=mENhLsW8UsOZYj0gJlTn4wJr7rVcFA3VbVJpH5lqayCScB0+0zbxOCrOAf3EFfYOAr hleTtXs1APNhfRszekRw6BgQ9mT04xX/M9kH1RFy9OcVzJU+SpxG88PEsQDO242KSSSc M7eddRdwuCdiilW8v9EXRTUCvUvs4raXjNh0NHiGrO154cISZk28Q1VdB8W8nrHtL5Sh sYjbc4FoCVvoRgMdAZClmX4agz4ZvIu5R4nK0xQJ+1unFOWnFxi1JE13XpklikXmpAJt Ny6z99ot2LGjpwDvIV4YLzA7DWpM6SOa3EvCKapeEj54rNeuCAkM+PSvjL9Hb6J/D9Kz 3Q3g== 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:date :message-id:subject:from:to:cc:content-transfer-encoding; bh=j9JFS0CihG68ZYJsDTs+GeAjEkA88j8zxlmK7aQugyk=; b=fmwIwQmx6xIEWuLFAXZQUhEFkyTNxdg1a7+jrdPVnErhtPG3UmQP/p7JYOjn8ShGbr Xy3Og6tuJlLynqmEmKRBKsyGdi/PBs/q4lNnhW1CYIkQ1WlzRxl1CMixYZw4cQ+8pmP1 0pNG4pRBKFDTtHglJR7qlf6GvA/3WPobwV4xS0RLTdfRV4OkYiyPi+WsnUZOwOR/4rKM Fc8iAbXKyr0E42KzmI4VCVZl85J6X0JOgi7Vmp5wpTMWaDb2MiqFJB4VETF3Sd/YO8Un ggWUhvTcrl/Yz3LuxDPFTSnYhNXLdQoqkFsE65BgaeCoKD+YvCuQ0vHXfxgN00VQwYKP 7gwQ== X-Gm-Message-State: AD7BkJKqh2x9N+EmCWF98pzuszoiAV8k0ZGG131vlbdDytecbpjSQM5CR3gfpu1WEAdCi7/Eie0T3x5FwrTZIw== MIME-Version: 1.0 X-Received: by 10.202.78.133 with SMTP id c127mr14073372oib.103.1456810562917; Mon, 29 Feb 2016 21:36:02 -0800 (PST) Received: by 10.182.128.164 with HTTP; Mon, 29 Feb 2016 21:36:02 -0800 (PST) In-Reply-To: References: Date: Tue, 1 Mar 2016 00:36:02 -0500 Message-ID: From: Markus Mottl To: Johan Mazel Cc: OCaml Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] Problem with gsl installation with opam Try e.g. "pkg-config --cflags --libs gsl". You can then test whether the returned flags are good for compiling + linking a test application in C. Regards, Markus On Tue, Mar 1, 2016 at 12:25 AM, Johan Mazel wrote: > 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 oca= mlfind] >> > =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-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 >> > =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 > > --=20 Markus Mottl http://www.ocaml.info markus.mottl@gmail.com