From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27693 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: texexec Date: Sun, 7 May 2006 14:34:50 -0400 (EDT) Message-ID: References: <445A7A23.5070302@wxs.nl> <445E38FA.3000003@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1147026906 16800 80.91.229.2 (7 May 2006 18:35:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 May 2006 18:35:06 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun May 07 20:35:04 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fco5t-0005qQ-Ip for gctc-ntg-context-518@m.gmane.org; Sun, 07 May 2006 20:35:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 317D5127D8; Sun, 7 May 2006 20:35:01 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08159-02-3; Sun, 7 May 2006 20:34:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C3088127D3; Sun, 7 May 2006 20:34:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B7B5F127D3 for ; Sun, 7 May 2006 20:34:54 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08159-02-2 for ; Sun, 7 May 2006 20:34:53 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with SMTP id F24F5127CA for ; Sun, 7 May 2006 20:34:52 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hackers.mr.itd.umich.edu ID 445E3DCA.6BCC.15256 ; 7 May 2006 14:34:51 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <445E38FA.3000003@wxs.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27693 Archived-At: On Sun, 7 May 2006, Hans Hagen wrote: > Aditya Mahajan wrote: >> On Fri, 5 May 2006, Hans Hagen wrote: >> >> >>> Hi, >>> >>> I'd like to make the ruby version of texexec the default. Are there any >>> strong objections to this? >>> >> >> Is ruby stable with respect to system calls? Is the behaviour >> consistent on Linux and Windows? Are there active Ruby users on the >> list who can comment on this? >> > we run newtexexec on windows and linux without problems (system calls in > perl are actually more problematic, or at least in th epast few years > differences between platforms have given me many headaches) >> I have debugged my recent failure of metapost graphics to using >> one-click installer (RC2) for windows. From tex.rb >> >> report(command) if getvariable('verbose') >> ok = system(command) >> if ok && File.appended(mptex, "\\end\n") then >> >> >> This is failing on my system. Can others using windows test this. >> > you mean that ok is false? Yes. For some reason, system(...) returns false whenever there is > in the command. Maybe, in the future, the functionality of mpto can be incorporated into (new)texexec. This is not needed right away, as I managed to get rid of the mess in my system by using cygwin binaries for ruby. >> >> Notice that the second test is failing. So, in tex.rb, the system >> command fails and I do not get mp-test-01-test.tex file! Can anyone >> else using one-click installer for ruby on windows confirm this? >> > i must check that (i don't use the one click installer) \ Turns out that the problem is not with the one click installer. It has to do with the fact that I also had cygwin installed (even though I was using cmd.exe for tests). I have installed cygwin ruby and everything (at least everything related to context) work fine. The conclusion seems to be that for windows either: i) If you do not use cygwin, use any precompiled port of ruby or ii) If you have cygwin, use the cygwin port of ruby or iii) Compile your own binaries. :) I am still confused on why windows ruby have trouble with cgywin being present, but I will leave debugging that to future. Right now, newtexec is working correctly. Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008