odb icon indicating copy to clipboard operation
odb copied to clipboard

Odb on Windows: problem with camomile

Open murmour opened this issue 12 years ago • 5 comments

Steps to reproduce the problem

  1. Install the official Cygwin-based OCaml installer;
  2. Install Odb by downloading the latest odb.ml, adding appropriate lines to findlib.conf, ld.conf and creating the ~/.odb/lib directory;
  3. 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".

murmour avatar Oct 15 '12 19:10 murmour

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

murmour avatar Oct 15 '12 20:10 murmour

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.

thelema avatar Oct 15 '12 20:10 thelema

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

UnixJunkie avatar Oct 16 '12 01:10 UnixJunkie

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.

thelema avatar Oct 16 '12 03:10 thelema

I created a pull request for this.

UnixJunkie avatar Oct 16 '12 04:10 UnixJunkie