* Install script not working
@ 2021-06-24 21:02 Jairo A. del Rio
2021-06-24 21:14 ` Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Jairo A. del Rio @ 2021-06-24 21:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 733 bytes --]
When I try to install ConTeXt with install.sh (Linux 64 bit), the following
happens:
lua error : function call: /home/coragyps/lmtx/bin/mtxrun.lua:299: bad
argument #2 to 'popen' (invalid mode)
cp: no se puede efectuar `stat' sobre
'/home/coragyps/lmtx/tex/texmf-linux-64/bin/mtxrun': No existe el archivo o
el directorio
cp: no se puede efectuar `stat' sobre
'/home/coragyps/lmtx/tex/texmf-context/scripts/context/lua/mtxrun.lua': No
existe el archivo o el directorio
cp: no se puede efectuar `stat' sobre
'/home/coragyps/lmtx/tex/texmf-context/scripts/context/lua/mtx-install.lua':
No existe el archivo o el directorio
Messages in Spanish say the directory or file doesn't exist. Am I missing
something? Thanks in advance
Jairo
[-- Attachment #1.2: Type: text/html, Size: 857 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] 11+ messages in thread
* Re: Install script not working
2021-06-24 21:02 Install script not working Jairo A. del Rio
@ 2021-06-24 21:14 ` Hans Hagen
2021-06-24 21:20 ` Jairo A. del Rio
2021-06-24 21:25 ` Jairo A. del Rio
0 siblings, 2 replies; 11+ messages in thread
From: Hans Hagen @ 2021-06-24 21:14 UTC (permalink / raw)
To: Jairo A. del Rio,
ntg-context@ntg.nl >> mailing list for ConTeXt users
On 6/24/2021 11:02 PM, Jairo A. del Rio wrote:
> When I try to install ConTeXt with install.sh (Linux 64 bit), the
> following happens:
>
> lua error : function call: /home/coragyps/lmtx/bin/mtxrun.lua:299: bad
> argument #2 to 'popen' (invalid mode)
> cp: no se puede efectuar `stat' sobre
> '/home/coragyps/lmtx/tex/texmf-linux-64/bin/mtxrun': No existe el
> archivo o el directorio
> cp: no se puede efectuar `stat' sobre
> '/home/coragyps/lmtx/tex/texmf-context/scripts/context/lua/mtxrun.lua':
> No existe el archivo o el directorio
> cp: no se puede efectuar `stat' sobre
> '/home/coragyps/lmtx/tex/texmf-context/scripts/context/lua/mtx-install.lua':
> No existe el archivo o el directorio
>
> Messages in Spanish say the directory or file doesn't exist. Am I
> missing something? Thanks in advance
can you check what is missing by adding a print?
local popen=io.popen if popen then function print(...) io.popen
(...) flush() return popen (...) end end
-----------------------------------------------------------------
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 / 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] 11+ messages in thread
* Re: Install script not working
2021-06-24 21:14 ` Hans Hagen
@ 2021-06-24 21:20 ` Jairo A. del Rio
2021-06-24 21:30 ` Hans Hagen
2021-06-24 21:25 ` Jairo A. del Rio
1 sibling, 1 reply; 11+ messages in thread
From: Jairo A. del Rio @ 2021-06-24 21:20 UTC (permalink / raw)
To: Hans Hagen; +Cc: ntg-context@ntg.nl >> mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1521 bytes --]
It prints:
uname -m rb
Jairo
El jue, 24 de jun. de 2021 a la(s) 16:14, Hans Hagen (j.hagen@xs4all.nl)
escribió:
> On 6/24/2021 11:02 PM, Jairo A. del Rio wrote:
> > When I try to install ConTeXt with install.sh (Linux 64 bit), the
> > following happens:
> >
> > lua error : function call: /home/coragyps/lmtx/bin/mtxrun.lua:299: bad
> > argument #2 to 'popen' (invalid mode)
> > cp: no se puede efectuar `stat' sobre
> > '/home/coragyps/lmtx/tex/texmf-linux-64/bin/mtxrun': No existe el
> > archivo o el directorio
> > cp: no se puede efectuar `stat' sobre
> > '/home/coragyps/lmtx/tex/texmf-context/scripts/context/lua/mtxrun.lua':
> > No existe el archivo o el directorio
> > cp: no se puede efectuar `stat' sobre
> >
> '/home/coragyps/lmtx/tex/texmf-context/scripts/context/lua/mtx-install.lua':
>
> > No existe el archivo o el directorio
> >
> > Messages in Spanish say the directory or file doesn't exist. Am I
> > missing something? Thanks in advance
> can you check what is missing by adding a print?
>
> local popen=io.popen if popen then function print(...) io.popen
> (...) flush() return popen (...) end end
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
[-- Attachment #1.2: Type: text/html, Size: 2157 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] 11+ messages in thread
* Re: Install script not working
2021-06-24 21:14 ` Hans Hagen
2021-06-24 21:20 ` Jairo A. del Rio
@ 2021-06-24 21:25 ` Jairo A. del Rio
1 sibling, 0 replies; 11+ messages in thread
From: Jairo A. del Rio @ 2021-06-24 21:25 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1715 bytes --]
Rather than missing something, it seems that "rb" confuses uname here, as
it prints:
uname: operando extra «rb»
Pruebe 'uname --help' para más información.
Using only uname -m I get:
x86_64
Am I right?
Jairo
El jue, 24 de jun. de 2021 a la(s) 16:14, Hans Hagen (j.hagen@xs4all.nl)
escribió:
> On 6/24/2021 11:02 PM, Jairo A. del Rio wrote:
> > When I try to install ConTeXt with install.sh (Linux 64 bit), the
> > following happens:
> >
> > lua error : function call: /home/coragyps/lmtx/bin/mtxrun.lua:299: bad
> > argument #2 to 'popen' (invalid mode)
> > cp: no se puede efectuar `stat' sobre
> > '/home/coragyps/lmtx/tex/texmf-linux-64/bin/mtxrun': No existe el
> > archivo o el directorio
> > cp: no se puede efectuar `stat' sobre
> > '/home/coragyps/lmtx/tex/texmf-context/scripts/context/lua/mtxrun.lua':
> > No existe el archivo o el directorio
> > cp: no se puede efectuar `stat' sobre
> >
> '/home/coragyps/lmtx/tex/texmf-context/scripts/context/lua/mtx-install.lua':
>
> > No existe el archivo o el directorio
> >
> > Messages in Spanish say the directory or file doesn't exist. Am I
> > missing something? Thanks in advance
> can you check what is missing by adding a print?
>
> local popen=io.popen if popen then function print(...) io.popen
> (...) flush() return popen (...) end end
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
[-- Attachment #1.2: Type: text/html, Size: 2426 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] 11+ messages in thread
* Re: Install script not working
2021-06-24 21:20 ` Jairo A. del Rio
@ 2021-06-24 21:30 ` Hans Hagen
2021-06-24 21:35 ` Jairo A. del Rio
2021-06-27 22:57 ` Alan Braslau
0 siblings, 2 replies; 11+ messages in thread
From: Hans Hagen @ 2021-06-24 21:30 UTC (permalink / raw)
To: Jairo A. del Rio
Cc: ntg-context@ntg.nl >> mailing list for ConTeXt users
On 6/24/2021 11:20 PM, Jairo A. del Rio wrote:
> It prints:
>
> uname -m rb
hm, that is a real last resort attempt to determine what system it is
running on (we try to avoid such calls)
-- on linux if HOSTNAME is not known (did that change?)
-- on sunos always (does anyone know an env var?)
-- on freebsd always (does anyone know an env var?)
(the 'rb' looks suspicious ... i'll check that)
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 / 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] 11+ messages in thread
* Re: Install script not working
2021-06-24 21:30 ` Hans Hagen
@ 2021-06-24 21:35 ` Jairo A. del Rio
[not found] ` <383d8e82-d1cf-dd2b-c6d5-9fe490b43bcf@xs4all.nl>
2021-06-27 22:57 ` Alan Braslau
1 sibling, 1 reply; 11+ messages in thread
From: Jairo A. del Rio @ 2021-06-24 21:35 UTC (permalink / raw)
To: Hans Hagen; +Cc: ntg-context@ntg.nl >> mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1051 bytes --]
El jue, 24 de jun. de 2021 a la(s) 16:30, Hans Hagen (j.hagen@xs4all.nl)
escribió:
> On 6/24/2021 11:20 PM, Jairo A. del Rio wrote:
> > It prints:
> >
> > uname -m rb
> hm, that is a real last resort attempt to determine what system it is
> running on (we try to avoid such calls)
>
> -- on linux if HOSTNAME is not known (did that change?)
> -- on sunos always (does anyone know an env var?)
> -- on freebsd always (does anyone know an env var?)
>
>
Tbh I don't know. I'm on Ubuntu 20.04 and I haven't made any important
changes on the OS. In case it helps, only the latest LMTX produces this
error.
> (the 'rb' looks suspicious ... i'll check that)
>
> 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
> -----------------------------------------------------------------
>
Jairo
[-- Attachment #1.2: Type: text/html, Size: 1792 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] 11+ messages in thread
* Re: Install script not working
[not found] ` <383d8e82-d1cf-dd2b-c6d5-9fe490b43bcf@xs4all.nl>
@ 2021-06-24 21:47 ` Jairo A. del Rio
[not found] ` <89534f86-cd67-7e40-9c1b-09f15b50e76e@xs4all.nl>
0 siblings, 1 reply; 11+ messages in thread
From: Jairo A. del Rio @ 2021-06-24 21:47 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1393 bytes --]
El jue, 24 de jun. de 2021 a la(s) 16:42, Hans Hagen (j.hagen@xs4all.nl)
escribió:
> On 6/24/2021 11:35 PM, Jairo A. del Rio wrote:
> >
> >
> > El jue, 24 de jun. de 2021 a la(s) 16:30, Hans Hagen (j.hagen@xs4all.nl
> > <mailto:j.hagen@xs4all.nl>) escribió:
> >
> > On 6/24/2021 11:20 PM, Jairo A. del Rio wrote:
> > > It prints:
> > >
> > > uname -m rb
> > hm, that is a real last resort attempt to determine what system it is
> > running on (we try to avoid such calls)
> >
> > -- on linux if HOSTNAME is not known (did that change?)
> > -- on sunos always (does anyone know an env var?)
> > -- on freebsd always (does anyone know an env var?)
> >
> >
> > Tbh I don't know. I'm on Ubuntu 20.04 and I haven't made any important
> > changes on the OS. In case it helps, only the latest LMTX produces this
> > error.
> >
> > (the 'rb' looks suspicious ... i'll check that)
> what does
>
> echo $HOSTTYPE
>
>
The same as uname -m: x86_64
> report?
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
Jairo
[-- Attachment #1.2: Type: text/html, Size: 2385 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] 11+ messages in thread
* Re: Install script not working
[not found] ` <89534f86-cd67-7e40-9c1b-09f15b50e76e@xs4all.nl>
@ 2021-06-24 21:58 ` Jairo A. del Rio
2021-06-24 22:23 ` Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Jairo A. del Rio @ 2021-06-24 21:58 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2135 bytes --]
El jue, 24 de jun. de 2021 a la(s) 16:55, Hans Hagen (j.hagen@xs4all.nl)
escribió:
> On 6/24/2021 11:47 PM, Jairo A. del Rio wrote:
> >
> >
> > El jue, 24 de jun. de 2021 a la(s) 16:42, Hans Hagen (j.hagen@xs4all.nl
> > <mailto:j.hagen@xs4all.nl>) escribió:
> >
> > On 6/24/2021 11:35 PM, Jairo A. del Rio wrote:
> > >
> > >
> > > El jue, 24 de jun. de 2021 a la(s) 16:30, Hans Hagen
> > (j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>
> > > <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>>) escribió:
> > >
> > > On 6/24/2021 11:20 PM, Jairo A. del Rio wrote:
> > > > It prints:
> > > >
> > > > uname -m rb
> > > hm, that is a real last resort attempt to determine what
> > system it is
> > > running on (we try to avoid such calls)
> > >
> > > -- on linux if HOSTNAME is not known (did that change?)
> > > -- on sunos always (does anyone know an env var?)
> > > -- on freebsd always (does anyone know an env var?)
> > >
> > >
> > > Tbh I don't know. I'm on Ubuntu 20.04 and I haven't made any
> > important
> > > changes on the OS. In case it helps, only the latest LMTX
> > produces this
> > > error.
> > >
> > > (the 'rb' looks suspicious ... i'll check that)
> > what does
> >
> > echo $HOSTTYPE
> >
> >
> > The same as uname -m: x86_64
>
> weird, so can you add a print (around 4037)
>
> elseif name=="linux" then
> function resolvers.platform(t,k)
> print("!!!!!",os.getenv("HOSTTYPE"))
> local architecture=os.getenv("HOSTTYPE") or resultof("uname -m") or ""
>
>
It prints "nil" here
> and see what is printed
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
Jairo
[-- Attachment #1.2: Type: text/html, Size: 3679 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] 11+ messages in thread
* Re: Install script not working
2021-06-24 21:58 ` Jairo A. del Rio
@ 2021-06-24 22:23 ` Hans Hagen
2021-06-24 22:32 ` Jairo A. del Rio
0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2021-06-24 22:23 UTC (permalink / raw)
To: Jairo A. del Rio, mailing list for ConTeXt users
On 6/24/2021 11:58 PM, Jairo A. del Rio wrote:
>
>
> El jue, 24 de jun. de 2021 a la(s) 16:55, Hans Hagen (j.hagen@xs4all.nl
> <mailto:j.hagen@xs4all.nl>) escribió:
>
> On 6/24/2021 11:47 PM, Jairo A. del Rio wrote:
> >
> >
> > El jue, 24 de jun. de 2021 a la(s) 16:42, Hans Hagen
> (j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>
> > <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>>) escribió:
> >
> > On 6/24/2021 11:35 PM, Jairo A. del Rio wrote:
> > >
> > >
> > > El jue, 24 de jun. de 2021 a la(s) 16:30, Hans Hagen
> > (j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>
> <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>>
> > > <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>
> <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>>>) escribió:
> > >
> > > On 6/24/2021 11:20 PM, Jairo A. del Rio wrote:
> > > > It prints:
> > > >
> > > > uname -m rb
> > > hm, that is a real last resort attempt to determine what
> > system it is
> > > running on (we try to avoid such calls)
> > >
> > > -- on linux if HOSTNAME is not known (did that change?)
> > > -- on sunos always (does anyone know an env var?)
> > > -- on freebsd always (does anyone know an env var?)
> > >
> > >
> > > Tbh I don't know. I'm on Ubuntu 20.04 and I haven't made any
> > important
> > > changes on the OS. In case it helps, only the latest LMTX
> > produces this
> > > error.
> > >
> > > (the 'rb' looks suspicious ... i'll check that)
> > what does
> >
> > echo $HOSTTYPE
> >
> >
> > The same as uname -m: x86_64
>
> weird, so can you add a print (around 4037)
>
> elseif name=="linux" then
> function resolvers.platform(t,k)
> print("!!!!!",os.getenv("HOSTTYPE"))
> local architecture=os.getenv("HOSTTYPE") or resultof("uname -m")
> or ""
>
>
> It prints "nil" here
i uploaded a version that might do better (lua is picky about the 'rb'
which i need for binary pipes)
now this nil ... on my opensuse on wsl it does print the expected ...
puzzling
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 / 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] 11+ messages in thread
* Re: Install script not working
2021-06-24 22:23 ` Hans Hagen
@ 2021-06-24 22:32 ` Jairo A. del Rio
0 siblings, 0 replies; 11+ messages in thread
From: Jairo A. del Rio @ 2021-06-24 22:32 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3053 bytes --]
It works again! Thank you very much
Jairo
El jue, 24 de jun. de 2021 a la(s) 17:23, Hans Hagen (j.hagen@xs4all.nl)
escribió:
> On 6/24/2021 11:58 PM, Jairo A. del Rio wrote:
> >
> >
> > El jue, 24 de jun. de 2021 a la(s) 16:55, Hans Hagen (j.hagen@xs4all.nl
> > <mailto:j.hagen@xs4all.nl>) escribió:
> >
> > On 6/24/2021 11:47 PM, Jairo A. del Rio wrote:
> > >
> > >
> > > El jue, 24 de jun. de 2021 a la(s) 16:42, Hans Hagen
> > (j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>
> > > <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>>) escribió:
> > >
> > > On 6/24/2021 11:35 PM, Jairo A. del Rio wrote:
> > > >
> > > >
> > > > El jue, 24 de jun. de 2021 a la(s) 16:30, Hans Hagen
> > > (j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>
> > <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>>
> > > > <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>
> > <mailto:j.hagen@xs4all.nl <mailto:j.hagen@xs4all.nl>>>) escribió:
> > > >
> > > > On 6/24/2021 11:20 PM, Jairo A. del Rio wrote:
> > > > > It prints:
> > > > >
> > > > > uname -m rb
> > > > hm, that is a real last resort attempt to determine
> what
> > > system it is
> > > > running on (we try to avoid such calls)
> > > >
> > > > -- on linux if HOSTNAME is not known (did that change?)
> > > > -- on sunos always (does anyone know an env var?)
> > > > -- on freebsd always (does anyone know an env var?)
> > > >
> > > >
> > > > Tbh I don't know. I'm on Ubuntu 20.04 and I haven't made
> any
> > > important
> > > > changes on the OS. In case it helps, only the latest LMTX
> > > produces this
> > > > error.
> > > >
> > > > (the 'rb' looks suspicious ... i'll check that)
> > > what does
> > >
> > > echo $HOSTTYPE
> > >
> > >
> > > The same as uname -m: x86_64
> >
> > weird, so can you add a print (around 4037)
> >
> > elseif name=="linux" then
> > function resolvers.platform(t,k)
> > print("!!!!!",os.getenv("HOSTTYPE"))
> > local architecture=os.getenv("HOSTTYPE") or resultof("uname -m")
> > or ""
> >
> >
> > It prints "nil" here
> i uploaded a version that might do better (lua is picky about the 'rb'
> which i need for binary pipes)
>
> now this nil ... on my opensuse on wsl it does print the expected ...
> puzzling
>
> 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
> -----------------------------------------------------------------
>
[-- Attachment #1.2: Type: text/html, Size: 5230 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] 11+ messages in thread
* Re: Install script not working
2021-06-24 21:30 ` Hans Hagen
2021-06-24 21:35 ` Jairo A. del Rio
@ 2021-06-27 22:57 ` Alan Braslau
1 sibling, 0 replies; 11+ messages in thread
From: Alan Braslau @ 2021-06-27 22:57 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
On Thu, 24 Jun 2021 23:30:00 +0200
Hans Hagen <j.hagen@xs4all.nl> wrote:
> -- on freebsd always (does anyone know an env var?)
On FreeBSD, there is `uname -m` but also `hostname`.
I find the environment variable $HOST to be set, but I am not sure that
this is done by default (for standard installations).
Alan
___________________________________________________________________________________
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] 11+ messages in thread
end of thread, other threads:[~2021-06-27 22:57 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-24 21:02 Install script not working Jairo A. del Rio
2021-06-24 21:14 ` Hans Hagen
2021-06-24 21:20 ` Jairo A. del Rio
2021-06-24 21:30 ` Hans Hagen
2021-06-24 21:35 ` Jairo A. del Rio
[not found] ` <383d8e82-d1cf-dd2b-c6d5-9fe490b43bcf@xs4all.nl>
2021-06-24 21:47 ` Jairo A. del Rio
[not found] ` <89534f86-cd67-7e40-9c1b-09f15b50e76e@xs4all.nl>
2021-06-24 21:58 ` Jairo A. del Rio
2021-06-24 22:23 ` Hans Hagen
2021-06-24 22:32 ` Jairo A. del Rio
2021-06-27 22:57 ` Alan Braslau
2021-06-24 21:25 ` Jairo A. del Rio
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).