thelema / odb

Oasis-db downloader and installer
Do What The F*ck You Want To Public License
33 stars 7 forks source link

Odb on Windows: problem with camomile #93

Open murmour opened 12 years ago

murmour commented 12 years ago

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 commented 12 years ago

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

thelema commented 12 years ago

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.

UnixJunkie commented 12 years ago

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

thelema commented 12 years ago

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.

UnixJunkie commented 12 years ago

I created a pull request for this.