ChrisJohnsen / gibak forked from jaylevitt/gibak

Home | Edit | New

Build Recipes

Chris’ Build Method

Ingredients

  • Mac OS X 10.4.11
  • MacPorts’ ocaml @3.11.1_0
  • MacPorts’ caml-findlib @1.2.4_0
  • fileutils 0.4.0
  • MacPorts’ omake @0.9.8.5-3_0

Instructions

  1. Checkout master as a local new, local branch or possibly a detached HEAD.
  2. Merge trailing-slash, build-hints, and (optionally) cleanups together.
  3. Uncomment the OCAMLFLAGS, (edited) OCAMLPATH, INCLUDES, and CFLAGS settings.
  4. Run omake.

Building with Ubuntu / debian packages

Tested on ubuntu 9.10 (karmic) but probably applies to other debian-based distributions.

Dependencies

  • Debian / ubuntu / similar linux distro
  • The following packages:
    • ocaml
    • ocaml-findlib
    • ocaml-core ?
    • libfileutils-ocaml-dev (0.4.0-2 used; see troubleshooting below)
  • To build a debian package, the following extra packages are required:
    • cdbs
    • dh-ocaml

Build-method

Follow Chris’ instructions above. Afterwards/instead of running omake, you can build and install a debian package with:

debuild -I -i -us -uc
cd ..
sudo dpkg -i gibak_0.3.0_amd64.deb  # for example

Troubleshooting: fileutils (mkdir error)

The latest gibak code relies on fileutils 0.4.0, however in karmic (and debian lenny) only version 0.3.0 is available in the repository. In the case of karmic, the easiest thing to do is download the libfileutils-ocaml-dev package from lucid or debian testing and install with dpkg -i. In older releases like jaunty and lenny, the required package ocaml-nox-3.11.1 is not available, so it may be easier to use the alternative below.

An alternative to using fileutils 0.4.0 that Chris pointed out to me, would be to revert/omit commit 1dfddb6e4e4de8c710f7c661764d88b2af4d232a before building gibak, since this updates the code to use fileutils 0.4.0.

Last edited by dhardy, Wed Feb 03 03:14:26 -0800 2010
Home | Edit | New
Versions: