lua-users home
lua-l archive

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


Pedro, Pavel

On a 5K iMac with MacOs 10.12.4 and Homebrew (from which I have
installed Lua 5.2.4) updated to the latest I have installed abstk and
it asked for lcurses and lgi, the latter of which required the setting
of PKG_CONFIG_PATH to find libffi.pc and then installed.

Whatever example I run I get this error:

/usr/local/bin/lua: /usr/local/share/lua/5.2/lgi/override/cairo.lua:31:
attempt to index field '_module' (a nil value)
stack traceback:
	/usr/local/share/lua/5.2/lgi/override/cairo.lua:31: in main chunk
	[C]: in function 'require'
	/usr/local/share/lua/5.2/lgi/namespace.lua:176: in function 'require'
	/usr/local/share/lua/5.2/lgi/namespace.lua:163: in function 'require'
	/usr/local/share/lua/5.2/lgi/namespace.lua:163: in function 'require'
	/usr/local/share/lua/5.2/lgi/namespace.lua:163: in function 'require'
	/usr/local/share/lua/5.2/abstk/AbsGtk.lua:13: in main chunk
	[C]: in function 'require'
	/usr/local/share/lua/5.2/abstk.lua:11: in main chunk
	[C]: in function 'require'
	/Users/el/Downloads/t.lua:3: in main chunk
	[C]: in ?

I am just starting to dabble a little in Lua (I am an elderly
Gynecologist using (LyX and) (lua)LaTeX) and have no idea what to do
next, even though I realize it seems to be an lgi issue as I get the
same when I run test programs within the lgi luarock.

Any help appreciated.

greetings, el

On 08/05/2017 03:35, Pedro Alves wrote:
[...]

> Install it through LuaRocks:
>     luarocks install abstk
[...]