From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109290 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ramkumar KB Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt Linux installation issues (due to GLIBC dependency) - Solved! Date: Sat, 7 Nov 2020 09:08:46 +0800 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8150926518940744904==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30441"; mail-complaints-to="usenet@ciao.gmane.io" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 07 02:10:13 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbCk9-0007oF-Kw for gctc-ntg-context-518@m.gmane-mx.org; Sat, 07 Nov 2020 02:10:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 12D4C1A9CBD; Sat, 7 Nov 2020 02:09:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.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 7WidNBQwA1HK; Sat, 7 Nov 2020 02:09:01 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E31791A9EED; Sat, 7 Nov 2020 02:09:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7693D1A9CBD for ; Sat, 7 Nov 2020 02:09:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.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 QFGhBaeKGaR5 for ; Sat, 7 Nov 2020 02:08:59 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.179; helo=mail-lj1-f179.google.com; envelope-from=ramkumarkb@gmail.com; receiver= Original-Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 39A171A9546 for ; Sat, 7 Nov 2020 02:08:59 +0100 (CET) Original-Received: by mail-lj1-f179.google.com with SMTP id a25so3422077ljn.0 for ; Fri, 06 Nov 2020 17:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=eEzii5YbZG1WNk6vcAnGtWbnWRIp1Ea7ZxaBLGKTlJA=; b=Mz/SHOQY+4kS2Y+leC5M/91KQ2YlyHPGfKGwWXKMuynpKO7lRsRv6DGHVUI/jEy/Ak wyHW0rdyVL1+7gXxcUfhGG8zUWOjLSpIJu00Mt48NplwB/yJFE7izV8OymPjyQhoiRPT ZZ5GKmC4isiQoITScYUGpkd568lXHQNibEy2ZSOsfyJlmv0UVCs5kv4dNnlsvHaD6WbN l7nCaDXa9EVqZARNzLpflApELGXpTBWnd+4XPb256orUbqHF0LxKN5LNo6sXfrwS95zD 8C3cwxPeu81HrLslE8lk27IGHcYtvbOPKPfxAFKIjLJP+8OHj+7jkcUf0C2hb0BXjX5K 45ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=eEzii5YbZG1WNk6vcAnGtWbnWRIp1Ea7ZxaBLGKTlJA=; b=biEUD49s3RdPzkOXO8SsB7EtSPW5eUnQLLYSdM1FtCUERdDTxbICDeMpa91A+L0HQK DMkNypUZ068+BiyK5yYT77WATspS6ieTNCVtSZY8YhuynILFLNbm+Qisd6n2TyjT1nvN +js8nzgQE1q60IPF4HUoQU78YZlk/Ov0DVzh8OSVwtfSfRssCer2RCiRwKRmq+tPDe8u wiPdy2D2V/oikAE8lTUD/lRnyffFWOG9O6EwQnFHJM14X3MFOzQ+QwZPvs68m++kIAr3 GxgMB5rmdkwcZ11My1BMua3odJq263ih9tH5jCoV6o3dc1QeSoIjLn8+5B8gA/b2Ytiz esXA== X-Gm-Message-State: AOAM530RrZ9/+vc2/J/2xDzOOvTYTWdjPPI/37P+NlHDogr24gLMKncI NoWzKxO/IqbWpgvNvmeHS/JFiP4ECicQS70TqcBiw5EnQUcxTA== X-Google-Smtp-Source: ABdhPJxTWthvBLwfFQcRCyE/01F5GOePpLqGl5pdT91tVoNzjbLQg4umrRQMmc39UXGfFNiehivDVoEM25A2r3D9XtU= X-Received: by 2002:a2e:9746:: with SMTP id f6mr1770301ljj.270.1604711337833; Fri, 06 Nov 2020 17:08:57 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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:109290 Archived-At: --===============8150926518940744904== Content-Type: multipart/alternative; boundary="00000000000042390d05b379f995" --00000000000042390d05b379f995 Content-Type: text/plain; charset="UTF-8" Hello All, This turned out to be an issue with the texmf-context.zip file version mismatch. I updated to version 1.04 and was able to install successfully! However, I would like to contribute a section to Wiki on how to install ConTeXt in Linux machines which does not have the proper GLIBC version. This is especially true with RHEL 7.x versions - which is still the majority installation in companies & institutions with RHEL subscription. The section will cover GLIBC 2.24 install, patchelf utility and the changes needed to ConTeXt install scripts for such an installation. How can I go about contributing to the wiki? Thank you, Ramkumar On Fri, Nov 6, 2020 at 5:31 PM Ramkumar KB wrote: > Hello All, > > I am having a situation where I have to install and run Context in a Linux > machine but the machine(s) have only RHEL 7.6 (which comes with only > GLIBC_2.17). > From the initial error logs it appears that Context needs minimum > GLIBC_2.23. Therefore, I did the following work around and it almost worked > ! (there were no more GLIBC_2.23 errors and installation was progressing > well...) , till it did not... :-( > > Any tips or suggestions to try would be indeed very helpful. Thanks so > much ! > > *Work Around* - > Manually installed GLIBC_2.23 as per the instructions here - in my own > directory where I have full access - > https://gist.github.com/carlesloriente/ab3387e7d035ed400dc2816873e9089e > > *Patchelf Utility* > Used the patchelf utility - https://anaconda.org/conda-forge/patchelf > > *Changed the following Context install files* > *install.sh (just before running mtxrun)* > *===* > patchelf --set-interpreter > /my-own-dir/opt/glibc-2.23/lib/ld-linux-x86-64.so.2 --set-rpath > /my-own-dir/opt/glibc-2.23/lib:/usr/lib64 $PWD/bin/mtxrun $PWD/bin/mtxrun > --script ./bin/mtx-install.lua --update --server="$LMTXSERVER" > --instance="$LMTXINSTANCE" --platform="$PLATFORM" --erase > --extras="$LMTXEXTRAS" > *mtx-install.lua (just before running mtxrunbin)* > ==== > run("patchelf --set-interpreter /my-own-dir/opt/glibc-2.23/lib/ld-linux-x86-64.so.2 --set-rpath /my-own-dir/opt/glibc-2.23/lib:/usr/lib64 %s", mtxrunbin) > run("%s --generate",mtxrunbin) > > *Error that I see (in the step `make luametatex format`) - * > resolvers | formats | changing to format path '/my-own-dir > /ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f3 > 2e/formats/luametatex' > resolvers | formats | executing runner 'make luametatex format': / > my-own-dir/ConTeXt/tex/texmf-linux-64/bin/luametatex --ini > --lua=/my-own-dir/chantool/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lmt > /my-own-dir/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en. > mkxl > This is LuaMetaTeX, Version 2.08.01 > 2097153(/my-own-dir/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl(context.mkxl(syst-ini.m > kxl > ! Undefined control sequence. > \voffset > \zeropoint \let\voffset\relax \newdimen\voffset \let\normalvoffset\voffset > ! Missing number, treated as zero. > > \let > < > ... > (That makes 100 errors; please try again.)resolvers | formats | > > > > > > > > > > --00000000000042390d05b379f995 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello All,

