ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Trouble installing on Alpine Linux
@ 2024-06-21  2:39 Bryan Kaplan via ntg-context
  2024-06-21  7:15 ` [NTG-context] " Hans Hagen via ntg-context
  0 siblings, 1 reply; 26+ messages in thread
From: Bryan Kaplan via ntg-context @ 2024-06-21  2:39 UTC (permalink / raw)
  To: ntg-context; +Cc: Bryan Kaplan


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

Hi all,

I'm a *TeX novice trying and failing to install ConTeXt on Alpine Linux.

*Attempt #1*: Following https://wiki.contextgarden.net/Installation
 • Error:
   • install.sh: line 109: /opt/context/bin/mtxrun: not found
 • That file does exist, but attempting to execute it fails with that error.
 • Full (2>&1) output: https://paste.rs/R3PK9

*Attempt #2*: Following http://www.pragma-ade.nl/install.htm
 • Explicitly grabbed “64 bit Linux Musl”.
 • Errors:
   • invalid database 'http://lmtx.pragma-ade.com/install-lmtx//tex/texmf-linuxmusl.tma'
   • sh: /opt/context/tex/texmf-linuxmusl/bin/mtxrun: not found
 • That file actually does *not* exist. /opt/context/tex/texmf-linuxmusl is empty.
 • Full (2>&1) output: https://paste.rs/LjvkB
Any suggestions on how I might proceed?

Sincerely,
Bryan Kaplan

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-21  2:39 [NTG-context] Trouble installing on Alpine Linux Bryan Kaplan via ntg-context
@ 2024-06-21  7:15 ` Hans Hagen via ntg-context
  2024-06-21 18:19   ` Bryan Kaplan via ntg-context
  0 siblings, 1 reply; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2024-06-21  7:15 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 6/21/2024 4:39 AM, Bryan Kaplan via ntg-context wrote:
> Hi all,
> 
> I'm a *TeX novice trying and failing to install ConTeXt on Alpine Linux.
> 
> *Attempt #1*: Following https://wiki.contextgarden.net/Installation 
> <https://wiki.contextgarden.net/Installation>
> 
>   * Error:
>       o install.sh: line 109: /opt/context/bin/mtxrun: not found
>   * That file does exist, but attempting to execute it fails with that
>     error.
>   * Full (2>&1) output: https://paste.rs/R3PK9 <https://paste.rs/R3PK9>
> 
> 
> *Attempt #2*: Following http://www.pragma-ade.nl/install.htm 
> <http://www.pragma-ade.nl/install.htm>
> 
>   * Explicitly grabbed “64 bit Linux Musl”.
>   * Errors:
>       o invalid database
>         'http://lmtx.pragma-ade.com/install-lmtx//tex/texmf-linuxmusl.tma'
>       o sh: /opt/context/tex/texmf-linuxmusl/bin/mtxrun: not found
>   * That file actually does /not/ exist.
>     /opt/context/tex/texmf-linuxmusl is empty.
>   * Full (2>&1) output: https://paste.rs/LjvkB <https://paste.rs/LjvkB>
> 
> Any suggestions on how I might proceed?
permissions?

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-21  7:15 ` [NTG-context] " Hans Hagen via ntg-context
@ 2024-06-21 18:19   ` Bryan Kaplan via ntg-context
  2024-06-21 21:32     ` Hans Hagen via ntg-context
  2024-06-21 21:51     ` Hans Hagen via ntg-context
  0 siblings, 2 replies; 26+ messages in thread
From: Bryan Kaplan via ntg-context @ 2024-06-21 18:19 UTC (permalink / raw)
  To: ntg-context; +Cc: Bryan Kaplan


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

On 2024-06-21 at 01:15:35-06:00, Hans Hagen via ntg-context set forth:
> permissions?

For Attempt #1, the “not found” mtxrun has 0755 permissions. I think the error is some odd side-effect of trying to run a glibc binary on a musl system.

But I realized that I was confused by the installation instructions in Attempt #1. The instructions should say, “2. `wget [URL]`” to indicate to the installing user that “[URL]” must be manually specified. Instead the instructions currently provide a URL which happens to be wrong for my system, thus leading to the above problem. I should have read more closely, to see that it says the URL is supposed to be replaced.

However, correcting for that oversight leads me to Attempt #2, which still fails as described in my first email.

Has anyone successfully installed ConTeXt on Alpine?

Sincerely,
Bryan Kaplan




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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-21 18:19   ` Bryan Kaplan via ntg-context
@ 2024-06-21 21:32     ` Hans Hagen via ntg-context
  2024-06-21 21:51     ` Hans Hagen via ntg-context
  1 sibling, 0 replies; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2024-06-21 21:32 UTC (permalink / raw)
  To: Bryan Kaplan, ntg-context; +Cc: Hans Hagen

