From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79318 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Suddenly can't run context Date: Mon, 19 Nov 2012 07:48:46 +0100 Message-ID: References: <50A97901.6070402@meahan.net> <50A99799.5000609@meahan.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353307734 18382 80.91.229.3 (19 Nov 2012 06:48:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2012 06:48:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 19 07:49:05 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TaLAH-0003ny-CI for gctc-ntg-context-518@m.gmane.org; Mon, 19 Nov 2012 07:49:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A4EA1101E6; Mon, 19 Nov 2012 07:48:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id H6SxoTFboGbx; Mon, 19 Nov 2012 07:48:52 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4CE3010206; Mon, 19 Nov 2012 07:48:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6F7510206 for ; Mon, 19 Nov 2012 07:48:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MLGUnOcXMxRl for ; Mon, 19 Nov 2012 07:48:49 +0100 (CET) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 59068101E6 for ; Mon, 19 Nov 2012 07:48:49 +0100 (CET) Original-Received: from mail-qa0-f48.google.com (mail-qa0-f48.google.com [209.85.216.48]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qAJ6mkuA032763 for ; Mon, 19 Nov 2012 07:48:47 +0100 Original-Received: by mail-qa0-f48.google.com with SMTP id s11so3588242qaa.14 for ; Sun, 18 Nov 2012 22:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ub3VpOeCcXBt7r8pa5Dn876ToxRbc4e5HDadsYVXxy4=; b=ZtbZQG91ruhG3HYhLdK+leBNEs5/ZHEjjGXUqkFAuq/BlervFkxqz/xLrHeepJzNc3 N6w0benxRoZ9YwuEF5Jg7m/3ifDLmutF33fKYhPwulsiOlSZHr46ZS6N3Q3moNBOxApX RyV+A47+dsVXqzghmFa73JWe0kdOxKA8l0qu5loPJmt/g1CQAGmyJR6zA0wjvDpH+snG deIHcSeCLrQdcsAMs6gT1oUlwaGxae5jLYaHuRJ7j9O+qCd/EE5B95/flYU/CyvrfUHz TxmlqiZEKSfDFg1jK/ViIdQcF5UfO4cr3uoKzJl430uSpPz5DBcaXN414LNBYOmKr6Ug Osng== Original-Received: by 10.224.45.6 with SMTP id c6mr10884125qaf.54.1353307726295; Sun, 18 Nov 2012 22:48:46 -0800 (PST) Original-Received: by 10.49.61.36 with HTTP; Sun, 18 Nov 2012 22:48:46 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.48; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04IpiMLHT - 5ee0ddf3c206 - 20121119 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79318 Archived-At: On Mon, Nov 19, 2012 at 4:34 AM, Aditya Mahajan wrote: > On Sun, 18 Nov 2012, Bill Meahan wrote: > >>> 2. Something is messed up in $HOME/texmf or $HOME/.texlive2012. Rename >>> these directories to something different and try again. >> >> >> Done that several times -- no dice > > I normally do not use TL, but looked into it, and the texmfcnf.lua script > distributed with texlive does not look right. I am attaching the output of > mtxrun --generate that I get. Note the following liines: > > resolvers | resolving | variable 'SELFAUTOLOC' set to '/usr/bin' > resolvers | resolving | variable 'SELFAUTODIR' set to '/usr' > resolvers | resolving | variable 'SELFAUTOPARENT' set to '.' It looks as if you were using Debian/Ubuntu? Or any other flavour of Linux with a native TeX Live package? > resolvers | resolving | variable 'TEXMFCNF' set to '' > resolvers | resolving | variable 'TEXMF' set to '' > resolvers | resolving | variable 'TEXOS' set to '/usr' > .... > resolvers | resolving | found configuration file > '/usr/share/texmf/web2c/texmfcnf.lua' > .... > resolvers | resolving | loading configuration file > 'selfautodir:/share/texmf/web2c/texmfcnf.lua' > ... > mtxrun --generate resolvers | resolving | variable 'SELFAUTOLOC' set to '/usr/local/texlive/2012/bin/x86_64-darwin' resolvers | resolving | variable 'SELFAUTODIR' set to '/usr/local/texlive/2012/bin' resolvers | resolving | variable 'SELFAUTOPARENT' set to '/usr/local/texlive/2012' resolvers | resolving | variable 'TEXMFCNF' set to '' resolvers | resolving | variable 'TEXMF' set to '' resolvers | resolving | variable 'TEXOS' set to 'bin' resolvers | resolving | resolvers | resolving | using configuration specification 'home:texmf/web2c;{selfautoloc:,selfautoloc:/share/texmf-local/web2c,selfautoloc:/share/texmf/web2c,selfautoloc:/texmf-local/web2c,selfautoloc:/texmf/web2c,selfautodir:,selfautodir:/share/texmf-local/web2c,selfautodir:/share/texmf/web2c,selfautodir:/texmf-local/web2c,selfautodir:/texmf/web2c,selfautoparent:/../texmf-local/web2c,selfautoparent:,selfautoparent:/share/texmf-local/web2c,selfautoparent:/share/texmf/web2c,selfautoparent:/texmf-local/web2c,selfautoparent:/texmf/web2c}' resolvers | resolving | ... resolvers | resolving | found configuration file '/usr/local/texlive/2012/texmfcnf.lua' ... resolvers | resolving | found configuration file '/usr/local/texlive/2012/texmf/web2c/texmfcnf.lua' resolvers | resolving | resolvers | resolving | loading configuration file 'selfautoparent:/texmfcnf.lua' resolvers | resolving | resolvers | resolving | loading configuration file 'selfautoparent:/texmf/web2c/texmfcnf.lua' > Now, the /usr/share/texmf/web2c/texmfcnf.lua file says: > > TEXMFSYSVAR = "selfautoparent:texmf-var", > TEXMFVAR = "home:.texlive2012/texmf-var", > .... > TEXMFMAIN = "selfautoparent:texmf", > TEXMFDIST = "selfautoparent:texmf-dist", > .... > > Note from the mtxrun that selfautoparent is set to '', therefore, TEXMFMAIN > is set to 'texmf' and TEXMFDIST is set to 'texmf-dist'. And therefore, > `mtxrun --generate` is not scanning the right trees, therefore does not > build a cache of the right trees, and consequently, cannot find > mtx-context.lua. > > To check my theory, I followed the following steps: > > 1. Create a directory ~/mytexmfcnf and copied the texmfcnf.lua file from > /usr/share/texmf/web2c/ to this directory. > > 2. Open ~/mytexmfcnf/texmfcnf.lua and change > > %s/selfautoparent:/\/usr\/share\/ > > 3. Run > > TEXMFCNF=~/mytexmfcnf mtxrun --generate > > 4. Run > > TEXMFCNF=~/mytexmfcnf context --version > > which then gives > > mtx-context | ConTeXt Process Management 0.52 > mtx-context | > mtx-context | main context file: > /usr/share/texmf-dist/tex/context/base/context.mkiv > mtx-context | current version: 2012.05.30 11:26 > > So I wonder how does context (MkIV) work at all with TL2012! Maybe it just doesn't work with your linux box :P One explanation could be that texmfcnf.lua hasn't been configured properly. It works with plain TeX Live with default installation. MacPorts would do the following: post-patch { foreach x {texmf.cnf.d/10paths.cnf texmfcnf.lua texlive-update-cnf} { reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFMAIN@@|${texlive_texmfmain}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFDIST@@|${texlive_texmfdist}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFPORTS@@|${texlive_texmfports}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFLOCAL@@|${texlive_texmflocal}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFSYSVAR@@|${texlive_texmfsysvar}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFSYSCONFIG@@|${texlive_texmfsysconfig}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFHOME@@|${texlive_texmfhome}|g" ${worksrcpath}/${x} reinplace "s|@@TEXLIVE_BINDIR@@|${texlive_bindir}|g" ${worksrcpath}/${x} } } To Bill: can you try which luatex context sudo which luatex context and in particular because you have TeX Live installed in home dir, I would suggest not to run any command as sudo at all. In particular, don't try to run "mtxrun --generate" or "context --make" as sudo. It might be that the cache is not writable by you any more. But then again - something seems to be wrong with your configuration. How exactly did you install TeX Live. Where do you have any texmfcnf.lua? Please also post the output of a working ConTeXt run and/or "mtxrun --generate", in particular the part that Aditya posted (definition of SELFAUTOLOC etc.). Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________