odb
odb copied to clipboard
Odb on Windows: problem with camomile
Steps to reproduce the problem
- Install the official Cygwin-based OCaml installer;
- Install Odb by downloading the latest odb.ml, adding appropriate lines to findlib.conf, ld.conf and creating the ~/.odb/lib directory;
- Run the Cygwin shell.
Problem
$ ocaml odb.ml camomile
which: no camomile in (/cygdrive/c/ocaml/bin:/usr/local/bin:/usr/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/mingw/bin:/cygdrive/c/Graphviz2.26/bin:/cygdrive/c/flexdll:/usr/bin:/cygdrive/c/Program Files/TortoiseHg)
Installing camomile
which: no camomile in (/cygdrive/c/ocaml/bin:/usr/local/bin:/usr/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/mingw/bin:/cygdrive/c/Graphviz2.26/bin:/cygdrive/c/flexdll:/usr/bin:/cygdrive/c/Program Files/TortoiseHg)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2227k 100 2227k 0 0 84002 0 0:00:27 0:00:27 --:--:-- 121k
package downloaded to C:\cygwin\home\mrm\.odb\install-camomile\camomile-0.8.1
'.' is not recognized as an internal or external command,
operable program or batch file.
Exception: Failure "Could not configure camomile".
The problem with Camomile disables one from installing Batteries using Odb. I could easily build and install both of them by hand though (with configure/make/make install).
Actually, I'd recommend using this command: ocaml odb.ml https://github.com/ocaml-batteries-team/batteries-included.git
to install the latest batteries from git. It doesn't depend on camomile. If you don't have git installed (which the previous command needs), I'm sure there's a zip or tarball URL on github that you can point odb to and it'll try its best to do the right thing.
On 10/16/2012 05:34 AM, Edgar Friendly wrote:
Actually, I'd recommend using this command: |ocaml odb.ml https://github.com/ocaml-batteries-team/batteries-included.git| to install the latest batteries from git. It doesn't depend on camomile. If you don't have git installed (which the previous command needs), I'm sure there's a zip or tarball URL on github that you can point odb to and it'll try its best to do the right thing.
Maybe this is the kind of URL you are looking for (line is cut, sorry):
https://github.com/ocaml-batteries-team/batteries-included/tarball/master
Yes, this URL looks right, although I'm not sure if odb will work right with it because it doesn't have an extension. Shouldn't be too hard for someone to fix.
I created a pull request for this.