On 6/21/2024 8:19 PM, Bryan Kaplan wrote:
> On 2024-06-21 at 01:15:35-06:00, Hans Hagen via ntg-context set forth:
>> permissions?
> 
> For Attempt #1, the “not found” mtxrun has 0755 permissions. I think the 
> error is some odd side-effect of trying to run a glibc binary on a musl 
> system.
> 
> But I realized that I was confused by the installation instructions in 
> Attempt #1. The instructions should say, “2. `wget [URL]`” to indicate 
> to the installing user that “[URL]” must be manually specified. Instead 
> the instructions currently provide a URL which happens to be wrong for 
> my system, thus leading to the above problem. I should have read more 
> closely, to see that it says the URL is supposed to be replaced.
> 
> However, correcting for that oversight leads me to Attempt #2, which 
> still fails as described in my first email.
> 
> Has anyone successfully installed ConTeXt on Alpine?
i installed an alpine on WSL to see what happens

- it looks like some 32/64 bit mixup ... this is a side effect of the 
fact that it take a bit of effort to see if we need musl

- the buildbot doesn't generate the binaries (i can't login to the 
machine to check if the client is running at all)

i'll see what i can do (will give some upload noise on the list)

btw, i can compile luametatex on WSL alpine so i can use that binary

you can do that as exercise:

- apk add build-base
- apk add cmake
- go to tex/texmf-context/source/luametatex
- chmod 755 build.sh
- ./build.sh
- copy bin from build/native

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-21 18:19   ` Bryan Kaplan via ntg-context
  2024-06-21 21:32     ` Hans Hagen via ntg-context
@ 2024-06-21 21:51     ` Hans Hagen via ntg-context
  2024-06-21 22:06       ` Bryan Kaplan via ntg-context
  1 sibling, 1 reply; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2024-06-21 21:51 UTC (permalink / raw)
  To: Bryan Kaplan, mailing list for ConTeXt users; +Cc: Hans Hagen

On 6/21/2024 8:19 PM, Bryan Kaplan wrote:
> On 2024-06-21 at 01:15:35-06:00, Hans Hagen via ntg-context set forth:
>> permissions?
> 
> For Attempt #1, the “not found” mtxrun has 0755 permissions. I think the 
> error is some odd side-effect of trying to run a glibc binary on a musl 
> system.
> 
> But I realized that I was confused by the installation instructions in 
> Attempt #1. The instructions should say, “2. `wget [URL]`” to indicate 
> to the installing user that “[URL]” must be manually specified. Instead 
> the instructions currently provide a URL which happens to be wrong for 
> my system, thus leading to the above problem. I should have read more 
> closely, to see that it says the URL is supposed to be replaced.
> 
> However, correcting for that oversight leads me to Attempt #2, which 
> still fails as described in my first email.
> 
> Has anyone successfully installed ConTeXt on Alpine?
can you try again, use a new installer zip

(i need to remember to generate musl bins myself pending build bot fix)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-21 21:51     ` Hans Hagen via ntg-context
@ 2024-06-21 22:06       ` Bryan Kaplan via ntg-context
  2024-06-21 22:38         ` Bryan Kaplan via ntg-context
  0 siblings, 1 reply; 26+ messages in thread
From: Bryan Kaplan via ntg-context @ 2024-06-21 22:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Bryan Kaplan


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

On 2024-06-21 at 15:51:44-06:00, Hans Hagen set forth:
> can you try again, use a new installer zip
> (i need to remember to generate musl bins myself pending build bot fix)

Thank you so much, Hans. My initial impression is: that worked!

Don't forget to generate the musl bins yourself, pending the build bot fix.

Sincerely,
Bryan Kaplan

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-21 22:06       ` Bryan Kaplan via ntg-context
@ 2024-06-21 22:38         ` Bryan Kaplan via ntg-context
  2024-06-21 23:29           ` Bryan Kaplan via ntg-context
  0 siblings, 1 reply; 26+ messages in thread
From: Bryan Kaplan via ntg-context @ 2024-06-21 22:38 UTC (permalink / raw)
  To: ntg-context; +Cc: Bryan Kaplan


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

On 2024-06-21 at 16:06:35-06:00, Bryan Kaplan via ntg-context set forth:
> On 2024-06-21 at 15:51:44-06:00, Hans Hagen set forth:
>> can you try again, use a new installer zip
>> (i need to remember to generate musl bins myself pending build bot fix)
> 
> Thank you so much, Hans. My initial impression is: that worked!
> 
> Don't forget to generate the musl bins yourself, pending the build bot fix.

…maybe, that is. The installer finished up by informing me:

> If you also want to run LuaTeX and MkIV you can provide --luatex but first the file
> database has to be generated (this time with context and not mtxrun):
> 
>   context --luatex --generate
>   context --luatex --make

But attempting that first command gives me, “startup error : no format file given, quitting”. My web search isn't helping. Do I need to specify some format file, and if so which?

