odb
odb copied to clipboard
Odb on Windows: problem with ocamlgraph
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
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".
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.
On 10/16/2012 04:52 AM, mmouratov wrote:
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:
|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.
Sure, it works.
mrm@axiom ~
$ mkdir ~/.somedir
mrm@axiom ~
$ ls -A ~
.bash_history .bashrc .lesshst .profile
.bash_profile .inputrc .odb .somedir
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.
You may give a try at this if you need OCaml and several libraries on Windows "right now":
http://wodi.forge.ocamlcore.org/