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 EC6017F30A for ; Thu, 28 Feb 2013 10:19:29 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of frederic.bour@lakaban.net) identity=pra; client-ip=94.23.239.155; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="frederic.bour@lakaban.net"; x-sender="frederic.bour@lakaban.net"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of frederic.bour@lakaban.net designates 94.23.239.155 as permitted sender) identity=mailfrom; client-ip=94.23.239.155; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="frederic.bour@lakaban.net"; x-sender="frederic.bour@lakaban.net"; 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.lakaban.net) identity=helo; client-ip=94.23.239.155; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="frederic.bour@lakaban.net"; x-sender="postmaster@mail.lakaban.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEAMkfL1FeF++b/2dsb2JhbABFwjSBEHOCHwEBBUABATYBAQ8LGAkWDwkDAgECAUUGDQEHAQGIE64phDsBBY8JBo8UBwmDN5dihFiKdIMJ X-IPAS-Result: AqAEAMkfL1FeF++b/2dsb2JhbABFwjSBEHOCHwEBBUABATYBAQ8LGAkWDwkDAgECAUUGDQEHAQGIE64phDsBBY8JBo8UBwmDN5dihFiKdIMJ X-IronPort-AV: E=Sophos;i="4.84,754,1355094000"; d="scan'208,217";a="3726006" Received: from lakaban.net (HELO mail.lakaban.net) ([94.23.239.155]) by mail3-smtp-sop.national.inria.fr with ESMTP; 28 Feb 2013 10:19:29 +0100 Received: from [192.168.0.12] (mar92-6-82-226-39-40.fbx.proxad.net [82.226.39.40]) (Authenticated sender: defre@ygg-drasil.fr) by mail.lakaban.net (Postfix) with ESMTPSA id 1D9E61200002; Thu, 28 Feb 2013 10:19:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lakaban.net; s=default; t=1362043159; bh=W4nI9hSFVcg5q2m19XJO+LEdV1OR1JcxNOb+onpY2f8=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=YcEG24/1tjDml3JfRiOcNFQWH2YaN7b3ErHizGlXMiR54WTbZt5YsMTjhU6pM7RL5 Klx+Rxv1p1xaibfMNdDI7SGjekdn97aKVpoIKxPBsC6U35ejiesHQiMUvuoNxxxyF3 VlIkhlYBRE61G6ZnVJ5yp6Kb7kXZOC0dEL04hEEY= Message-ID: <512F211D.4030701@lakaban.net> Date: Thu, 28 Feb 2013 10:19:25 +0100 From: =?ISO-8859-1?Q?Fr=E9d=E9ric_Bour?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: manu delab CC: caml-list@inria.fr References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------010009050103080305080802" Subject: Re: [Caml-list] error installing sqlite3-ocaml with OPAM This is a multi-part message in MIME format. --------------010009050103080305080802 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I had the same error using homebrew. For some reason, sqlite3.pc (pkgconfig) wasn't in usual directory. I just manually linked it to /usr/lib/pkgconfig: ln -s /usr/local/Cellar/sqlite/3.7.15.2/lib/pkgconfig/sqlite3.pc /usr/lib/pkgconfig/sqlite3.pc Then "opam install sqlite3-ocaml" ran fine. Sqlite3 was the only package having this problem. On 28/02/2013 04:14, manu delab wrote: > Hello, > > I get the following error when trying to install sqlite3-ocaml: > > $ opam install sqlite3-ocaml > The following actions will be performed: > - install sqlite3-ocaml.2.0.4 > 1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to > remove > > =-=-= Installing sqlite3-ocaml.2.0.4 =-=-= > The archive for sqlite3-ocaml.2.0.4 is in the local cache. > Extracting /Users/manu/.opam/archives/sqlite3-ocaml.2.0.4+opam.tar.gz. > Building sqlite3-ocaml.2.0.4: > ocaml setup.ml -configure > ocaml setup.ml -build > ocaml setup.ml -install > The compilation of sqlite3-ocaml.2.0.4 failed. > Uninstalling sqlite3-ocaml.2.0.4: > ocamlfind remove sqlite3 > > > ==== ERROR [while installing sqlite3-ocaml.2.0.4] ==== > # opam-version 0.9.4 > # os darwin > # command ocaml setup.ml -build > # path /Users/manu/.opam/system/build/sqlite3-ocaml.2.0.4 > # exit-code 1 > # env-file > /Users/manu/.opam/system/build/sqlite3-ocaml.2.0.4/sqlite3-ocaml-1872ec.env > # stdout-file > /Users/manu/.opam/system/build/sqlite3-ocaml.2.0.4/sqlite3-ocaml-1872ec.out > # stderr-file > /Users/manu/.opam/system/build/sqlite3-ocaml.2.0.4/sqlite3-ocaml-1872ec.err > ### stdout ### > /opt/local/bin/ocamlopt.opt -I /opt/local/lib/ocaml/ocamlbuild > unix.cmxa /opt/local/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa > myocamlbuild.ml > /opt/local/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild > Failure: pkg-config failed for cflags. > ### stderr ### > Package sqlite3 was not found in the pkg-config search path. > Perhaps you should add the directory containing `sqlite3.pc' > to the PKG_CONFIG_PATH environment variable > No package 'sqlite3' found > E: Failure("Command ''/opt/local/bin/ocamlbuild' > lib/libsqlite3_stubs.a lib/dllsqlite3_stubs.so lib/sqlite3.cma > lib/sqlite3.cmxa lib/sqlite3.a lib/sqlite3.cmxs -tag debug' terminated > with error code 2") > > 'opam install sqlite3-ocaml' failed. > > I am on OSX and I have the following installed with Macports: > sqlite3 @3.7.10_0 > sqlite3 @3.7.11_0 > sqlite3 @3.7.12.1_0 > sqlite3 @3.7.13_0+universal > sqlite3 @3.7.14_1+universal > sqlite3 @3.7.14.1_0+universal > sqlite3 @3.7.15.2_0 > sqlite3 @3.7.15.2_0+universal (active) > > Any idea ? Thanks > > --------------010009050103080305080802 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Hi,

