caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Francois Berenger <berenger@riken.jp>
To: caml-list@inria.fr
Subject: Re: [Caml-list] error installing sqlite3-ocaml with OPAM
Date: Thu, 28 Feb 2013 12:50:53 +0900	[thread overview]
Message-ID: <512ED41D.7080201@riken.jp> (raw)
In-Reply-To: <CAAnxNh-ckY_qGAuThxtZ-nJxS1bj_QS1NGg-yDoPdrKp10QESA@mail.gmail.com>

On 02/28/2013 12:14 PM, 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

I guess you need to install the system package libsqlite3-dev first.

> =-=-= 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 <http://setup.ml> -configure
>    ocaml setup.ml <http://setup.ml> -build
>    ocaml setup.ml <http://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 <http://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
> <http://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
>
>


  reply	other threads:[~2013-02-28  3:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-28  3:14 manu delab
2013-02-28  3:50 ` Francois Berenger [this message]
2013-02-28  9:19 ` Frédéric Bour

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=512ED41D.7080201@riken.jp \
    --to=berenger@riken.jp \
    --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;
as well as URLs for NNTP newsgroup(s).