Sincerely,
Bryan Kaplan

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-21 22:38         ` Bryan Kaplan via ntg-context
@ 2024-06-21 23:29           ` Bryan Kaplan via ntg-context
  2024-06-21 23:46             ` Bryan Kaplan via ntg-context
  0 siblings, 1 reply; 26+ messages in thread
From: Bryan Kaplan via ntg-context @ 2024-06-21 23:29 UTC (permalink / raw)
  To: ntg-context; +Cc: Bryan Kaplan


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

On 2024-06-21 at 16:38:10-06:00, Bryan Kaplan via ntg-context set forth:
> But attempting that first command gives me, “startup error : no format file given, quitting”. My web search isn't helping. Do I need to specify some format file, and if so which?

To elaborate, I get the same error when attempting the test suggested in the installation instructions.

```
$ context /tmp/test.tex
startup error : no format file given, quitting
```

Sincerely,
Bryan Kaplan


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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-21 23:29           ` Bryan Kaplan via ntg-context
@ 2024-06-21 23:46             ` Bryan Kaplan via ntg-context
  2024-06-22 10:51               ` Bruce Horrocks
  0 siblings, 1 reply; 26+ messages in thread
From: Bryan Kaplan via ntg-context @ 2024-06-21 23:46 UTC (permalink / raw)
  To: ntg-context; +Cc: Bryan Kaplan


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

I tried manually specifying this format file, but then get this error:

```
$ context --fmt=/opt/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt /tmp/test.tex
startup error : missing find_format_file callback
```

So I'm no longer convinced installation fully succeeded.

Sincerely,
Bryan Kaplan

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-21 23:46             ` Bryan Kaplan via ntg-context
@ 2024-06-22 10:51               ` Bruce Horrocks
  2024-06-22 16:14                 ` Bryan Kaplan via ntg-context
  0 siblings, 1 reply; 26+ messages in thread
From: Bruce Horrocks @ 2024-06-22 10:51 UTC (permalink / raw)
  To: ntg-context mailing list; +Cc: Bryan Kaplan


> On 22 Jun 2024, at 00:46, Bryan Kaplan via ntg-context <ntg-context@ntg.nl> wrote:
> 
> So I'm no longer convinced installation fully succeeded.



Hi Bryan,

Not sure if this helps but a while back I was able to produce a Docker build of Context based on Alpine.

The instructions and Docker file are here:
<https://www.mail-archive.com/ntg-context@ntg.nl/msg98307.html>

Regards,
—
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-22 10:51               ` Bruce Horrocks
@ 2024-06-22 16:14                 ` Bryan Kaplan via ntg-context
  2024-06-22 20:00                   ` Bruce Horrocks
  2024-06-23 11:25                   ` Hans Hagen via ntg-context
  0 siblings, 2 replies; 26+ messages in thread
From: Bryan Kaplan via ntg-context @ 2024-06-22 16:14 UTC (permalink / raw)
  To: ntg-context mailing list; +Cc: Bryan Kaplan


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

On 2024-06-22 at 04:51:48-06:00, Bruce Horrocks set forth:
> Not sure if this helps but a while back I was able to produce a Docker build of Context based on Alpine.
> 
> The instructions and Docker file are here:
> <https://www.mail-archive.com/ntg-context@ntg.nl/msg98307.html>

Thank you, Bruce. I appreciate your help, but I'm not sure it applies — please correct me if I'm mistaken. I'm running Alpine on bare metal, and the musl `luametatex` binary seems operable. The problem seems, as far as I can tell, that the installation failed to establish whatever settings provide defaults, which is why (for example) it has no format file by default. I could certainly be wrong, as this is very new to me.

Sincerely,
Bryan Kaplan


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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-22 16:14                 ` Bryan Kaplan via ntg-context
@ 2024-06-22 20:00                   ` Bruce Horrocks
  2024-06-23 11:25                   ` Hans Hagen via ntg-context
  1 sibling, 0 replies; 26+ messages in thread
From: Bruce Horrocks @ 2024-06-22 20:00 UTC (permalink / raw)
  To: ntg-context mailing list; +Cc: Bryan Kaplan


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



> On 22 Jun 2024, at 17:14, Bryan Kaplan via ntg-context <ntg-context@ntg.nl> wrote:
> 
> On 2024-06-22 at 04:51:48-06:00, Bruce Horrocks set forth:
>> Not sure if this helps but a while back I was able to produce a Docker build of Context based on Alpine.
>> 
>> The instructions and Docker file are here:
>> <https://www.mail-archive.com/ntg-context@ntg.nl/msg98307.html>
> 
> Thank you, Bruce. I appreciate your help, but I'm not sure it applies — please correct me if I'm mistaken. I'm running Alpine on bare metal, and the musl `luametatex` binary seems operable. The problem seems, as far as I can tell, that the installation failed to establish whatever settings provide defaults, which is why (for example) it has no format file by default. I could certainly be wrong, as this is very new to me.
> 
> Sincerely,
> Bryan Kaplan

