Ubuntu and Context MKIV
Hi, I have installed context package [http://packages.ubuntu.com/hu/lucid/context] in ubuntu. In theory it's the MKIV package. But when I run context I get: MTXrun | unknown script 'context.lua' or 'mtx-context.lua' How can I fix it? I have 10.04. Regards, Xan.
On Thu, Aug 19, 2010 at 7:15 AM, Xan
Hi,
I have installed context package [http://packages.ubuntu.com/hu/lucid/context] in ubuntu. In theory it's the MKIV package. But when I run context I get:
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
How can I fix it?
Did you run "luatools --generate"?
I have 10.04.
I use MKIV on Ubuntu 10.04 amd64, but from TeX Live 2010-pretest installed using the "CTAN" installer, not from .deb packages. A CTAN install can co-exist with a package install as long as you don't let the installer create symbolic links, so you can install TeX Live 2010-pretest without damage to the Ubuntu packages. If you have good network access to one of the pretest archive sites then installing TeX Live 2010-pretest may be your best route as you get newer versions of luatex, etc. Many people have much better network access to Ubuntu archives than they do to CTAN, in which case the Ubuntu packages may be the only viable option. For more debugging, follow the checks for versions, shadowing, etc. from http://wiki.contextgarden.net/Debian_installation, in particular, the "Postscript: Mark IV" section, which does mention running "luatools --generate" as well as manually creating cont-en.fmt.
Regards, Xan. ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
--
George N. White III
Al 19/08/10 12:52, En/na George N. White III ha escrit:
On Thu, Aug 19, 2010 at 7:15 AM, Xan
wrote: Hi,
I have installed context package [http://packages.ubuntu.com/hu/lucid/context] in ubuntu. In theory it's the MKIV package. But when I run context I get:
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
How can I fix it?
Did you run "luatools --generate"?
Yes I dit it. The output is: # luatools --generate LuaTools | fileio: variable 'SELFAUTOLOC' set to '/usr/bin' LuaTools | fileio: variable 'SELFAUTODIR' set to '/usr' LuaTools | fileio: variable 'SELFAUTOPARENT' set to '/' LuaTools | fileio: variable 'TEXMFCNF' set to '{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c}' LuaTools | fileio: loading configuration file /usr/share/texmf/web2c/texmf.cnf LuaTools | fileio: preparing 'configuration' for '/usr/share/texmf/web2c' LuaTools | fileio: 'configuration' saved in '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.lua' LuaTools | fileio: 'configuration' compiled to '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.luc' LuaTools | fileio: locating list of '/home/xane/.texmf-config' LuaTools | fileio: tex locator '/home/xane/.texmf-config' not found LuaTools | fileio: locating list of '/home/xane/.texmf-var' LuaTools | fileio: tex locator '/home/xane/.texmf-var' not found LuaTools | fileio: locating list of '/home/xane/texmf' LuaTools | fileio: tex locator '/home/xane/texmf' not found LuaTools | fileio: locating list of '/etc/texmf' LuaTools | fileio: tex locator '/etc/texmf' found LuaTools | fileio: hash '/etc/texmf' appended LuaTools | fileio: locating list of '/var/lib/texmf' LuaTools | fileio: tex locator '/var/lib/texmf' found LuaTools | fileio: hash '/var/lib/texmf' appended LuaTools | fileio: locating list of '/usr/local/share/texmf' LuaTools | fileio: tex locator '/usr/local/share/texmf' found LuaTools | fileio: hash '/usr/local/share/texmf' appended LuaTools | fileio: locating list of '/usr/share/texmf' LuaTools | fileio: tex locator '/usr/share/texmf' found LuaTools | fileio: hash '/usr/share/texmf' appended LuaTools | fileio: locating list of '/usr/share/texmf-texlive' LuaTools | fileio: tex locator '/usr/share/texmf-texlive' found LuaTools | fileio: hash '/usr/share/texmf-texlive' appended LuaTools | fileio: scanning path '/etc/texmf' LuaTools | fileio: 77 files found on 24 directories with 10 uppercase remappings LuaTools | fileio: scanning path '/var/lib/texmf' LuaTools | fileio: 52 files found on 18 directories with 0 uppercase remappings LuaTools | fileio: scanning path '/usr/local/share/texmf' LuaTools | fileio: 0 files found on 0 directories with 0 uppercase remappings LuaTools | fileio: scanning path '/usr/share/texmf' LuaTools | fileio: 4612 files found on 303 directories with 300 uppercase remappings LuaTools | fileio: scanning path '/usr/share/texmf-texlive' LuaTools | fileio: 9790 files found on 979 directories with 301 uppercase remappings LuaTools | fileio: preparing 'files' for '/usr/local/share/texmf' LuaTools | fileio: 'files' saved in '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/5044cbe2799fe389b078f26ff6b9ee8e.lua' LuaTools | fileio: 'files' compiled to '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/5044cbe2799fe389b078f26ff6b9ee8e.luc' LuaTools | fileio: preparing 'files' for '/etc/texmf' LuaTools | fileio: 'files' saved in '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/76f9d14d3870a3ca17c588db81902d3d.lua' LuaTools | fileio: 'files' compiled to '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/76f9d14d3870a3ca17c588db81902d3d.luc' LuaTools | fileio: preparing 'files' for '/usr/share/texmf-texlive' LuaTools | fileio: 'files' saved in '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/3187e2337ee4b2115b66aeca116ccb56.lua' LuaTools | fileio: 'files' compiled to '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/3187e2337ee4b2115b66aeca116ccb56.luc' LuaTools | fileio: preparing 'files' for '/var/lib/texmf' LuaTools | fileio: 'files' saved in '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/49ce9fb6981e7315a79363280fdfe510.lua' LuaTools | fileio: 'files' compiled to '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/49ce9fb6981e7315a79363280fdfe510.luc' LuaTools | fileio: preparing 'files' for '/usr/share/texmf' LuaTools | fileio: 'files' saved in '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/0638a6bb4aac17125bf8bd1aa29dc0c8.lua' LuaTools | fileio: 'files' compiled to '/home/xane/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/0638a6bb4aac17125bf8bd1aa29dc0c8.luc' LuaTools | LuaTools | runtime: 4.582 seconds root@negre:~#
On Thu, Aug 19, 2010 at 8:51 AM, Xan
Al 19/08/10 12:52, En/na George N. White III ha escrit:
On Thu, Aug 19, 2010 at 7:15 AM, Xan
wrote: Hi,
I have installed context package [http://packages.ubuntu.com/hu/lucid/context] in ubuntu. In theory it's the MKIV package. But when I run context I get:
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
How can I fix it?
Did you run "luatools --generate"?
Yes I dit it.
The output is:
# luatools --generate LuaTools | fileio: variable 'SELFAUTOLOC' set to '/usr/bin' LuaTools | fileio: variable 'SELFAUTODIR' set to '/usr' LuaTools | fileio: variable 'SELFAUTOPARENT' set to '/' LuaTools | fileio: variable 'TEXMFCNF' set to '{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c}' LuaTools | fileio: loading configuration file /usr/share/texmf/web2c/texmf.cnf [...]
Looks OK to me -- at least it finds /usr/share/texmf/web2c/texmf.cnf
and then looks
in Ubuntu/Debian directories (/etc/texmf, /var/lib/texmf, etc).
The next step is to run the checks from the wiki's Debian page
(program versions,
ability to find files, etc.).
Did you have any previous TeX or ConTeXT installed on this system -- a common
source of problems is intermingling multiple TeX systems (as opposed to keeping
each one in a separate tree, which allows you to switch between a number of
different systems). Once you have verified that the right files are found you
may want to file a bug report against the Ubuntu package.
--
George N. White III
Al 19/08/10 15:48, En/na George N. White III ha escrit:
On Thu, Aug 19, 2010 at 8:51 AM, Xan
wrote: Al 19/08/10 12:52, En/na George N. White III ha escrit:
On Thu, Aug 19, 2010 at 7:15 AM, Xan
wrote: Hi,
I have installed context package [http://packages.ubuntu.com/hu/lucid/context] in ubuntu. In theory it's the MKIV package. But when I run context I get:
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
How can I fix it?
Did you run "luatools --generate"?
Yes I dit it.
The output is:
# luatools --generate LuaTools | fileio: variable 'SELFAUTOLOC' set to '/usr/bin' LuaTools | fileio: variable 'SELFAUTODIR' set to '/usr' LuaTools | fileio: variable 'SELFAUTOPARENT' set to '/' LuaTools | fileio: variable 'TEXMFCNF' set to '{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c}' LuaTools | fileio: loading configuration file /usr/share/texmf/web2c/texmf.cnf
[...]
Looks OK to me -- at least it finds /usr/share/texmf/web2c/texmf.cnf and then looks in Ubuntu/Debian directories (/etc/texmf, /var/lib/texmf, etc).
The next step is to run the checks from the wiki's Debian page (program versions, ability to find files, etc.).
Did you have any previous TeX or ConTeXT installed on this system -- a common source of problems is intermingling multiple TeX systems (as opposed to keeping each one in a separate tree, which allows you to switch between a number of different systems). Once you have verified that the right files are found you may want to file a bug report against the Ubuntu package.
I have installed - texlive - context - pgf packages. That's all. So what's the problem? It seems perfect, isn't? Xan.
On Thu, Aug 19, 2010 at 2:07 PM, Xan
Al 19/08/10 15:48, En/na George N. White III ha escrit:
On Thu, Aug 19, 2010 at 8:51 AM, Xan
wrote: Al 19/08/10 12:52, En/na George N. White III ha escrit:
On Thu, Aug 19, 2010 at 7:15 AM, Xan
wrote: Hi,
I have installed context package [http://packages.ubuntu.com/hu/lucid/context] in ubuntu. In theory it's the MKIV package. But when I run context I get:
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
How can I fix it?
Did you run "luatools --generate"?
Yes I dit it.
The output is:
# luatools --generate LuaTools | fileio: variable 'SELFAUTOLOC' set to '/usr/bin' LuaTools | fileio: variable 'SELFAUTODIR' set to '/usr' LuaTools | fileio: variable 'SELFAUTOPARENT' set to '/' LuaTools | fileio: variable 'TEXMFCNF' set to '{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c}' LuaTools | fileio: loading configuration file /usr/share/texmf/web2c/texmf.cnf
[...]
Looks OK to me -- at least it finds /usr/share/texmf/web2c/texmf.cnf and then looks in Ubuntu/Debian directories (/etc/texmf, /var/lib/texmf, etc).
The next step is to run the checks from the wiki's Debian page (program versions, ability to find files, etc.).
Did you have any previous TeX or ConTeXT installed on this system -- a common source of problems is intermingling multiple TeX systems (as opposed to keeping each one in a separate tree, which allows you to switch between a number of different systems). Once you have verified that the right files are found you may want to file a bug report against the Ubuntu package.
I have installed - texlive - context - pgf packages. That's all.
So what's the problem? It seems perfect, isn't?
So there should be not be any conflicts with some other TeX disto.
Are you able to run the
various checks in the Debian wiki page? I have the same packages on
my (amd64) system
and context is working. Are you using 32-bit or the 64-bit Ubuntu,
gnome or kde? When I run
luatools --generate I get more files:
LuaTools | fileio: scanning path '/usr/share/texmf'
LuaTools | fileio: 8540 files found on 612 directories with 310
uppercase remappings
LuaTools | fileio: scanning path '/usr/share/texmf-texlive'
LuaTools | fileio: 17385 files found on 2747 directories with 722
uppercase remappings
maybe some package dependency was missed. I use TL2010-pretest from CTAN, but
ended up with texlive because something else (kile?) depends on it,
so it is quite possible
something dependency was left out in your installation.
--
George N. White III
On Thu, 19 Aug 2010, Xan wrote:
Al 19/08/10 12:52, En/na George N. White III ha escrit:
On Thu, Aug 19, 2010 at 7:15 AM, Xan
wrote: Hi,
I have installed context package [http://packages.ubuntu.com/hu/lucid/context] in ubuntu. In theory it's the MKIV package. But when I run context I get:
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
How can I fix it?
Did you run "luatools --generate"?
Yes I dit it.
The output is:
And even after that "context file" does not work? What is the output of "luatools mtx-context"? Does "mtxrun --script context filename" work instead? Aditya
On Thu, 19 Aug 2010, Xan wrote:
Al 19/08/10 12:52, En/na George N. White III ha escrit:
On Thu, Aug 19, 2010 at 7:15 AM, Xan
wrote: Hi,
I have installed context package [http://packages.ubuntu.com/hu/lucid/context] in ubuntu. In theory it's the MKIV package. But when I run context I get:
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
How can I fix it?
Did you run "luatools --generate"?
Yes I dit it.
The output is:
# luatools --generate
'/home/xane/luatex-cache/context/********' ^^^^^ root@negre:~# ^^^^
Wait... are you running luatools --generate as root? Don't do that. Run it as a normal user. Aditya
On Thu, Aug 19, 2010 at 9:13 PM, Aditya Mahajan
On Thu, 19 Aug 2010, Xan wrote:
Al 19/08/10 12:52, En/na George N. White III ha escrit:
On Thu, Aug 19, 2010 at 7:15 AM, Xan
wrote: Hi,
I have installed context package [http://packages.ubuntu.com/hu/lucid/context] in ubuntu. In theory it's > the MKIV package. But when I run context I get: MTXrun | unknown script 'context.lua' or 'mtx-context.lua' How can I fix it?
Did you run "luatools --generate"?
Yes I dit it.
The output is:
# luatools --generate
'/home/xane/luatex-cache/context/********' ^^^^^ root@negre:~#
^^^^
Wait... are you running luatools --generate as root? Don't do that. Run it as a normal user.
Good catch! I missed that. To repair the "damage" the OP will need
to run something like: "sudo chmod -R xane:xane ~/luatex-cache" to
restore ownership to the OP.
--
George N. White III
Yes I dit it.
The output is:
# luatools --generate
'/home/xane/luatex-cache/context/********' ^^^^^ root@negre:~# ^^^^
Wait... are you running luatools --generate as root? Don't do that. Run it as a normal user.
Aditya ____
I have errors with normal user: xan@negre:~$ luatools --generate LuaTools | fileio: variable 'SELFAUTOLOC' set to '/usr/bin' LuaTools | fileio: variable 'SELFAUTODIR' set to '/usr' LuaTools | fileio: variable 'SELFAUTOPARENT' set to '/' LuaTools | fileio: variable 'TEXMFCNF' set to '{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c}' LuaTools | fileio: loading configuration file /usr/share/texmf/web2c/texmf.cnf LuaTools | fileio: preparing 'configuration' for '/usr/share/texmf/web2c' LuaTools | fileio: 'configuration' saved in '/home/xan/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.lua' LuaTools | fileio: 'configuration' compiled to '/home/xan/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.luc' LuaTools | fileio: locating list of '/home/xan/.texmf-config' LuaTools | fileio: tex locator '/home/xan/.texmf-config' not found LuaTools | fileio: locating list of '/home/xan/.texmf-var' LuaTools | fileio: tex locator '/home/xan/.texmf-var' not found LuaTools | fileio: locating list of '/home/xan/texmf' LuaTools | fileio: tex locator '/home/xan/texmf' not found LuaTools | fileio: locating list of '/etc/texmf' LuaTools | fileio: tex locator '/etc/texmf' found LuaTools | fileio: hash '/etc/texmf' appended LuaTools | fileio: locating list of '/var/lib/texmf' LuaTools | fileio: tex locator '/var/lib/texmf' found LuaTools | fileio: hash '/var/lib/texmf' appended LuaTools | fileio: locating list of '/usr/local/share/texmf' LuaTools | fileio: tex locator '/usr/local/share/texmf' found LuaTools | fileio: hash '/usr/local/share/texmf' appended LuaTools | fileio: locating list of '/usr/share/texmf' LuaTools | fileio: tex locator '/usr/share/texmf' found LuaTools | fileio: hash '/usr/share/texmf' appended LuaTools | fileio: locating list of '/usr/share/texmf-texlive' LuaTools | fileio: tex locator '/usr/share/texmf-texlive' found LuaTools | fileio: hash '/usr/share/texmf-texlive' appended LuaTools | fileio: scanning path '/etc/texmf' /usr/bin/luatools:5169: cannot open /etc/texmf/web2c/pdftex/: Permission denied xan@negre:~$
On Fri, Aug 20, 2010 at 6:41 PM, Xan
Yes I dit it.
The output is:
# luatools --generate
'/home/xane/luatex-cache/context/********' ^^^^^ root@negre:~#
^^^^
Wait... are you running luatools --generate as root? Don't do that. Run it as a normal user.
Aditya ____
I have errors with normal user:
xan@negre:~$ luatools --generate LuaTools | fileio: variable 'SELFAUTOLOC' set to '/usr/bin' LuaTools | fileio: variable 'SELFAUTODIR' set to '/usr' LuaTools | fileio: variable 'SELFAUTOPARENT' set to '/' LuaTools | fileio: variable 'TEXMFCNF' set to '{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c}' LuaTools | fileio: loading configuration file /usr/share/texmf/web2c/texmf.cnf LuaTools | fileio: preparing 'configuration' for '/usr/share/texmf/web2c' LuaTools | fileio: 'configuration' saved in '/home/xan/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.lua' LuaTools | fileio: 'configuration' compiled to '/home/xan/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da.luc' LuaTools | fileio: locating list of '/home/xan/.texmf-config' LuaTools | fileio: tex locator '/home/xan/.texmf-config' not found LuaTools | fileio: locating list of '/home/xan/.texmf-var' LuaTools | fileio: tex locator '/home/xan/.texmf-var' not found LuaTools | fileio: locating list of '/home/xan/texmf' LuaTools | fileio: tex locator '/home/xan/texmf' not found LuaTools | fileio: locating list of '/etc/texmf' LuaTools | fileio: tex locator '/etc/texmf' found LuaTools | fileio: hash '/etc/texmf' appended LuaTools | fileio: locating list of '/var/lib/texmf' LuaTools | fileio: tex locator '/var/lib/texmf' found LuaTools | fileio: hash '/var/lib/texmf' appended LuaTools | fileio: locating list of '/usr/local/share/texmf' LuaTools | fileio: tex locator '/usr/local/share/texmf' found LuaTools | fileio: hash '/usr/local/share/texmf' appended LuaTools | fileio: locating list of '/usr/share/texmf' LuaTools | fileio: tex locator '/usr/share/texmf' found LuaTools | fileio: hash '/usr/share/texmf' appended LuaTools | fileio: locating list of '/usr/share/texmf-texlive' LuaTools | fileio: tex locator '/usr/share/texmf-texlive' found LuaTools | fileio: hash '/usr/share/texmf-texlive' appended LuaTools | fileio: scanning path '/etc/texmf' /usr/bin/luatools:5169: cannot open /etc/texmf/web2c/pdftex/: Permission denied xan@negre:~$
When I run luatools --generate (as normal user) there are no errors.
I don't have /etc/texmf/web2c/pdftex on my system. On debian/ubuntu
/etc/texmf/web2c is for configuration files, but perhaps some program
tried to put formats and logs there instead of the proper /var/lib/texmf:
$ locate texmf/web2c/pdftex
/var/lib/texmf/web2c/pdftex
/var/lib/texmf/web2c/pdftex/amstex.fmt
/var/lib/texmf/web2c/pdftex/amstex.log
/var/lib/texmf/web2c/pdftex/cont-en.fmt
/var/lib/texmf/web2c/pdftex/cont-en.log
/var/lib/texmf/web2c/pdftex/etex.fmt
/var/lib/texmf/web2c/pdftex/etex.log
/var/lib/texmf/web2c/pdftex/latex.fmt
/var/lib/texmf/web2c/pdftex/latex.log
/var/lib/texmf/web2c/pdftex/mptopdf.fmt
/var/lib/texmf/web2c/pdftex/mptopdf.log
/var/lib/texmf/web2c/pdftex/pdfetex.fmt
/var/lib/texmf/web2c/pdftex/pdfetex.log
/var/lib/texmf/web2c/pdftex/pdflatex.fmt
/var/lib/texmf/web2c/pdftex/pdflatex.log
/var/lib/texmf/web2c/pdftex/pdftex.fmt
/var/lib/texmf/web2c/pdftex/pdftex.log
--
George N. White III
Al 21/08/10 00:30, En/na George N. White III ha escrit:
O When I run luatools --generate (as normal user) there are no errors.
I don't have /etc/texmf/web2c/pdftex on my system. On debian/ubuntu /etc/texmf/web2c is for configuration files, but perhaps some program tried to put formats and logs there instead of the proper /var/lib/texmf:
$ locate texmf/web2c/pdftex /var/lib/texmf/web2c/pdftex /var/lib/texmf/web2c/pdftex/amstex.fmt /var/lib/texmf/web2c/pdftex/amstex.log /var/lib/texmf/web2c/pdftex/cont-en.fmt /var/lib/texmf/web2c/pdftex/cont-en.log /var/lib/texmf/web2c/pdftex/etex.fmt /var/lib/texmf/web2c/pdftex/etex.log /var/lib/texmf/web2c/pdftex/latex.fmt /var/lib/texmf/web2c/pdftex/latex.log /var/lib/texmf/web2c/pdftex/mptopdf.fmt /var/lib/texmf/web2c/pdftex/mptopdf.log /var/lib/texmf/web2c/pdftex/pdfetex.fmt /var/lib/texmf/web2c/pdftex/pdfetex.log /var/lib/texmf/web2c/pdftex/pdflatex.fmt /var/lib/texmf/web2c/pdftex/pdflatex.log /var/lib/texmf/web2c/pdftex/pdftex.fmt /var/lib/texmf/web2c/pdftex/pdftex.log
So I don't know what have to do!!! Xan.
On Sat, Aug 21, 2010 at 11:58 AM, Xan
Al 21/08/10 00:30, En/na George N. White III ha escrit:
O When I run luatools --generate (as normal user) there are no errors.
I don't have /etc/texmf/web2c/pdftex on my system. On debian/ubuntu /etc/texmf/web2c is for configuration files, but perhaps some program tried to put formats and logs there instead of the proper /var/lib/texmf:
$ locate texmf/web2c/pdftex /var/lib/texmf/web2c/pdftex /var/lib/texmf/web2c/pdftex/amstex.fmt /var/lib/texmf/web2c/pdftex/amstex.log /var/lib/texmf/web2c/pdftex/cont-en.fmt /var/lib/texmf/web2c/pdftex/cont-en.log /var/lib/texmf/web2c/pdftex/etex.fmt /var/lib/texmf/web2c/pdftex/etex.log /var/lib/texmf/web2c/pdftex/latex.fmt /var/lib/texmf/web2c/pdftex/latex.log /var/lib/texmf/web2c/pdftex/mptopdf.fmt /var/lib/texmf/web2c/pdftex/mptopdf.log /var/lib/texmf/web2c/pdftex/pdfetex.fmt /var/lib/texmf/web2c/pdftex/pdfetex.log /var/lib/texmf/web2c/pdftex/pdflatex.fmt /var/lib/texmf/web2c/pdftex/pdflatex.log /var/lib/texmf/web2c/pdftex/pdftex.fmt /var/lib/texmf/web2c/pdftex/pdftex.log
So I don't know what have to do!!!
It is hard to say without more information. You appear to
have a /etc/texmf/web2c/pdftex directory. I suspect this
directory was created erroneously when making formats, in
which case it would contain .fmt and .log files. This may mean
that one of the tools used to generate formats has a bug --
perhaps only triggered when run using the "root" account,
which is usually disabled on ubuntu, but this is
only conjecture.
If you have current hardware with ample disk and RAM
you could probably sort out the problem by installing a
fresh Ubuntu in a VM, repeating the steps you took to
get into this unhappy state but checking after each step
to figure out exactly when the configuration goes astray.
You can also experiment with various repair strategies
to see what works before trying to repair your main
installation. I actually tried this, and was not able to
cause context to fail. Using "sudo luatools --generate"
results in cache files that are owned by "root" but
still readable by a regular user.
Running luatools, fmtutil, etc. from "root" still didn't
produce /etc/texmf/web2c/pdftex so I'm at a loss to
figure out how that could happen. It would be nice
to know how it happened so steps can be taken to
prevent others from ending up in the same predicament.
--
George N. White III
I file a bug: https://bugs.launchpad.net/ubuntu/+source/context/+bug/622253 Please, provide any comments you want.
On Sun, 22 Aug 2010, Xan wrote:
I file a bug:
https://bugs.launchpad.net/ubuntu/+source/context/+bug/622253
Please, provide any comments you want.
What you have reported there is not a bug. After installing ConTeXt, you need to run (luatools --generate) as a normal user; only then mtx-contex.lua will be found. In your case, running luatools --generate does not help, and that is the bug. Aditya
On Sun, Aug 22, 2010 at 2:23 PM, Aditya Mahajan
On Sun, 22 Aug 2010, Xan wrote:
I file a bug:
https://bugs.launchpad.net/ubuntu/+source/context/+bug/622253
Please, provide any comments you want.
What you have reported there is not a bug. After installing ConTeXt, you need to run (luatools --generate) as a normal user; only then mtx-contex.lua will be found.
The need to run "luatools --generate" is not sufficiently visible (it is in README.MarkIV). Any package that requires user configuration steps should have a mechanism to inform the user that such steps are required. I suspect the damage was already done by the time the OP tried "luatools --generate" , and was perhaps made worse by running the command from a root prompt.
In your case, running luatools --generate does not help, and that is the bug.
You are right, but with a system like context it is sometimes better to
avoid stressing the tools by following standard procedures.
The OP ended up with /etc/texmf/web2c/pdftex, which suggests that
MkII and/or fmtutil tried to install formats under /etc/texmf/web2c. It may
be too much to expect luatools to recover when things are not where they
belong and files under $HOME are not owned by the user.
--
George N. White III
Al 22/08/10 23:43, En/na George N. White III ha escrit:
On Sun, Aug 22, 2010 at 2:23 PM, Aditya Mahajan
wrote: On Sun, 22 Aug 2010, Xan wrote:
I file a bug:
https://bugs.launchpad.net/ubuntu/+source/context/+bug/622253
Please, provide any comments you want.
What you have reported there is not a bug. After installing ConTeXt, you need to run (luatools --generate) as a normal user; only then mtx-contex.lua will be found.
The need to run "luatools --generate" is not sufficiently visible (it is in README.MarkIV). Any package that requires user configuration steps should have a mechanism to inform the user that such steps are required. I suspect the damage was already done by the time the OP tried "luatools --generate" , and was perhaps made worse by running the command from a root prompt.
In your case, running luatools --generate does not help, and that is the bug.
You are right, but with a system like context it is sometimes better to avoid stressing the tools by following standard procedures.
The OP ended up with /etc/texmf/web2c/pdftex, which suggests that MkII and/or fmtutil tried to install formats under /etc/texmf/web2c. It may be too much to expect luatools to recover when things are not where they belong and files under $HOME are not owned by the user.
Thanks George of confirming the bug. In my opinion, the context package has to be ready for running. No intervention of user should be needed. For the other hand, I have problems running luatools, so we have a bug: or the first or the second. Xan.
On Mon, Aug 23, 2010 at 4:53 AM, Xan
Thanks George of confirming the bug.
In my opinion, the context package has to be ready for running. No intervention of user should be needed. For the other hand, I have problems running luatools, so we have a bug: or the first or the second.
Many packages require some user configuration before they can be used.
Some hide this and do the configuration in the background the first time
they are run, which assumes that the configuration is very robust (as you
can see, luatools may not yet qualify as a robust tool). I do think the
requirement to run luatools should be made more visible to users, e.g.,
by having the context wrapper script make some checks before attempting
to run mtxrun, or by changing mtxrun itself (the advantage of making
changes in the wrapper is that they can be more distro specific and point
to /usr/share/doc/context/README.MarkIV).
As for the 2nd part of the problem, we don't have enough information to
know why "luatools --generate" isn't working for you. I'm not sure exactly
what you have tried to get it working, but it would be helpful if you can do
the following:
1. document the current status:
run (as normal user) "luatools --variables", then use the value of
TEXMFCACHE for:
"ls -lR <TEXMFCACHE>" (e.g., paste in the value shown for
TEXMFCACHE)
2. check that the luatex caches have suitable permissions, or just
delete them and try to recreate using a normal user login.
--
George N. White III
Al 22/08/10 19:23, En/na Aditya Mahajan ha escrit:
On Sun, 22 Aug 2010, Xan wrote:
I file a bug:
https://bugs.launchpad.net/ubuntu/+source/context/+bug/622253
Please, provide any comments you want.
What you have reported there is not a bug. After installing ConTeXt, you need to run (luatools --generate) as a normal user; only then mtx-contex.lua will be found.
In your case, running luatools --generate does not help, and that is the bug.
Aditya ___________________________________________________________________________________
The bug is against I can't use package. At least, a notice in the package could warning of this. Why each user has to run luatools? Is it not possible to have "ready" context package? Xan.
Hi, I am also using Context on ubuntu - and it works fine here. There is one small change I like to do: luatools --generate is creating ~/luatex-cache. As this cache is not hidden it appears on the desktop. Is it possible to change that directory into a hidden directory e.g. ~/.luatex-cache? Thanks
On Fri, Aug 20, 2010 at 6:41 AM, Peter Schorsch
Hi,
I am also using Context on ubuntu - and it works fine here. There is one small change I like to do:
luatools --generate
is creating ~/luatex-cache. As this cache is not hidden it appears on the desktop. Is it possible to change that directory into a hidden directory e.g. ~/.luatex-cache?
Yes -- see "/usr/share/doc/context/README.MarkIV"
--
George N. White III
participants (4)
-
Aditya Mahajan
-
George N. White III
-
Peter Schorsch
-
Xan