From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=AWL,NO_RELAYS autolearn=disabled version=3.1.3 Received: by yquem.inria.fr (Postfix, from userid 18041) id A070FBBAF; Thu, 21 Aug 2008 14:42:43 +0200 (CEST) Date: Thu, 21 Aug 2008 14:42:43 +0200 To: Jon Harrop Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Could not get a file descriptor referring to the console Message-ID: <20080821124243.GA16681@yquem.inria.fr> References: <200808201926.58511.jon@ffconsultancy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200808201926.58511.jon@ffconsultancy.com> User-Agent: Mutt/1.5.9i From: maranget@yquem.inria.fr (Luc Maranget) X-Spam: no; 0.00; maranget:01 maranget:01 ocamlopt:01 cmxa:01 forks:01 usr:01 usr:01 --luc:01 'show':98 frog:98 unix:01 unix:01 luc:01 caml-list:01 postscript:01 > > 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