From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/117404 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Carlos via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex Date: Tue, 11 Apr 2023 05:11:52 -0400 Message-ID: <20230411091152.g2gzw2fazay6jdga@gmail.com> References: <20230410235805.ahlty7ebnsxrpzgg@gmail.com> <20230410220155.364c55ed@boo.my.domain> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40713"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Carlos To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 11 11:12:27 2023 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.ntg.nl ([5.39.185.232]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmA39-000ARR-PZ for gctc-ntg-context-518@m.gmane-mx.org; Tue, 11 Apr 2023 11:12:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1F5F81C10CB; Tue, 11 Apr 2023 11:12:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sqgwSYHdn9lw; Tue, 11 Apr 2023 11:12:02 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1661E1C0F33; Tue, 11 Apr 2023 11:12:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 48DE61C1030 for ; Tue, 11 Apr 2023 11:12:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W2M5by7wMOBa for ; Tue, 11 Apr 2023 11:11:59 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=116.202.254.214; helo=ciao.gmane.io; envelope-from=gctc-ntg-context-518@m.gmane-mx.org; receiver= Original-Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 618A51C00FC for ; Tue, 11 Apr 2023 11:11:59 +0200 (CEST) Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pmA2g-0009kI-Kd for ntg-context@ntg.nl; Tue, 11 Apr 2023 11:11:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Content-Disposition: inline In-Reply-To: <20230410220155.364c55ed@boo.my.domain> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.29 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" Xref: news.gmane.io gmane.comp.tex.context:117404 Archived-At: On Mon, Apr 10, 2023 at 10:01:55PM -0600, Alan Braslau via ntg-context wrote: > On Mon, 10 Apr 2023 20:51:58 -0400 (EDT) > Aditya Mahajan via ntg-context wrote: > > > Did you source the `setuptex` script, which sets the correct path. > > My PATH is set to > PATH=./context/tex/texmf-freebsd-amd64/bin:/home/MyAccount/context/tex/texmf-freebsd-amd64/bin:... > > If my current working directory ("./") is a project that contains its > very own subdirectory ./context/, then this is used to typeset the > project. If not, it falls back on my own general standalone > $HOME/context/, and if that does not exist, then it falls back on, say, > a systemwide TeXlive installation. > > This is all that is needed to have many versions coexist. > > Alan Hello Alan, my PATH is set to: PATH=/home/ce/context-install/bin:/home/ce/context-install/tex/texmf-linux-64/bin:/opt/texlive/2023/bin/x86_64-linux:$PATH; export PATH because not by going by TeX Live infrastructure only, but rather by standalone resolvers that's exactly what the additional steps to install that very same standalone required, a folder texmf-linux-64/bin, which it's pretty much self-explanatory And I already mentioned the above earlier Again Do we actually need to list all kpsea variable here ?? fine Here are some of them, which are really irrelevant by the way, but just adding info $ kpsewhich --var-value TEXMFROOT /opt/texlive/2023 $ kpsewhich --var-value TEXMFDIST /opt/texlive/2023/texmf-dist $ kpsewhich --var-value TEXMFLOCAL /opt/texlive/texmf-local Now let's take a peek inside the TeX Live infrastructure-only, shall we? (just for additional info as TeX Live is ocnsidered one of the many scripts out there, right? One is interested in the standalone in the end) LICENSE.CTAN bin install-tl.log texmf-config texmfcnf.lua LICENSE.TL doc.html readme-html.dir texmf-dist tlpkg README index.html readme-txt.dir texmf-var README.usergroups install-tl release-texlive.txt texmf.cnf that texmfcnf.lua only holds return { content = { variables = { }, }, } which is useless so, no bueno. Not when the aim is to install a fully functional context standalone Now let's take a peek instide and see the binaries afm2tfm etex kpsereadlink mf mtxrun.lua texluac bibtex extractbb kpsestat mf-nowin pdfetex tlmgr context fmtutil kpsewhich mft pdflatex tlshell context.lua fmtutil-sys latex mkindex pdftex updmap dvilualatex fmtutil-user luahbtex mktexfmt pktogf updmap-sys dviluatex gftodvi lualatex mktexlsr pktype updmap-user dvipdfm gftopk luametatex mktexmf rungs xdvi dvipdfmx gftype luaotfload-tool mktexpk simpdftex xdvi-xaw dvipdft inimf luatex mktextfm tex xdvipdfmx dvips initex makeindex mptopdf texhash ebb kpseaccess man mtxrun texlua Do you see that context and context.lua out there, right? That's only after running tlmgr and installing it, so no bueno, because in the meantime there's no texmfcnf.lua around Then again, remember in the current state I actually don't have texmfcnf.lua for the simple reason that first-setup.sh never provided it, correct? So, wwith that in mind and in place, even that context binary from TeX Live infrastructure as shown before is a known fact that texmfcnf.lua is nowhere to be found So let me see if I can copy one from an otherwise fully functional TeX Live with almost 5g of space taken over and copy it over to this TeX Live infrastrcutre so everything checks out in the end What happens then is not really surprising If I were to copy over a copy that I found elsewhere over to web2c of the TeX Live-infrastructure-only installation, this is what happens: $ context --generate --luatex mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' Here we go! Back to point A where we were at before > > P.S. It can be a good practice to keep a ConTeXt standalone version > associated with each project, which can be "frozen" with the project, > assuring that the sources can always be typeset in the future "as is". > > P.P.S. This per-project ./context/ subdirectory can include multiple > tex/texmf-system-architecture subdirectories and the project shared > between different machines, all in happy coexistence. (Hans told me a > while ago that they all use unique luametatex caches.) > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___________________________________________________________________________________ > -- If you put tomfoolery into a computer, nothing comes out but tomfoolery. But this tomfoolery, having passed through a very expensive machine, is somehow enobled and no-one dare criticise it. -- Pierre Gallois ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________