Sorry, I mis-remembered: at that time there was no MUSL version of Context so it was a way of getting gibc installed and using the regular Linux version.

—
Bruce Horrocks
Hampshire, UK


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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-22 16:14                 ` Bryan Kaplan via ntg-context
  2024-06-22 20:00                   ` Bruce Horrocks
@ 2024-06-23 11:25                   ` Hans Hagen via ntg-context
  2024-06-24  2:05                     ` Bryan Kaplan via ntg-context
  1 sibling, 1 reply; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2024-06-23 11:25 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 6/22/2024 6:14 PM, Bryan Kaplan via ntg-context wrote:
> On 2024-06-22 at 04:51:48-06:00, Bruce Horrocks set forth:
>> Not sure if this helps but a while back I was able to produce a Docker 
>> build of Context based on Alpine.
>>
>> The instructions and Docker file are here:
>> <https://www.mail-archive.com/ntg-context@ntg.nl/msg98307.html 
>> <https://www.mail-archive.com/ntg-context@ntg.nl/msg98307.html>>
> 
> Thank you, Bruce. I appreciate your help, but I'm not sure it applies — 
> please correct me if I'm mistaken. I'm running Alpine on bare metal, and 
> the musl `luametatex` binary seems operable. The problem seems, as far 
> as I can tell, that the installation failed to establish whatever 
> settings provide defaults, which is why (for example) it has no format 
> file by default. I could certainly be wrong, as this is very new to me.
i just tested again an install (using the latest musl installer) on an 
alpine WSL instance and it works ok; i can also process a tex file (when 
i set the path right as reported by the installer)

\starttext test \stoptext :

mkiv lua stats  > used platform: linuxmusl-64, type: unix, binary 
subtree: texmf-linuxmusl-64
mkiv lua stats  > used engine: luametatex version: 2.11.04, 
functionality level: 2024014, format id: 703, compiler: gcc
mkiv lua stats  > tex properties: 807106 hash slots used of 2097152, 
52050 control sequences, approximate memory usage: 49 MB
mkiv lua stats  > lua properties: engine: lua 5.5, used memory: 57 MB, 
ctx: 54 MB, max: 54 MB, symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.488 seconds, 1 processed pages, 1 shipped 
pages, 2.050 pages/second


Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-23 11:25                   ` Hans Hagen via ntg-context
@ 2024-06-24  2:05                     ` Bryan Kaplan via ntg-context
  2024-06-24  5:20                       ` Henning Hraban Ramm
  2024-06-24  7:33                       ` [NTG-context] Re: Trouble installing on Alpine Linux Hans Hagen via ntg-context
  0 siblings, 2 replies; 26+ messages in thread
From: Bryan Kaplan via ntg-context @ 2024-06-24  2:05 UTC (permalink / raw)
  To: ntg-context; +Cc: Bryan Kaplan


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

On 2024-06-23 at 05:25:32-06:00, Hans Hagen via ntg-context set forth:
> i just tested again an install (using the latest musl installer) on an 
> alpine WSL instance and it works ok; i can also process a tex file (when 
> i set the path right as reported by the installer)
> \starttext test \stoptext :
> 
> mkiv lua stats  > used platform: linuxmusl-64, type: unix, binary 
> subtree: texmf-linuxmusl-64
> mkiv lua stats  > used engine: luametatex version: 2.11.04, 
> functionality level: 2024014, format id: 703, compiler: gcc
> mkiv lua stats  > tex properties: 807106 hash slots used of 2097152, 
> 52050 control sequences, approximate memory usage: 49 MB
> mkiv lua stats  > lua properties: engine: lua 5.5, used memory: 57 MB, 
> ctx: 54 MB, max: 54 MB, symbol mask: utf (τεχ)
> mkiv lua stats  > runtime: 0.488 seconds, 1 processed pages, 1 shipped 
> pages, 2.050 pages/second

I tried installing from scratch, and again I now face the exact same failure. I read the install log output a little closer, and noticed this:

> mtx-install     | running: /opt/context/tex/texmf-linuxmusl-64/bin/context --luatex --generate
> mtx-context     | redirect luametatex -> luatex: luatex --luaonly --socket "/opt/context/tex/texmf-linuxmusl-64/bin/mtxrun.lua" --generate --redirected
> sh: luatex: not found

I wonder if your test environment is really equivalent to a fresh Alpine install, or if there might be any previously installations that are allowing it to appear to succeed. Does it work if you try inside Docker?

I'm not sure what else I can try. Where's that `luatex` call supposed to be found?

