caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Frédéric Bour" <frederic.bour@lakaban.net>
To: manu delab <manu.delab@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] error installing sqlite3-ocaml with OPAM
Date: Thu, 28 Feb 2013 10:19:25 +0100	[thread overview]
Message-ID: <512F211D.4030701@lakaban.net> (raw)
In-Reply-To: <CAAnxNh-ckY_qGAuThxtZ-nJxS1bj_QS1NGg-yDoPdrKp10QESA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2763 bytes --]

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 <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
>
>


[-- Attachment #2: Type: text/html, Size: 5242 bytes --]

      parent reply	other threads:[~2013-02-28  9:19 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
2013-02-28  9:19 ` Frédéric Bour [this message]

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=512F211D.4030701@lakaban.net \
    --to=frederic.bour@lakaban.net \
    --cc=caml-list@inria.fr \
    --cc=manu.delab@gmail.com \
    /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).