I had the same error using homebrew. For some reason, sqlite3.pc (pkgconfig) wasn't in usual directory.
I just manually linked it to /usr/lib/pkgconfig:
    ln -s /usr/local/Cellar/sqlite/3.7.15.2/lib/pkgconfig/sqlite3.pc /usr/lib/pkgconfig/sqlite3.pc
Then "opam install sqlite3-ocaml" ran fine.

Sqlite3 was the only package having this problem.

On 28/02/2013 04:14, manu delab wrote:
Hello,

I get the following error when trying to install sqlite3-ocaml:

$ opam install sqlite3-ocaml
The following actions will be performed:
 - install sqlite3-ocaml.2.0.4
1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove

=-=-= Installing sqlite3-ocaml.2.0.4 =-=-=
The archive for sqlite3-ocaml.2.0.4 is in the local cache.
Extracting /Users/manu/.opam/archives/sqlite3-ocaml.2.0.4+opam.tar.gz.
Building sqlite3-ocaml.2.0.4:
  ocaml setup.ml -configure
  ocaml setup.ml -build
  ocaml setup.ml -install
The compilation of sqlite3-ocaml.2.0.4 failed.
Uninstalling sqlite3-ocaml.2.0.4:
  ocamlfind remove sqlite3


==== ERROR [while installing sqlite3-ocaml.2.0.4] ====
# opam-version    0.9.4
# os              darwin
# command         ocaml setup.ml -build
# path            /Users/manu/.opam/system/build/sqlite3-ocaml.2.0.4
# exit-code       1
# env-file        /Users/manu/.opam/system/build/sqlite3-ocaml.2.0.4/sqlite3-ocaml-1872ec.env
# stdout-file     /Users/manu/.opam/system/build/sqlite3-ocaml.2.0.4/sqlite3-ocaml-1872ec.out
# stderr-file     /Users/manu/.opam/system/build/sqlite3-ocaml.2.0.4/sqlite3-ocaml-1872ec.err
### stdout ###
/opt/local/bin/ocamlopt.opt -I /opt/local/lib/ocaml/ocamlbuild unix.cmxa /opt/local/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /opt/local/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
Failure: pkg-config failed for cflags.
### stderr ###
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found
E: Failure("Command ''/opt/local/bin/ocamlbuild' lib/libsqlite3_stubs.a lib/dllsqlite3_stubs.so lib/sqlite3.cma lib/sqlite3.cmxa lib/sqlite3.a lib/sqlite3.cmxs -tag debug' terminated with error code 2")

'opam install sqlite3-ocaml' failed.

I am on OSX and I have the following installed with Macports:
  sqlite3 @3.7.10_0
  sqlite3 @3.7.11_0
  sqlite3 @3.7.12.1_0
  sqlite3 @3.7.13_0+universal
  sqlite3 @3.7.14_1+universal
  sqlite3 @3.7.14.1_0+universal
  sqlite3 @3.7.15.2_0
  sqlite3 @3.7.15.2_0+universal (active)

Any idea ? Thanks



--------------010009050103080305080802--