Sincerely,
Bryan Kaplan

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-24  2:05                     ` Bryan Kaplan via ntg-context
@ 2024-06-24  5:20                       ` Henning Hraban Ramm
  2024-06-24  5:29                         ` Bryan Kaplan via ntg-context
  2024-06-24  7:31                         ` Hans Hagen via ntg-context
  2024-06-24  7:33                       ` [NTG-context] Re: Trouble installing on Alpine Linux Hans Hagen via ntg-context
  1 sibling, 2 replies; 26+ messages in thread
From: Henning Hraban Ramm @ 2024-06-24  5:20 UTC (permalink / raw)
  To: ntg-context

Am 24.06.24 um 04:05 schrieb Bryan Kaplan via ntg-context:
>> mtx-install     | running: 
>> /opt/context/tex/texmf-linuxmusl-64/bin/context --luatex --generate
>> mtx-context     | redirect luametatex -> luatex: luatex --luaonly 
>> --socket "/opt/context/tex/texmf-linuxmusl-64/bin/mtxrun.lua" 
>> --generate --redirected
>> sh: luatex: not found
> 
> I wonder if your test environment is really equivalent to a fresh Alpine 
> install, or if there might be any previously installations that are 
> allowing it to appear to succeed. Does it work if you try inside Docker?
> 
> I'm not sure what else I can try. Where's that `luatex` call supposed to 
> be found?

Does it work without --luatex, i.e. does it work for LMTX but not MkIV?

mtxrun --generate --luatex works for me (on OSX), but context --make 
--luatex doesn’t since forever.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-24  5:20                       ` Henning Hraban Ramm
@ 2024-06-24  5:29                         ` Bryan Kaplan via ntg-context
  2024-06-24  7:30                           ` Hans Hagen via ntg-context
  2024-06-24  7:31                         ` Hans Hagen via ntg-context
  1 sibling, 1 reply; 26+ messages in thread
From: Bryan Kaplan via ntg-context @ 2024-06-24  5:29 UTC (permalink / raw)
  To: ntg-context; +Cc: Bryan Kaplan


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

On 2024-06-23 at 23:20:19-06:00, Henning Hraban Ramm set forth:
> Does it work without --luatex, i.e. does it work for LMTX but not MkIV?
> 
> mtxrun --generate --luatex works for me (on OSX), but context --make 
> --luatex doesn’t since forever.
> 
> Hraban

Yes, that command which is run by install.sh — `/opt/context/tex/texmf-linuxmusl-64/bin/context --luatex --generate` — does indeed succeed when the `--luatex` flag is removed. (I have to wonder why install.sh attempts to run an unsupported command.)

But still, after running `context --generate`, I still get “startup error : no format file given, quitting” when running `context /tmp/test.tex`. And manually specifying that format file from the installed luametatex-cache still produces “startup error : missing find_format_file callback”.

Sincerely,
Bryan Kaplan

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-24  5:29                         ` Bryan Kaplan via ntg-context
@ 2024-06-24  7:30                           ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2024-06-24  7:30 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 6/24/2024 7:29 AM, Bryan Kaplan via ntg-context wrote:
> On 2024-06-23 at 23:20:19-06:00, Henning Hraban Ramm set forth:
>> Does it work without --luatex, i.e. does it work for LMTX but not MkIV?
>>
>> mtxrun --generate --luatex works for me (on OSX), but context --make
>> --luatex doesn’t since forever.
>>
>> Hraban
> 
> Yes, that command which is run by install.sh — 
> `/opt/context/tex/texmf-linuxmusl-64/bin/context --luatex --generate` — 
> does indeed succeed when the `--luatex` flag is removed. (I have to 
> wonder why install.sh attempts to run an unsupported command.)

because luatex can be in the installation for platforms where i can fetch it

> But still, after running `context --generate`, I still get “startup 
> error : no format file given, quitting” when running `context 
> /tmp/test.tex`. And manually specifying that format file from the 
> installed luametatex-cache still produces “startup error : missing 
> find_format_file callback”.
i have no clue ... maybe another alpine or musl user knows, i can only 
test it on WSL now

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-24  5:20                       ` Henning Hraban Ramm
  2024-06-24  5:29                         ` Bryan Kaplan via ntg-context
@ 2024-06-24  7:31                         ` Hans Hagen via ntg-context
  2024-06-24  8:02                           ` Henning Hraban Ramm
  1 sibling, 1 reply; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2024-06-24  7:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 6/24/2024 7:20 AM, Henning Hraban Ramm wrote:
> Am 24.06.24 um 04:05 schrieb Bryan Kaplan via ntg-context:
>>> mtx-install     | running: 
>>> /opt/context/tex/texmf-linuxmusl-64/bin/context --luatex --generate
>>> mtx-context     | redirect luametatex -> luatex: luatex --luaonly 
>>> --socket "/opt/context/tex/texmf-linuxmusl-64/bin/mtxrun.lua" 
>>> --generate --redirected
>>> sh: luatex: not found
>>
>> I wonder if your test environment is really equivalent to a fresh 
>> Alpine install, or if there might be any previously installations that 
>> are allowing it to appear to succeed. Does it work if you try inside 
>> Docker?
>>
>> I'm not sure what else I can try. Where's that `luatex` call supposed 
>> to be found?
> 
> Does it work without --luatex, i.e. does it work for LMTX but not MkIV?
> 
> mtxrun --generate --luatex works for me (on OSX), but context --make 
> --luatex doesn’t since forever.
Do you have a bin then? And ran mtxrun --generate --luatex ?

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-24  2:05                     ` Bryan Kaplan via ntg-context
  2024-06-24  5:20                       ` Henning Hraban Ramm
