ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt Linux installation issues (due to GLIBC dependency)
@ 2020-11-06  9:31 Ramkumar KB
  2020-11-07  1:08 ` ConTeXt Linux installation issues (due to GLIBC dependency) - Solved! Ramkumar KB
  0 siblings, 1 reply; 3+ messages in thread
From: Ramkumar KB @ 2020-11-06  9:31 UTC (permalink / raw)
  To: ntg-context


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

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: 6099 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ConTeXt Linux installation issues (due to GLIBC dependency) - Solved!
  2020-11-06  9:31 ConTeXt Linux installation issues (due to GLIBC dependency) Ramkumar KB
@ 2020-11-07  1:08 ` Ramkumar KB
  2020-11-08  9:15   ` Mojca Miklavec
  0 siblings, 1 reply; 3+ messages in thread
From: Ramkumar KB @ 2020-11-07  1:08 UTC (permalink / raw)
  To: ntg-context


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ConTeXt Linux installation issues (due to GLIBC dependency) - Solved!
  2020-11-07  1:08 ` ConTeXt Linux installation issues (due to GLIBC dependency) - Solved! Ramkumar KB
@ 2020-11-08  9:15   ` Mojca Miklavec
  0 siblings, 0 replies; 3+ messages in thread
From: Mojca Miklavec @ 2020-11-08  9:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Ramkumar,

On Sat, 7 Nov 2020 at 02:10, Ramkumar KB wrote:
>
> 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.

I'm sorry. We have VMs with an older version of Debian for building,
but those don't provide sufficiently recent build tools (cmake, git,
ninja build system, ... I believe that CMake was the main blocker, but
I'm no longer absolutely sure).

By far the easiest solution was to switch from Debian 8 to 9 (or
something like that, I should check the exact numbers) and you might
be the first one bringing the issue up. I was aware that switching to
a newer Debian version might have caused compatibility issues with
RHEL / CentOS. (Do you happen to have some matrix of glibc versions on
RHEL / CentOS?)

> 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?

Do you have trouble creating a new account on the wiki?

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-08  9:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06  9:31 ConTeXt Linux installation issues (due to GLIBC dependency) Ramkumar KB
2020-11-07  1:08 ` ConTeXt Linux installation issues (due to GLIBC dependency) - Solved! Ramkumar KB
2020-11-08  9:15   ` Mojca Miklavec

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).