ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ramkumar KB <ramkumarkb@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: ConTeXt Linux installation issues (due to GLIBC dependency) - Solved!
Date: Sat, 7 Nov 2020 09:08:46 +0800	[thread overview]
Message-ID: <CAMD5SRMsay8Wm=E1Fo5OZ03LGZc20-E4d0Jm0zr-hMRAcM689g@mail.gmail.com> (raw)
In-Reply-To: <CAMD5SRNcVHZERKJzOY-OOJ_r6Jm9TwQYRLs2Vu8g9rfcpCYm3A@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 3206 bytes --]

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 <ramkumarkb@gmail.com> 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.
> <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       | formats |
>
>
>
>
>
>
>
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 7166 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2020-11-07  1:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-06  9:31 ConTeXt Linux installation issues (due to GLIBC dependency) Ramkumar KB
2020-11-07  1:08 ` Ramkumar KB [this message]
2020-11-08  9:15   ` ConTeXt Linux installation issues (due to GLIBC dependency) - Solved! Mojca Miklavec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMD5SRMsay8Wm=E1Fo5OZ03LGZc20-E4d0Jm0zr-hMRAcM689g@mail.gmail.com' \
    --to=ramkumarkb@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).