Version française
Home     About     Download     Resources     Contact us    
Browse thread
Could not get a file descriptor referring to the console
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: maranget@y...
Subject: Re: [Caml-list] Could not get a file descriptor referring to the console
> 
> I am trying to run the source code from MATIAS GIOVANNINI's wonderful article 
> Aperiodic Tilings:
> 
>   http://alaska-kamtchatka.blogspot.com/2008/08/aperiodic-tilings.html
> 
> but just get this error:
> 
> $ ocamlopt unix.cmxa -o tiling tiling.ml
> $ ./tiling
> Couldnt get a file descriptor referring to the console
> Could not get a file descriptor referring to the console
> 
> I'm using Debian. What's the solution?!
> 

The responsible is function 'show' (Line 153).
It forks (Unix.system) a Unix command to display a postscript file.

The postcript viewer used is /usr/bin/open (?)

Just replace /usr/bin/open  by a Postscript viewer,
installed on your machine. The viewer should take the name
of the postscript as its command line argument.



> -- 
> Dr Jon D Harrop, Flying Frog Consultancy Ltd.

--Luc