From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31148 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Problem with ConTeXt installation Date: Sat, 30 Sep 2006 22:02:04 +0100 Message-ID: References: <200609301621.09146.jazz_johnson@verizon.net> 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 1159650157 6653 80.91.229.2 (30 Sep 2006 21:02:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Sep 2006 21:02:37 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 30 23:02:32 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 1GTlyc-0001cd-Aa for gctc-ntg-context-518@m.gmane.org; Sat, 30 Sep 2006 23:02:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E806A1FEA2; Sat, 30 Sep 2006 23:02:24 +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 29952-02-3; Sat, 30 Sep 2006 23:02:19 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DB6CF1FE85; Sat, 30 Sep 2006 23:02:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4D6C61FE85 for ; Sat, 30 Sep 2006 23:02: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 29952-02-2 for ; Sat, 30 Sep 2006 23:02:07 +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 C75771FE5A for ; Sat, 30 Sep 2006 23:02:05 +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 1GTlyG-0007i8-BK; Sat, 30 Sep 2006 22:02:04 +0100 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1GTlyG-0001Im-00; Sat, 30 Sep 2006 22:02:04 +0100 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Sat, 30 Sep 2006 16:21:08 EDT." <200609301621.09146.jazz_johnson@verizon.net> 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:31148 Archived-At: > So I simply copied /root/.texmf-var/web2c/pdfetex/* /var/lib/texmf/web2c/ > "texexec new.tex" seems to run OK now, without error. > I'll investigate further. You run texexec as root, I'm guessing, so that the formats will be visible to all users. However, that means they go into root's .texmf-var/ directory because the TEXFORMATS kpse variable contains the home-directory .texmf-var before /var/lib/texmf. Here's how to check: $ kpsewhich --expand-path='$TEXFORMATS' .:/home/sanjoy/.texmf-var/web2c:/home/sanjoy/texmf/web2c:/var/lib/texmf/web2c:/usr/local/share/texmf/web2c:/usr/share/texmf/web2c:/usr/share/texmf-tetex/web2c Yup, ~/.texmf-var/web2c comes first. That's due to these lines in /etc/texmf/texmf.cnf, at least on my Ubuntu (teTeX 3.0) system: TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFMAIN,!!$TEXMFDIST} TEXFORMATS = .;$TEXMF/web2c/{$engine,} The TEXMFVAR is short for $HOME/.texmf-var and is what means the formats go in /root/.texmf-var/. So, you need to change TEXFORMATS for the texexec run, telling it to place them in /var/lib/texmf: # TEXFORMATS='/var/lib/texmf/web2c/{$engine,}' texexec --make --all Or slightly more general, in case TEXMFSYSVAR changes someday from /var/lib/texmf (note all the horrid quoting): # TEXFORMATS=`kpsewhich --expand-path='$TEXMFSYSVAR'`'/web2c/{$engine,}' \ texexec --make --all I just tried it as root, and it seemed to work -- I got brand-new formats in /var/lib/texmf/web2c/pdfetex: # ls /var/lib/texmf/web2c/pdfetex/*.fmt /var/lib/texmf/web2c/pdfetex/cont-nl.fmt /var/lib/texmf/web2c/pdfetex/mptopdf.fmt /var/lib/texmf/web2c/pdfetex/cont-en.fmt > # for f in `kpsewhere -engine=pdfetex cont-en.fmt`; do ls -l ${f}; done Or slightly simpler (using -U to preserve the order produced by kpsewhere): # ls -lU `kpsewhere -engine=pdfetex cont-en.fmt` or # kpsewhere -engine=pdfetex cont-en.fmt | xargs ls -Ul -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.