[ocaml-platform] Centos 6 OPAM Make Madness

Louis Gesbert louis.gesbert at ocamlpro.com
Thu Aug 14 16:51:53 BST 2014


We are still improving on handling of dependencies towards system packages, but in OPAM 1.2 you can get an overview of the documented system dependecies of a package with:

$ opam list google-drive-ocamlfuse --external


Or to get it recursively for all (OPAM) dependencies:

$ opam list --required-by google-drive-ocamlfuse --rec --external


See also the related section of the (new, unreleased) FAQ:
http://opam.ocaml.org/1.2/doc/FAQ.html#Somepackagefailduringcompilationcomplainingaboutmissingdependenciesquotm4quotquotlibgtkquotetc


Le jeudi 14 août 2014, 08:40:48 Michael Peters a écrit :
> In installed fuse-devel-2.8.3-4.el6.x86_64.rpm which cleared
> the ocamlfuse.2.7.1-cvs2 install error but not the other two.
> 
>  opam install google-drive-ocamlfuse
> The following actions will be performed:
>  - install   sqlite3-ocaml.2.0.6                   [required by
> google-drive-ocamlfuse]
>  - install   ocamlfuse.2.7.1-cvs2                  [required by
> google-drive-ocamlfuse]
>  - install   google-drive-ocamlfuse.0.5.3
> === 3 to install ===
> Do you want to continue ? [Y/n] y
> 
> =-=-=-=-=-=-=-=-=-=-=-=- Synchronizing package archives
> -=-=-=-=-=-=-=-=-=-=-=-=
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-= Installing packages
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Building ocamlfuse.2.7.1-cvs2:
>   make -C lib INCDIRS=/root/.opam/system/lib/camlidl
>   make -C lib install
> Installing ocamlfuse.2.7.1-cvs2.
> Building sqlite3-ocaml.2.0.6:
>   ocaml setup.ml -configure
>   ocaml setup.ml -build
>   ocaml setup.ml -install
> [ERROR] The compilation of sqlite3-ocaml.2.0.6 failed.
> Removing sqlite3-ocaml.2.0.6.
>   ocamlfind remove sqlite3
> 
> 
> #================= ERROR while installing sqlite3-ocaml.2.0.6
> =================#
> # opam-version 1.2.0~beta4
> # os           linux
> # command      ocaml setup.ml -build
> # path         /root/.opam/system/build/sqlite3-ocaml.2.0.6
> # compiler     system (4.01.0)
> # exit-code    1
> # env-file
> /root/.opam/system/build/sqlite3-ocaml.2.0.6/sqlite3-ocaml-14544-d2c37b.env
> # stdout-file
>  /root/.opam/system/build/sqlite3-ocaml.2.0.6/sqlite3-ocaml-14544-d2c37b.out
> # stderr-file
>  /root/.opam/system/build/sqlite3-ocaml.2.0.6/sqlite3-ocaml-14544-d2c37b.err
> ### stdout ###
> # ...[truncated]
> # Turn ocaml profile flag on: .......................... false
> # Compiler support generation of .cmxs.: ............... true
> # OCamlbuild additional flags: .........................
> # Strict compile-time checks: .......................... true
> # Create documentations: ............................... true
> # Compile tests executable and library and run them: ... false
> # ocamldoc: ............................................
> /usr/local/bin/ocamldoc
> #
> # /usr/local/bin/ocamlopt.opt unix.cmxa -I /usr/local/lib/ocaml/ocamlbuild
> /usr/local/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml
> /usr/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 ''/usr/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")
> 
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Error report
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> These actions have been completed successfully
>  - install   ocamlfuse.2.7.1-cvs2
> The following failed
>  - install   sqlite3-ocaml.2.0.6
> Due to the errors, the following have been cancelled
>  - install   google-drive-ocamlfuse.0.5.3
> 
> The former state can be restored with opam switch import
> "/root/.opam/system/backup/state-20140714153222.export"
> 
> 
> Best regards,
> 
> 
> *Michael D. Peters*eJD, MBA, C|CISO, CISSP, CRISC, CMBA, CISM, SCPA, CCE,
> ISSA Hall of Fame
> *CEO-Chief Security & Privacy Officer*
> *Lazarus Alliance, LLC*M: 762-822-4174 | F: 480-272-8846
> Bridge: 605-475-4700 Participant: 793693#
> 
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material from any
> computer.
> 
> [image: lazarus-alliance-logo-sm3] <http://lazarusalliance.com/>
> 
> 
> On Thu, Aug 14, 2014 at 8:04 AM, Anil Madhavapeddy <anil at recoil.org> wrote:
> 
> > On 14 Aug 2014, at 15:59, Michael Peters <
> > michael.peters at lazarusalliance.com> wrote:
> >
> > > That worked like a champ! Thanks for working magic.
> >
> > Congratulations -- you get a "first user" badge :-)
> >
> > best,
> > Anil
> >
> >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/platform/attachments/20140814/f227d78c/attachment-0001.html>


More information about the Platform mailing list