From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109264 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ramkumar KB Newsgroups: gmane.comp.tex.context Subject: ConTeXt Linux installation issues (due to GLIBC dependency) Date: Fri, 6 Nov 2020 17:31:10 +0800 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7880796559140701764==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39881"; mail-complaints-to="usenet@ciao.gmane.io" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 06 10:32:03 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 1kay6F-000AE5-77 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 06 Nov 2020 10:32:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 434751A9E5F; Fri, 6 Nov 2020 10:31:34 +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 7ztWIms0pbrO; Fri, 6 Nov 2020 10:31:32 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 650A41A9E63; Fri, 6 Nov 2020 10:31:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F23091A9CBD for ; Fri, 6 Nov 2020 10:31:31 +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 ek1f4R2uwdA6 for ; Fri, 6 Nov 2020 10:31:30 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.42; helo=mail-lf1-f42.google.com; envelope-from=ramkumarkb@gmail.com; receiver= Original-Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 BDE201A9CAC for ; Fri, 6 Nov 2020 10:31:30 +0100 (CET) Original-Received: by mail-lf1-f42.google.com with SMTP id l2so1015289lfk.0 for ; Fri, 06 Nov 2020 01:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=HmLHfL7DZE15eKa27uw36ADyoAYj66ESuUzsIqAhAZA=; b=B0bfDE9HH22KzjOnG1qYztC0OUpIwdB9EfuIKQCRwSj3Ws1iFaVkzTHIkp1n+e8GFF Yafoao3a9Pyjnd+vlP5UKzV25vNkBVTWHKnV3qtwHNYao0uXQs2xHwpyyBOGRUWwfJ/h dzAm2ScwCnYzZ/lw/YTRC6hK9AK/NqGT6xfKFbPC45Iw9gr51E8J5KPLONBS/fRLTE2A iCZcV97+p4OhQjKPJdHtwVQRREZl8I1UdTKQZcP8yA04fscZUiuMTwxVDszE5Esl9Ki3 zbekjDZPcBzVSWkY/yA/f9InMsfr18na2WOLzlVCLLrSlJutt04F4jR4MBUB92hkFR00 +0YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=HmLHfL7DZE15eKa27uw36ADyoAYj66ESuUzsIqAhAZA=; b=SqLzMaAjYQHe8IndW7VB+j1o4nEQwKqigDke4pG0eEaPgbErJI8TBaTMt4GW/10qxY 6FhfCueBhFrftflJ3H9Xth21eQz9W8m5o+MNoJAWGJfa5i0kh/gVtQ+heB3fC90tLFQk AehKSemdbNF2wfDxVgNGv/Ur/6FYqpMmuRmjlVmxhBj6aRiAPWqy/lxhXpMrLJuzH3Of AxmKvKZ5HtSN8sBANedt/gSm6DZWqXqvP+q9EI/wboeajGUHlHK2wo1HnYWcsyR7G8T9 pAa076w8VH6ZVYDgM6llKZ0n7xxcVFRyJvIUxzitKy26r3FTZjcOOjxql63fQTSKSgU9 y/sQ== X-Gm-Message-State: AOAM532kmYXX+yqzPS0kRaN0ZYvBP1xCX5crRQRbltJIKbwynL2RsU/W owRLvWzOM1SOyMwkqjao5XzNfDFTNxIuvPo20o1vMt2f1YYPWTFZ X-Google-Smtp-Source: ABdhPJxUrXK2XK00hxUILHBhL3fgNaGV7Yl5py1RHHhO3HuxdvZ+rP4Cyrvie+AJMd/dn2UgtXpVScmVWRlHj62yaJA= X-Received: by 2002:ac2:443c:: with SMTP id w28mr484579lfl.405.1604655089582; Fri, 06 Nov 2020 01:31:29 -0800 (PST) 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:109264 Archived-At: --===============7880796559140701764== Content-Type: multipart/alternative; boundary="0000000000009a06c205b36ce03c" --0000000000009a06c205b36ce03c Content-Type: text/plain; charset="UTF-8" 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 | --0000000000009a06c205b36ce03c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello All,

I am having a situation wher= e I have to install and run Context in a Linux machine but the machine(s) h= ave only RHEL 7.6 (which comes with only GLIBC_2.17).
From the in= itial error logs it appears that Context needs minimum GLIBC_2.23. Therefor= e, I did the following work around and it almost worked ! (there were no mo= re GLIBC_2.23 errors and installation was progressing well...) , till it di= d 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 instru= ctions here - in my own directory where I have full access -=C2=A0
https://gist.github.com/carlesloriente/ab3387e7d035ed400dc281687= 3e9089e=C2=A0

Patchelf Utility
Used the patchelf utility - https://anaconda.org/conda-forge/patchelf=C2=A0
=
Changed the following Context install files
install.sh (just before runn= ing mtxrun)
=3D=3D=3D
patchelf --set-int= erpreter /my-own-dir/opt/glibc-2.23/lib/ld-linux-x86-64.so.2 --set-rpath /m= y-own-dir/opt/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)<= /i>
=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/glibc-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\normalvof= fset\voffset
! Missing number, treated as zero.
<to be read again><= br>\let
<
...
(That makes 100 errors; please t= ry again.)resolvers=C2=A0 =C2=A0 =C2=A0 =C2=A0| formats |=C2=A0=C2= =A0
=




=



--0000000000009a06c205b36ce03c-- --===============7880796559140701764== 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== --===============7880796559140701764==--