From: Ciro Soto <ciro@kavyata.com>
To: Hans Hagen <pragma@wxs.nl>, ntg-context@ntg.nl
Subject: Re: finding out what font are available
Date: Sun, 14 Jun 2009 12:16:52 -0400 [thread overview]
Message-ID: <297ee2eb0906140916p750bce47q493869bfb647dcbd@mail.gmail.com> (raw)
In-Reply-To: <4A34CF74.8050701@wxs.nl>
[-- Attachment #1.1: Type: text/plain, Size: 11635 bytes --]
Sorry for the long email.
I ran the selfupdate:
**
*% mtxrun --selfupdate --verbose
*MtxRun | variable SELFAUTOLOC set to /home/ciro/context/tex/texmf-linux/bin
MtxRun | variable SELFAUTODIR set to /home/ciro/context/tex/texmf-linux
MtxRun | variable SELFAUTOPARENT set to /home/ciro/context/tex
MtxRun | variable TEXMFCNF set to /home/ciro/context/tex/texmf/web2c
MtxRun | loading configuration file
/home/ciro/context/tex/texmf/web2c/texmfcnf.lua
MtxRun | loading configuration for /home/ciro/context/tex/texmf/web2c from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/2f8879b44d23456e76a2b13e4fc4fa9b
MtxRun | locating list of /home/ciro/context/tex/texmf
MtxRun | loading files for /home/ciro/context/tex/texmf from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/fef1be4e394a17a934e9d3021bf5aabc
MtxRun | to be replaced old script
/home/ciro/context/tex/texmf-linux/bin/mtxrun
MtxRun | *unable to locate new script*
*% luatools --selfupdate --verbose*
LuaTools | version 1.2.2 - 2006+ - PRAGMA ADE / CONTEXT
LuaTools | variable SELFAUTOLOC set to
/home/ciro/context/tex/texmf-linux/bin
LuaTools | variable SELFAUTODIR set to /home/ciro/context/tex/texmf-linux
LuaTools | variable SELFAUTOPARENT set to /home/ciro/context/tex
LuaTools | variable TEXMFCNF set to /home/ciro/context/tex/texmf/web2c
LuaTools | loading configuration file
/home/ciro/context/tex/texmf/web2c/texmfcnf.lua
LuaTools | loading configuration for /home/ciro/context/tex/texmf/web2c from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/2f8879b44d23456e76a2b13e4fc4fa9b
LuaTools | locating list of /home/ciro/context/tex/texmf
LuaTools | loading files for /home/ciro/context/tex/texmf from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/fef1be4e394a17a934e9d3021bf5aabc
LuaTools | to be replaced old script
/home/ciro/context/tex/texmf-linux/bin/luatools
LuaTools | *unable to locate new script*
LuaTools |
LuaTools | runtime: 0.033 seconds
I added script/context/lua to my path:
*
% echo $PATH
*
/home/ciro/context/tex/texmf-linux/bin:/home/ciro/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
*/home/ciro//context/tex/texmf-context/scripts/context/lua*
:/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/bin/
*% mtxrun --scripts mtx-fonts --list*
mtx-fonts.lua:11: attempt to index global 'resolvers' (a nil value)
mtxrun --verbose --scripts mtx-fonts --list
MtxRun | variable SELFAUTOLOC set to /home/ciro/context/tex/texmf-linux/bin
MtxRun | variable SELFAUTODIR set to /home/ciro/context/tex/texmf-linux
MtxRun | variable SELFAUTOPARENT set to /home/ciro/context/tex
MtxRun | variable TEXMFCNF set to /home/ciro/context/tex/texmf/web2c
MtxRun | loading configuration file
/home/ciro/context/tex/texmf/web2c/texmfcnf.lua
MtxRun | loading configuration for /home/ciro/context/tex/texmf/web2c from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/2f8879b44d23456e76a2b13e4fc4fa9b
MtxRun | locating list of /home/ciro/context/tex/texmf
MtxRun | loading files for /home/ciro/context/tex/texmf from
/home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/fef1be4e394a17a934e9d3021bf5aabc
MtxRun |
MtxRun | executing: luatex --luaonly mtx-fonts.lua --list
MtxRun |
mtx-fonts.lua:11: *attempt to index global 'resolvers' (a nil value)*
Some information about my system:
*% ll /home/ciro//context/tex/texmf-context/scripts/context/lua*
total 740
-rwxr-xr-x 1 ciro ciro 12565 2008-12-14 18:42 x-ldx.lua*
-rwxr-xr-x 1 ciro ciro 25310 2008-12-14 18:42 scite-ctx.lua*
-rwxr-xr-x 1 ciro ciro 11110 2008-12-14 18:42 mtx-watch.lua*
-rwxr-xr-x 1 ciro ciro 10395 2008-12-14 18:42 mtx-server.lua*
-rwxr-xr-x 1 ciro ciro 132 2008-12-14 18:42 mtxrun.rme*
-rwxr-xr-x 1 ciro ciro 14652 2008-12-14 18:42 mtx-patterns.lua*
-rwxr-xr-x 1 ciro ciro 4560 2008-12-14 18:42 mtx-mptopdf.lua*
-rwxr-xr-x 1 ciro ciro 10715 2008-12-14 18:42 mtx-interface.lua*
-rwxr-xr-x 1 ciro ciro 2751 2008-12-14 18:42 mtx-grep.lua*
-rwxr-xr-x 1 ciro ciro 6149 2008-12-14 18:42 mtx-fonts.lua*
-rwxr-xr-x 1 ciro ciro 3929 2008-12-14 18:42 mtx-convert.lua*
-rwxr-xr-x 1 ciro ciro 35233 2008-12-14 18:42 mtx-context.lua*
-rwxr-xr-x 1 ciro ciro 5157 2008-12-14 18:42 mtx-check.lua*
-rwxr-xr-x 1 ciro ciro 7581 2008-12-14 18:42 mtx-chars.lua*
-rwxr-xr-x 1 ciro ciro 3131 2008-12-14 18:42 mtx-cache.lua*
-rwxr-xr-x 1 ciro ciro 10963 2008-12-14 18:42 mtx-babel.lua*
-rwxr-xr-x 1 ciro ciro 140 2008-12-14 18:42 luatools.rme*
-rwxr-xr-x 1 ciro ciro 227804 2008-12-14 18:42 luatools.lua*
-rwxr-xr-x 1 ciro ciro 18722 2008-12-27 06:38 mtx-update.lua*
-rwxr-xr-x 1 ciro ciro 295393 2008-12-27 06:38 mtxrun.lua*
*% which tex*
/usr/bin/tex
*% env | grep -i tex*
TEXMFOS=/home/ciro/context/tex/texmf-linux
TEXMFCACHE=/home/ciro/context/tex/texmf-cache
TEXMFPROJECT=/home/ciro/context/tex/texmf-project
TEXMFLOCAL=/home/ciro/context/tex/texmf-local
PATH=/home/ciro/context/tex/texmf-linux/bin:/home/ciro/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/ciro//context/tex/texmf-context/scripts/context/lua:/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/bin/
TEXMFCONTEXT=/home/ciro/context/tex/texmf-context
TEXFORMATS=/home/ciro/context/tex/texmf-linux/web2c
TEXMFDBS=/home/ciro/context/tex/texmf
TEXMFEXTRA=/home/ciro/context/tex/texmf-extra
MPMEMS=/home/ciro/context/tex/texmf-linux/web2c
HOMETEXMF=/nonexist
TEXMF=/home/ciro/context/tex/texmf
TEXMFFONTS=/home/ciro/context/tex/texmf-fonts
RUBYLIB=/home/ciro/context/tex/texmf-context/scripts/context/ruby:
TEXMFCNF=/home/ciro/context/tex/texmf/web2c
TEXMFMAIN=/home/ciro/context/tex/texmf
I uncommented some lines in setuptex:*
cat setuptex*
# Example setup file for ConTeXt distribution
#
# Author: Hans Hagen
# Patches: Arthur R. & Mojca M.
#
# Usage:
# . setuptex [texroot]
#
# On the first run also execute:
# mktexlsr
# texexec --make --alone
#
# PLATFORM
#
# we will try to guess the platform first
# (needs to be kept in sync with first-setup.sh and mtxrun)
# if yours is missing, let us know
system=`uname -s`
cpu=`uname -m`
case "$system" in
# linux
Linux)
case "$cpu" in
i*86) platform="linux" ;;
x86_64|ia64) platform="linux-64" ;;
ppc) platform="linux-ppc" ;;
*) platform="unknown" ;;
esac ;;
# Mac OS X
Darwin)
case "$cpu" in
ppc*|powerpc|power*|Power*) platform="osx-ppc" ;;
i*86) platform="osx-intel" ;;
*) platform="unknown" ;;
esac ;;
# FreeBSD
FreeBSD|freebsd)
case "$cpu" in
i*86) platform="freebsd" ;;
x86_64) platform="freebsd" ;;
amd64) platform="freebsd-amd64" ;;
*) platform="unknown" ;;
esac ;;
# SunOS/Solaris
SunOS)
case "$cpu" in
sparc) platform="solaris-sparc" ;;
i86pc) platform="solaris-intel" ;;
*) platform="unknown" ;;
esac ;;
*) platform="unknown"
esac
if test "$platform" = "unknown" ; then
echo "Error: your system \"$system $cpu\" is not supported yet."
echo "Please report to the ConTeXt mailing-list (ntg-context@ntg.nl)"
fi
#
# PATH
#
# this resolves to path of the setuptex script
# We use $0 for determine the path to the script, except for bash where $0
# always is bash; here we use BASH_SOURCE
# Thanks to Vasile Gaburici for reporting this (see
# http://www.ntg.nl/pipermail/ntg-context/2008/033953.html ff.)
if [ z"$BASH_SOURCE" != z ]; then
SCRIPTPATH="$BASH_SOURCE"
else
SCRIPTPATH="$0"
fi
OWNPATH=$(cd -P -- "$(dirname -- "$SCRIPTPATH")" && pwd -P)
# but one can also call
# . setuptex path-to-tree
TEXROOT=""
# first check if any path has been provided in the argument, and try to use
that one
if [ $# -ne 0 ] ; then
# TODO: resolve any errors
ARGPATH=$(cd -P -- "$(dirname -- "$1")" && pwd -P) &&
ARGPATH=$ARGPATH/$(basename -- "$1")
if test -f "$ARGPATH/texmf/tex/plain/base/plain.tex" ; then
TEXROOT="$ARGPATH"
echo "Setting \"$TEXROOT\" as TEXROOT."
else
echo "The argument \"$ARGPATH\" is not a valid TEXROOT path."
echo "There is no file \"$ARGPATH/texmf/tex/plain/base/plain.tex\""
if [ -f "$OWNPATH/texmf/tex/plain/base/plain.tex" ]; then
TEXROOT="$OWNPATH"
echo "Setting \"$TEXROOT\" as TEXROOT instead."
fi
fi
else
if [ -f "$OWNPATH/texmf/tex/plain/base/plain.tex" ]; then
TEXROOT="$OWNPATH"
echo "Setting \"$TEXROOT\" as TEXROOT."
else
echo "\"$OWNPATH\" is not a valid TEXROOT path."
echo "There is no file \"$OWNPATH/texmf/tex/plain/base/plain.tex\""
fi
fi
if [ "$TEXROOT" != "" ]; then
# export TEXROOT
# binaries & formats
TEXMFOS=$TEXROOT/texmf-$platform
export TEXMFOS
# base TeX files & fonts
export TEXMFMAIN=$TEXROOT/texmf
# ConTeXt
export TEXMFCONTEXT=$TEXROOT/texmf-context
# cache for LuaTeX
TEXMFCACHE=$TEXROOT/texmf-cache
export TEXMFCACHE
# user additions or modifications
export TEXMFLOCAL=$TEXROOT/texmf-local
# optional (by/for Hans)
export TEXMFFONTS=$TEXROOT/texmf-fonts
export TEXMFEXTRA=$TEXROOT/texmf-extra
export TEXMFPROJECT=$TEXROOT/texmf-project
# the next lines fail on dec alpha os's, so there you need
# to comment them (bug traced down by kees van marle/martin
# corrino)
export HOMETEXMF=/nonexist
export TEXMFCNF=$TEXROOT/texmf{-local,-context,}/web2c
export
TEXMF={$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFOS,$TEXMFCONTEXT,$TEXMFEXTRA,$TEXMFMAIN}
export TEXMFDBS=$TEXMF
export TEXFORMATS=$TEXMFOS/web2c{/$engine,}
export MPMEMS=$TEXFORMATS
unset TEXINPUTS MPINPUTS MFINPUTS
PATH=$TEXMFOS/bin:$PATH
export PATH
# TODO: OSFONTDIR
export RUBYLIB=$TEXMFCONTEXT/scripts/context/ruby:$RUBYLIB
# just to make sure that the binaries are executable
if ( (test -w "$TEXMFOS/bin/texmfstart") && (! test -x
"$TEXMFOS/bin/texmfstart") ) ; then
chmod 755 $TEXMFOS/bin/*
fi
export CTXMINIMAL=yes
else
echo "provide a proper tex root (like '. setuptex /something/tex')" ;
fi
--------------------------------------------------------------------------------------------------------
-- Links of your interest:
http://www-personal.engin.umd.umich.edu/~cirosoto/
http://www.TheGuitarMakerExploration.com
http://www.myspace.com/sotoaguirre
On Sun, Jun 14, 2009 at 6:22 AM, Hans Hagen <pragma@wxs.nl> wrote:
> Ciro Soto wrote:
>
>> another try:
>>
>> *mtxrun --script mtx-fonts --list
>> *./mtx-fonts.lua:11: attempt to index global 'resolvers' (a nil value)
>>
>
> do you run an older copy of mtxrun or luatools? if so, try
>
> mtxrun --selfupdate
> luatools --selfupdate
>
> or copy the scripts from script/context/lua to you bin path
>
> maybe some older tex in your bin path?
>
>
>> also:
>> *
>> mtxrun --script fonts --list*
>> ../fonts.lua:11: attempt to index global 'resolvers' (a nil value)
>>
>
> what is fonts.lua ?
>
> worst of all, my current book is not working now:
>>
>
> there must be something completely wrong with your system
>
> if you install the minimals and then run the setuptex script the minimals
> should work in complete isolation and well ... work
>
> Hans
>
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -----------------------------------------------------------------
>
[-- Attachment #1.2: Type: text/html, Size: 14651 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2009-06-14 16:16 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-10 1:41 Ciro Soto
2009-06-10 2:20 ` Khaled Hosny
2009-06-11 2:47 ` Ciro Soto
2009-06-11 8:30 ` Matthijs Kooijman
2009-06-11 22:29 ` Ciro Soto
2009-06-12 9:17 ` Matthijs Kooijman
2009-06-12 21:25 ` Ciro Soto
2009-06-12 21:58 ` Maurício
2009-06-12 22:56 ` Ciro Soto
2009-06-13 3:54 ` Ciro Soto
2009-06-13 7:45 ` Hans Hagen
2009-06-13 14:05 ` Ciro Soto
2009-06-13 19:10 ` Ciro Soto
2009-06-14 4:49 ` Ciro Soto
2009-06-14 10:22 ` Hans Hagen
2009-06-14 16:16 ` Ciro Soto [this message]
2009-06-14 17:14 ` Hans Hagen
2009-06-14 18:14 ` Ciro Soto
2009-06-17 0:23 ` Ciro Soto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=297ee2eb0906140916p750bce47q493869bfb647dcbd@mail.gmail.com \
--to=ciro@kavyata.com \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).