@ 2024-06-24  7:33                       ` Hans Hagen via ntg-context
  2024-06-24  7:45                         ` Bryan Kaplan via ntg-context
  1 sibling, 1 reply; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2024-06-24  7:33 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 6/24/2024 4:05 AM, Bryan Kaplan via ntg-context wrote:
> On 2024-06-23 at 05:25:32-06:00, Hans Hagen via ntg-context set forth:
>> i just tested again an install (using the latest musl installer) on an
>> alpine WSL instance and it works ok; i can also process a tex file (when
>> i set the path right as reported by the installer)
>> \starttext test \stoptext :
>>
>> mkiv lua stats  > used platform: linuxmusl-64, type: unix, binary
>> subtree: texmf-linuxmusl-64
>> mkiv lua stats  > used engine: luametatex version: 2.11.04,
>> functionality level: 2024014, format id: 703, compiler: gcc
>> mkiv lua stats  > tex properties: 807106 hash slots used of 2097152,
>> 52050 control sequences, approximate memory usage: 49 MB
>> mkiv lua stats  > lua properties: engine: lua 5.5, used memory: 57 MB,
>> ctx: 54 MB, max: 54 MB, symbol mask: utf (τεχ)
>> mkiv lua stats  > runtime: 0.488 seconds, 1 processed pages, 1 shipped
>> pages, 2.050 pages/second
> 
> I tried installing from scratch, and again I now face the exact same 
> failure. I read the install log output a little closer, and noticed this:
forget about the --luatex flag, that's not for luametatex

Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-24  7:33                       ` [NTG-context] Re: Trouble installing on Alpine Linux Hans Hagen via ntg-context
@ 2024-06-24  7:45                         ` Bryan Kaplan via ntg-context
  0 siblings, 0 replies; 26+ messages in thread
From: Bryan Kaplan via ntg-context @ 2024-06-24  7:45 UTC (permalink / raw)
  To: ntg-context; +Cc: Bryan Kaplan


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

On 2024-06-24 at 01:31:46-06:00, Hans Hagen via ntg-context set forth:
> Do you have a bin then? And ran mtxrun --generate --luatex ?
> Hans

Yes, at least I ran that command just now and it apparently succeeded.

I just discovered something relevant and useful. Check this out:

$ context /tmp/test.tex
startup error : no format file given, quitting
$ which context
/opt/context/tex/texmf-linuxmusl-64/bin/context
$ /opt/context/tex/texmf-linuxmusl-64/bin/context /tmp/test.tex
resolvers       | formats | executing runner 'run luametatex format': [snip]

So it's some kind of invocation bug. I'm revealed to know I can use ConTeXt now, but I wonder if there's a way to fix this.

Sincerely,
Bryan Kaplan





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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-24  7:31                         ` Hans Hagen via ntg-context
@ 2024-06-24  8:02                           ` Henning Hraban Ramm
  2024-06-24  8:08                             ` Bryan Kaplan via ntg-context
  2024-06-24  9:11                             ` Hans Hagen
  0 siblings, 2 replies; 26+ messages in thread
From: Henning Hraban Ramm @ 2024-06-24  8:02 UTC (permalink / raw)
  To: ntg-context

Am 24.06.24 um 09:31 schrieb Hans Hagen via ntg-context:
>> Does it work without --luatex, i.e. does it work for LMTX but not MkIV?
>>
>> mtxrun --generate --luatex works for me (on OSX), but context --make 
>> --luatex doesn’t since forever.
> Do you have a bin then? And ran mtxrun --generate --luatex ?

Sorry, I didn’t want to hijack the thread.

