From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30141 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: updating ConTeXt with ctxtools Date: Tue, 08 Aug 2006 21:52:05 +0100 Message-ID: References: <03DE910A-FAB6-4CA5-BC1C-712B7B9B472C@princeton.edu> 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 1155070357 16480 80.91.229.2 (8 Aug 2006 20:52:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Aug 2006 20:52:37 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 08 22:52:34 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 1GAYYp-00066q-Bd for gctc-ntg-context-518@m.gmane.org; Tue, 08 Aug 2006 22:52:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 627A71FE01; Tue, 8 Aug 2006 22:52:22 +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 11570-04; Tue, 8 Aug 2006 22:52:17 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 095811FE04; Tue, 8 Aug 2006 22:52:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E171B1FE04 for ; Tue, 8 Aug 2006 22:52:13 +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 11569-04 for ; Tue, 8 Aug 2006 22:52:08 +0200 (CEST) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with SMTP id F19E41FE01 for ; Tue, 8 Aug 2006 22:52:07 +0200 (CEST) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1GAYYX-0002RM-IP; Tue, 08 Aug 2006 21:52:05 +0100 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1GAYYX-0005Pu-00; Tue, 08 Aug 2006 21:52:05 +0100 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Tue, 08 Aug 2006 16:19:22 EDT." <03DE910A-FAB6-4CA5-BC1C-712B7B9B472C@princeton.edu> 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:30141 Archived-At: > In any case, I have probably misunderstood the thread. Has a summary > been posted somewhere that I might consult? I need to summarize all the Linux installation methods on the Wiki, once I get it all straight in my head. Right now in reality and in my head it's a nightmare because of all the flavors (texlive, tetex 2 or 3, etc.) and the gazillion map files that could be anywhere. ConTeXt tries to work everywhere so it has a hard life. I don't know much about what MacOS X does, but if you're not using a graphical installation method, it should be like BSD 4.[0123] Unix that I once used. In which case it should work mostly like Linux. Here's what I do now and did just half hour ago to update to the 2006.08.08 version. I use bash (a mostly sh-compatiable shell), which the MacOS terminal runs too I think. The $ below is my bash prompt and everything after it is what I type: $ TEXMFLOCAL=/home/sanjoy/texmf texmfstart ctxtools --updatecontext This fixes the problem that ctxtools uses (I think) Windows quoting in this source line: tree = `kpsewhich --expand-path $TEXMFLOCAL`.chomp rescue nil In Unix ruby (like in Perl) the $TEXMFLOCAL is expanded by the shell because of the $, and the result is run by the backticks. Usually TEXMFLOCAL has no setting in the shell or environment so ruby runs the command with $TEXMFLOCAL replaced by an empty string, giving: kpsewhich --expand-path So kpsewhich complains that it didn't get an argument for --expand-path (or --expand-var). The long-term fix is to figure out how to quote that works in Windows and Unix, but I don't know how since I don't use Windows. The short-term hack is to set TEXMFLOCAL just while running ctxtools, which is done by the command above that I run. So maybe try that using the vanilla distribution (so with \012 restored) and report back what happens and let's see if we can find a fix if something else doesn't work. My computers run Linux but my partner has a MacOS 10.3 machine and I'll use it for ConTeXt experiments if needed. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.