Re: [NTG-context] Install script not working

2021-06-27 Thread Alan Braslau
On Thu, 24 Jun 2021 23:30:00 +0200
Hans Hagen  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
___


Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
It works again! Thank you very much

Jairo

El jue, 24 de jun. de 2021 a la(s) 17:23, Hans Hagen (j.ha...@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.ha...@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.ha...@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.ha...@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
___


Re: [NTG-context] Install script not working

2021-06-24 Thread Hans Hagen

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.ha...@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.ha...@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.ha...@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
___


Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
El jue, 24 de jun. de 2021 a la(s) 16:55, Hans Hagen (j.ha...@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.ha...@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.ha...@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
___
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
___


Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
El jue, 24 de jun. de 2021 a la(s) 16:42, Hans Hagen (j.ha...@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.ha...@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
___
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
___


Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
El jue, 24 de jun. de 2021 a la(s) 16:30, Hans Hagen (j.ha...@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
___
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
___


Re: [NTG-context] Install script not working

2021-06-24 Thread Hans Hagen

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
___


Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
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.ha...@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
> -
>
___
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
___


Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
It prints:

uname -m rb

Jairo

El jue, 24 de jun. de 2021 a la(s) 16:14, Hans Hagen (j.ha...@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
> -
>
___
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
___


Re: [NTG-context] Install script not working

2021-06-24 Thread Hans Hagen

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
___