Good hint – of course I don’t have a luatex binary besides that from TeX 
live 2023 that doesn’t work with latest LMTX/MkIV.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-24  8:02                           ` Henning Hraban Ramm
@ 2024-06-24  8:08                             ` Bryan Kaplan via ntg-context
  2024-06-24  9:11                             ` Hans Hagen
  1 sibling, 0 replies; 26+ messages in thread
From: Bryan Kaplan via ntg-context @ 2024-06-24  8:08 UTC (permalink / raw)
  To: ntg-context; +Cc: Bryan Kaplan


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

I figured it out! It was my own fault.

Here's what happened. My $PATH already had “/opt” in it, for other binaries. I added the path to the `context` binary (which is a path inside /opt/context) to the end of $PATH. So invoking `context` created confusion because the first found item matching “context” in the $PATH is a directory. I don't entirely understand why that produced this particular result, but it's a very easy problem to fix.

Thank you all so much for helping me out. I wouldn't have arrived at this understanding without your convincing me that the problem's specific to my own machine.

What a relief that I can focus on actually using ConTeXt now.

Thank you again.

Sincerely,
Bryan Kaplan

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Trouble installing on Alpine Linux
  2024-06-24  8:02                           ` Henning Hraban Ramm
  2024-06-24  8:08                             ` Bryan Kaplan via ntg-context
@ 2024-06-24  9:11                             ` Hans Hagen
  2024-06-24 10:50                               ` [NTG-context] Re: getting LuaTeX to work (was: Trouble installing on Alpine Linux) Henning Hraban Ramm
  1 sibling, 1 reply; 26+ messages in thread
From: Hans Hagen @ 2024-06-24  9:11 UTC (permalink / raw)
  To: ntg-context

On 6/24/2024 10:02 AM, Henning Hraban Ramm wrote:
> Am 24.06.24 um 09:31 schrieb Hans Hagen via ntg-context:
>>> Does it work without --luatex, i.e. does it work for LMTX but not MkIV?
>>>
>>> mtxrun --generate --luatex works for me (on OSX), but context --make 
>>> --luatex doesn’t since forever.
>> Do you have a bin then? And ran mtxrun --generate --luatex ?
> 
> Sorry, I didn’t want to hijack the thread.
> 
> Good hint – of course I don’t have a luatex binary besides that from TeX 
> live 2023 that doesn’t work with latest LMTX/MkIV.
hm, normally it should because nothign gets added to luatex but maybe 
one of these 'change default behaviour startup due to whataver security 
policy' interferes (not much we can do about that apart from trying to 
be in sync)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: getting LuaTeX to work (was: Trouble installing on Alpine Linux)
  2024-06-24  9:11                             ` Hans Hagen
@ 2024-06-24 10:50                               ` Henning Hraban Ramm
  2024-06-24 12:39                                 ` [NTG-context] Re: getting LuaTeX to work Hans Hagen
  0 siblings, 1 reply; 26+ messages in thread
From: Henning Hraban Ramm @ 2024-06-24 10:50 UTC (permalink / raw)
  To: ntg-context

Am 24.06.24 um 11:11 schrieb Hans Hagen:
> On 6/24/2024 10:02 AM, Henning Hraban Ramm wrote:
>> Am 24.06.24 um 09:31 schrieb Hans Hagen via ntg-context:
>>>> Does it work without --luatex, i.e. does it work for LMTX but not MkIV?
>>>>
>>>> mtxrun --generate --luatex works for me (on OSX), but context --make 
>>>> --luatex doesn’t since forever.
>>> Do you have a bin then? And ran mtxrun --generate --luatex ?
>>
>> Sorry, I didn’t want to hijack the thread.
>>
>> Good hint – of course I don’t have a luatex binary besides that from 
>> TeX live 2023 that doesn’t work with latest LMTX/MkIV.
> hm, normally it should because nothign gets added to luatex but maybe 
> one of these 'change default behaviour startup due to whataver security 
> policy' interferes (not much we can do about that apart from trying to 
> be in sync)

TeX Live binaries are a tangled web of symlinks, at least on OSX.

I finally found the real binary in 
/usr/local/texlive/2023/bin/universal-darwin/, but symlinking it into my 
~/context/tex/texmf-osx-64/bin doesn’t help, I get:

$ context --make --luatex
mtx-context     | redirect luametatex -> luatex: luatex --luaonly 
--socket "/Users/hraban/context/tex/texmf-osx-64/bin/mtxrun.lua" 
--script mtx-context --make --luatex --redirected
mtxrun          | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'

… the same "unknown script" error as without the symlink, when the 
luatex binary is found on the PATH. And yes, "mtxrun --generate 
--luatex" worked.