=
This turned out to be an issue with the texmf-context.zip file v= ersion mismatch. I updated to version 1.04 and was able to install successf= ully!

However, I would like to contribute a sectio= n to Wiki on how to install ConTeXt in Linux machines which does not have t= he proper GLIBC version. This is especially true with RHEL 7.x versions - w= hich is still the majority installation in companies & institutions wit= h RHEL subscription.

The section will cover GLIBC = 2.24 install, patchelf utility and the changes needed to ConTeXt install sc= ripts for such an installation.

How can I go about= contributing to the wiki?

Thank you,
Ra= mkumar

On Fri, Nov 6, 2020 at 5:31 PM Ramkumar KB <ramkumarkb@gmail.com> wrote:
Hello All,

<= /div>
I am having a situation where I have to install and run Context i= n a Linux machine but the machine(s) have only RHEL 7.6 (which comes with o= nly GLIBC_2.17).
From the initial error logs it appears that Cont= ext needs minimum GLIBC_2.23. Therefore, I did the following work around an= d it almost worked ! (there were no more GLIBC_2.23 errors and installation= was progressing well...) , till it did not... :-(=C2=A0

Any tips or suggestions to try would be indeed very helpful. Thanks = so much !

Work Around -
Manually = installed GLIBC_2.23 as per the instructions here - in my own directory whe= re I have full access -=C2=A0

Patchelf Utility
Used the patc= helf utility - https://anaconda.org/conda-forge/patchelf=C2=A0
<= br>
Changed the following Context install files
= install.sh (just before runni= ng mtxrun)
= =3D=3D=3D
patchelf --set-interpreter /my= -own-dir/opt/glibc-2.23/lib/ld-linux-x86-64.so.2 --set-rpath /my-own-dir/op= t/glibc-2.23/lib:/usr/lib64 $PWD/bin/mtxrun $PWD/bin/mtxrun --script ./bin/mtx-install.l= ua --update --server=3D"$LMTXSERVER" --instance=3D"$LMTXINST= ANCE" --platform=3D"$PLATFORM" --erase --extras=3D"$LMT= XEXTRAS"
mtx-install.lua (just before running mtxrunbin)<= /span>
=3D=3D=3D=3D run("patchelf=C2=A0--set-interpreter=C2=A0/my-own-dir/opt/= glibc-2.23/lib/ld-linux-x86-64.so.2=C2=A0--set-rpath=C2=A0/my-own-dir/opt/g= libc-2.23/lib:/usr/lib64=C2=A0%s",=C2=A0mtxrunbin) run("%s=C2=A0--generate",mtxrunbin)=C2=A0=C2=A0

<= /div>
Error that I see (in the step `make l= uametatex format`) -=C2=A0
resolvers=C2=A0 =C2=A0 =C2=A0 =C2=A0| formats | changing to fo= rmat path '/my-own-dir/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67= e0bfe781ce0dde776fb1556f3
2e/formats/luametatex'
resolvers=C2=A0 =C2= =A0 =C2=A0 =C2=A0| formats | executing runner 'make luametatex format&#= 39;: /my-own-dir/ConTeXt/tex/texmf-linux-64/bin/luametatex --ini=C2=A0 --lua= =3D/my-own-dir/chantool/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-= cod.lmt /my-own-dir/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en= .
mkxl
This is LuaMetaTeX, Version 2.08.01 2097153(/my-own-dir/ConTeXt/te= x/texmf-context/tex/context/base/mkiv/cont-en.mkxl(context.mkxl(syst-ini.m<= /span>
kxl
! Undefined control sequence.
<line 3.1019= > \voffset
\zeropoint \let\voffset\relax \newdimen\voffset \let\normalvoffset\voffset
! Missing number, treated as zero.
<to be read again>
\let
<
=
...
= (That makes 100 errors; please try again.)resolvers=C2=A0 =C2=A0 =C2=A0 =C2= =A0| formats |=C2=A0=C2=A0



=




=
--00000000000042390d05b379f995-- --===============8150926518940744904== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8150926518940744904==--