[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-24 Thread Bryan Kaplan via ntg-context
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
___
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
___


[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-24 Thread Bryan Kaplan via ntg-context
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




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


[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-23 Thread Bryan Kaplan via ntg-context
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
___
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
___


[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-23 Thread Bryan Kaplan via ntg-context
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
___
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
___


[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-22 Thread Bryan Kaplan via ntg-context
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:
> 

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

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


[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-21 Thread Bryan Kaplan via ntg-context
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
___
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
___


[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-21 Thread Bryan Kaplan via ntg-context
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

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


[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-21 Thread Bryan Kaplan via ntg-context
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
___
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
___


[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-21 Thread Bryan Kaplan via ntg-context
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
___
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
___


[NTG-context] Re: Trouble installing on Alpine Linux

2024-06-21 Thread Bryan Kaplan via ntg-context
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



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


[NTG-context] Trouble installing on Alpine Linux

2024-06-20 Thread Bryan Kaplan via ntg-context
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___
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
___