10.04/lucid liblua5.1-gnome examples don't work

Asked by Ergosys

I have installed liblua5.1-gnome-dev and liblua5.1-gnome-0 packages to try out the gtk bindings for lua.
All of the examples (in /usr/share/doc/liblua5.1-gnome-dev/examples) that I tried fail in the same way. Are they out of date, or is the package missing gtk? I'm running Lucid Lynx 10.04, 32 bit x86 build. Here is an example from "The simplest possible Lua-Gtk application" window.lua:

lua: ./window.lua:5: module 'gtk' not found:
 no field package.preload['gtk']
 no file './gtk.lua'
 no file '/usr/local/share/lua/5.1/gtk.lua'
 no file '/usr/local/share/lua/5.1/gtk/init.lua'
 no file '/usr/local/lib/lua/5.1/gtk.lua'
 no file '/usr/local/lib/lua/5.1/gtk/init.lua'
 no file '/usr/share/lua/5.1/gtk.lua'
 no file '/usr/share/lua/5.1/gtk/init.lua'
 no file './gtk.so'
 no file '/usr/local/lib/lua/5.1/gtk.so'
 no file '/usr/lib/lua/5.1/gtk.so'
 no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
 [C]: in function 'require'
 ./window.lua:5: in main chunk
 [C]: ?

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

Can you help with this problem?

Provide an answer of your own, or ask Ergosys for more information if necessary.

To post a message you must log in.