You are not logged in.

#1 2013-04-14 15:05:40

Box0
Member
From: Italy
Registered: 2011-09-21
Posts: 218

[solved] Problem compiling ConTeXt code

I'd like to start learning ConTeXt and I've just tried to compile a simple hello world:

\starttext
Hello world.
\stoptext

when compiling with texexec I get this output:

mtxrun          | kpse fallback with progname 'context' initialized in 0.02 seconds/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': /usr/share/texmf-dist/scripts/context/ruby/base/switch.rb:501: invalid multibyte escape: /\xFF/ (SyntaxError)
        from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/share/texmf-dist/scripts/context/ruby/texexec.rb:11:in `<main>'

I have ruby and all texlive packags installed except texlive-lang*. Searching for an answer I found an old discussion on the forum (2008) where it was suggested to run

luatools --generate

before using texexec, but this lead me to another error:

mtxrun          | unknown script 'base.lua' or 'mtx-base.lua'

Am I missing some package-stuff necessary to compile ConTeXt code?

edit: looks like I was reading an obsolete guide. It is now reccomended to compile code with "context <filename>", which works fine.

Last edited by Box0 (2013-04-15 09:18:52)

Offline

Board footer

Powered by FluxBB