odb icon indicating copy to clipboard operation
odb copied to clipboard

Odb on Windows: problem with ocamlgraph

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

mrm@proxima /cygdrive/c/projects/odb
$ ocaml odb.ml ocamlgraph
Installing ocamlgraph
Deps for ocamlgraph satisfied
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  271k  100  271k    0     0   195k      0  0:00:01  0:00:01 --:--:--  311k
package downloaded to C:\cygwin\home\mrm\.odb\install-ocamlgraph\ocamlgraph-1.8.2
'.' is not recognized as an internal or external command,
operable program or batch file.
E: Failure("Command 'touch setup.data && ./configure --prefix C:\\cygwin\\home\\mrm\\.odb' terminated with error code 1")
Exception: Failure "Could not configure ocamlgraph".

murmour avatar Oct 15 '12 19:10 murmour

Thank you for the issue report; it looks like there's some problem with the upstream configure script; I'll see if I can work with them to fix this.

thelema avatar Oct 15 '12 20:10 thelema

On 10/16/2012 04:52 AM, mmouratov wrote:

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:

|mrm@proxima /cygdrive/c/projects/odb $ ocaml odb.ml ocamlgraph Installing ocamlgraph Deps for ocamlgraph satisfied % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 271k 100 271k 0 0 195k 0 0:00:01 0:00:01 --:--:-- 311k package downloaded to C:\cygwin\home\mrm.odb\install-ocamlgraph\ocamlgraph-1.8.2 '.' is not recognized as an internal or external command, operable program or batch file.

Maybe a stupid question: is it possible to create a hidden directory under Cygwin (I don't have access to one)?

mkdir ~/.odb # for example

Does it work?

E: Failure("Command 'touch setup.data && ./configure --prefix C:\cygwin\home\mrm.odb' terminated with error code 1") Exception: Failure "Could not configure ocamlgraph". |

— Reply to this email directly or view it on GitHub https://github.com/thelema/odb/issues/92.

UnixJunkie avatar Oct 16 '12 00:10 UnixJunkie

Sure, it works.

mrm@axiom ~
$ mkdir ~/.somedir

mrm@axiom ~
$ ls -A ~
.bash_history  .bashrc   .lesshst  .profile
.bash_profile  .inputrc  .odb      .somedir

murmour avatar Oct 16 '12 11:10 murmour

My guess is that there is a problem on Cygwin in the function install_package when the current directory is referred to as '.' . I can't help further as I don't have access to Cygwin.

UnixJunkie avatar Oct 17 '12 00:10 UnixJunkie

You may give a try at this if you need OCaml and several libraries on Windows "right now":

http://wodi.forge.ocamlcore.org/

UnixJunkie avatar Oct 17 '12 01:10 UnixJunkie