Might it be a conflict of texmfcnf.lua ?

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: getting LuaTeX to work
  2024-06-24 10:50                               ` [NTG-context] Re: getting LuaTeX to work (was: Trouble installing on Alpine Linux) Henning Hraban Ramm
@ 2024-06-24 12:39                                 ` Hans Hagen
  2024-06-24 14:25                                   ` Henning Hraban Ramm
  0 siblings, 1 reply; 26+ messages in thread
From: Hans Hagen @ 2024-06-24 12:39 UTC (permalink / raw)
  To: ntg-context

On 6/24/2024 12:50 PM, Henning Hraban Ramm wrote:
> Am 24.06.24 um 11:11 schrieb Hans Hagen:
>> On 6/24/2024 10:02 AM, Henning Hraban Ramm wrote:
>>> Am 24.06.24 um 09:31 schrieb Hans Hagen via ntg-context:
>>>>> Does it work without --luatex, i.e. does it work for LMTX but not 
>>>>> MkIV?
>>>>>
>>>>> mtxrun --generate --luatex works for me (on OSX), but context 
>>>>> --make --luatex doesn’t since forever.
>>>> Do you have a bin then? And ran mtxrun --generate --luatex ?
>>>
>>> Sorry, I didn’t want to hijack the thread.
>>>
>>> Good hint – of course I don’t have a luatex binary besides that from 
>>> TeX live 2023 that doesn’t work with latest LMTX/MkIV.
>> hm, normally it should because nothign gets added to luatex but maybe 
>> one of these 'change default behaviour startup due to whataver 
>> security policy' interferes (not much we can do about that apart from 
>> trying to be in sync)
> 
> TeX Live binaries are a tangled web of symlinks, at least on OSX.
> 
> I finally found the real binary in 
> /usr/local/texlive/2023/bin/universal-darwin/, but symlinking it into my 
> ~/context/tex/texmf-osx-64/bin doesn’t help, I get:
> 
> $ context --make --luatex
> mtx-context     | redirect luametatex -> luatex: luatex --luaonly 
> --socket "/Users/hraban/context/tex/texmf-osx-64/bin/mtxrun.lua" 
> --script mtx-context --make --luatex --redirected
> mtxrun          | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
> 
> … the same "unknown script" error as without the symlink, when the 
> luatex binary is found on the PATH. And yes, "mtxrun --generate 
> --luatex" worked.
> 
> Might it be a conflict of texmfcnf.lua ?
could be ... there was some change between tl2023 and tl 2024 and then 
again after the tl 2024 release

and indeed this symlink chain is a problem, hard to follow also, and 
afaik a long term side effect of a gwtex / mactex / texlive transition

but i guess you can just install and then adapt the path to your liking, 
no need to operate in the texlive structure

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: getting LuaTeX to work
  2024-06-24 12:39                                 ` [NTG-context] Re: getting LuaTeX to work Hans Hagen
@ 2024-06-24 14:25                                   ` Henning Hraban Ramm
  0 siblings, 0 replies; 26+ messages in thread
From: Henning Hraban Ramm @ 2024-06-24 14:25 UTC (permalink / raw)
  To: ntg-context

Am 24.06.24 um 14:39 schrieb Hans Hagen:
>> … the same "unknown script" error as without the symlink, when the 
>> luatex binary is found on the PATH. And yes, "mtxrun --generate 
>> --luatex" worked.
>>
>> Might it be a conflict of texmfcnf.lua ?
> could be ... there was some change between tl2023 and tl 2024 and then 
> again after the tl 2024 release
> 
> and indeed this symlink chain is a problem, hard to follow also, and 
> afaik a long term side effect of a gwtex / mactex / texlive transition
> 
> but i guess you can just install and then adapt the path to your liking, 
> no need to operate in the texlive structure

Well, I use LMTX from its distribution and LaTeX from TeX live, and 
that’s usually enough. I just thought it would be nice to be able to 
check MkIV occasionally.

But even if I take LMTX out of my PATH, TL23’s context can’t make a 
format, neither LMTX nor MkIV.
I’ll try upgrading to TL24…

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-06-24 14:26 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-21  2:39 [NTG-context] Trouble installing on Alpine Linux Bryan Kaplan via ntg-context
2024-06-21  7:15 ` [NTG-context] " Hans Hagen via ntg-context
2024-06-21 18:19   ` Bryan Kaplan via ntg-context
2024-06-21 21:32     ` Hans Hagen via ntg-context
2024-06-21 21:51     ` Hans Hagen via ntg-context
2024-06-21 22:06       ` Bryan Kaplan via ntg-context
2024-06-21 22:38         ` Bryan Kaplan via ntg-context
2024-06-21 23:29           ` Bryan Kaplan via ntg-context
2024-06-21 23:46             ` Bryan Kaplan via ntg-context
2024-06-22 10:51               ` Bruce Horrocks
2024-06-22 16:14                 ` Bryan Kaplan via ntg-context
2024-06-22 20:00                   ` Bruce Horrocks
2024-06-23 11:25                   ` Hans Hagen via ntg-context
2024-06-24  2:05                     ` Bryan Kaplan via ntg-context
2024-06-24  5:20                       ` Henning Hraban Ramm
2024-06-24  5:29                         ` Bryan Kaplan via ntg-context
2024-06-24  7:30                           ` Hans Hagen via ntg-context
2024-06-24  7:31                         ` Hans Hagen via ntg-context
2024-06-24  8:02                           ` Henning Hraban Ramm
2024-06-24  8:08                             ` Bryan Kaplan via ntg-context
2024-06-24  9:11                             ` Hans Hagen
2024-06-24 10:50                               ` [NTG-context] Re: getting LuaTeX to work (was: Trouble installing on Alpine Linux) Henning Hraban Ramm
2024-06-24 12:39                                 ` [NTG-context] Re: getting LuaTeX to work Hans Hagen
2024-06-24 14:25                                   ` Henning Hraban Ramm
2024-06-24  7:33                       ` [NTG-context] Re: Trouble installing on Alpine Linux Hans Hagen via ntg-context
2024-06-24  7:45                         ` Bryan Kaplan via ntg-context

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