lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2015-06-03 1:01 GMT+02:00 Simon Cozens <simon@simon-cozens.org>:
> SILE is a typesetting system written (almost) entirely in Lua. See
> http://www.sile-typesetter.org/
>
> Version 0.9.2 of SILE has been released and is [available for download][1].

It does not coexist peacefully with Lua 5.3.

On 64-bit Ubuntu, as usual I had to rebuild Lua having added -fPIC to
MYCFLAGS. SILE compiled and installed successfully, but then the bit32
compatibility, which seems to backward to 5.1, not forward to 5.3,
tripped me up.

$ ./sile examples/simple.sil
This is SILE 0.9.2
<examples/simple.sil>
Error detected:
lua-libraries/bit32-compat.lua:26: attempt to call a nil value (field 'mod')

I have the following options:

1. Persuade ./configure to use my Lua 5.2 installation (it's still there,
as lua5.2, with include and library files in /usr/local/include/lua5.2 and
/usr/local/lib/lua/5.2).
2. Rework bit32-compat.lua to detect which Lua _VERSION is being
used and provide a module that equips Lua 5.3 with bit32. This has
the advantage that I might need it anyway sooner or later for other
5.2 programs but the disadvantage that the dependence on Lua 5.2
with 5.1 compatibility turned on may rear its head elsewhere too.
3. Wait a little bit before experimenting with SILE, since a little problem
like this is sure to be fixed soon.


---

All human progress is driven by fear, greed or laziness. -- Ian Morris