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

Bug#665279: pointing luatex to external lua modules



Package: luatex
Version: 0.70.1-1+b1
Severity: wishlist


Hi,

This should possibly be filed against texlive-luatex. Please redirect
as appropriate.

When using luatex on Debian, it does not automatically find lua
modules that are installed on the system as part of a regular lua
installation. Since (I believe) it is possible for luatex to use these
modules if it sees them, it would be nice if either this worked out of
the box, or configuration instructions were provided to Debian luatex
users.

This issue came up in the context of the following tex.sx question -
http://tex.stackexchange.com/questions/48193/reading-data-from-a-relational-database-into-a-latex-table

When I attempted to import Lua bindings for sqlite, apparently in
liblua5.1-sql-sqlite3-2, the luatex interpreter was unable to find
them.

I'm using the TeX Live 2012 beta from experimental - see version
information below. TeX Live 2009 in stable clearly would not suffice
for Patrick's example in http://tex.stackexchange.com/a/48233/3406 as
it doesn't contain luacode.sty.

I tried the simple and obvious of approach of copying what seems to be
the correct .so files into the current directory, but that didn't work
either. These may have been the wrong files; I copied
liblua5.1-sql-sqlite3.so.2.0.0 from the liblua5.1-sql-sqlite3-2
package. The other two .so files in that package are symbolic links of
that one, so I made put three copies of the same file in there with
their different names, in case it made a difference. But it didn't.

See also
http://tex.stackexchange.com/questions/14361/installing-lua-modules-for-use-in-lualatex
and
http://tex.stackexchange.com/questions/42878/installing-lua-modules-for-use-in-lualatex-the-sequel

In the comments of
http://tex.stackexchange.com/questions/14361/installing-lua-modules-for-use-in-lualatex
someone suggested setting the CLUAINPUTS path. Is this a viable
approach? I don't know where or what to set it to, though.

This bug - http://bugs.debian.org/441595 looks vaguely related.

I might ask the Luatex people about this as well.

                                             Regards, Faheem

Packages containing the string lua:

ii  liblua5.1-0              5.1.4-5                  Simple, extensible, embeddable programming language
ii  liblua5.1-sql-postgres-2 2.2.0~rc1-2+b1           luasql library for the Lua language version 5.1
ii  liblua5.1-sql-postgres-d 2.2.0~rc1-2+b1           luasql development files for the Lua language version 5.1
ii  liblua5.1-sql-sqlite3-2  2.2.0~rc1-2+b1           luasql library for the Lua language version 5.1
ii  liblua5.1-sql-sqlite3-de 2.2.0~rc1-2+b1           luasql development files for the Lua language version 5.1
ii  liblua50                 5.0.3-4                  Main interpreter library for the Lua 5.0 programming language
ii  liblualib50              5.0.3-4                  Extension library for the Lua 5.0 programming language
ii  lua-mode                 20071122-3               Emacs mode for editing Lua programs
ii  lua5.1                   5.1.4-5                  Simple, extensible, embeddable programming language
ii  luatex                   0.70.1-1+b1              next generation TeX engine
ii  texlive-luatex           2011.20120314-1          TeX Live: LuaTeX packages

Corresponding info from apt-show-versions.

faheem@orwell[default branch:rev 29]:~$ apt-show-versions luatex liblua5.1-0 liblua5.1-sql-postgres-2 liblua5.1-sql-postgres-dev liblua5.1-sql-sqlite3-2 liblua5.1-sql-sqlite3-dev liblua50 liblualib50 lua-mode lua5.1 luatex texlive-luatex
liblua5.1-0/squeeze uptodate 5.1.4-5
liblua5.1-sql-postgres-2/squeeze uptodate 2.2.0~rc1-2+b1
liblua5.1-sql-postgres-dev/squeeze uptodate 2.2.0~rc1-2+b1
liblua5.1-sql-sqlite3-2/squeeze uptodate 2.2.0~rc1-2+b1
liblua5.1-sql-sqlite3-dev/squeeze uptodate 2.2.0~rc1-2+b1
liblua50/squeeze uptodate 5.0.3-4
liblualib50/squeeze uptodate 5.0.3-4
lua-mode/squeeze uptodate 20071122-3
lua5.1/squeeze uptodate 5.1.4-5
luatex/testing uptodate 0.70.1-1+b1
texlive-luatex/experimental uptodate 2011.20120314-1

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (50, 'unstable'), (50, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-vserver-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages luatex depends on:
ii  libc6                  2.11.3-3          Embedded GNU C Library: Shared lib
ii  libgcc1                1:4.7-20111231-1  GCC support library
ii  libpng12-0             1.2.44-1+squeeze2 PNG library - runtime
ii  libpoppler13           0.16.7-2          PDF rendering library
ii  libstdc++6             4.7-20111231-1    GNU Standard C++ Library v3
ii  zlib1g                 1:1.2.3.4.dfsg-3  compression library - runtime

Versions of packages luatex recommends:
ii  texlive-luatex           2011.20120314-1 TeX Live: LuaTeX packages

luatex suggests no packages.

-- no debconf information



Reply to: