lua和"模块'齿轮'没找到:"

时间:2014-12-12 04:13:12

标签: module lua awesome-wm

我有一个很棒的rc.lua文件,awesome 3.5lua 5.2。当我使用awesome -k时,我得到以下结果:

mohsen@debian:~$ awesome -k
✔ Configuration file syntax OK.

但是当我使用时:

mohsen@debian:~$ lua .config/awesome/rc.lua 
lua: .config/awesome/rc.lua:2: module 'gears' not found:
    no field package.preload['gears']
    no file '/usr/local/share/lua/5.2/gears.lua'
    no file '/usr/local/share/lua/5.2/gears/init.lua'
    no file '/usr/local/lib/lua/5.2/gears.lua'
    no file '/usr/local/lib/lua/5.2/gears/init.lua'
    no file '/usr/share/lua/5.2/gears.lua'
    no file '/usr/share/lua/5.2/gears/init.lua'
    no file './gears.lua'
    no file '/usr/local/lib/lua/5.2/gears.so'
    no file '/usr/lib/i386-linux-gnu/lua/5.2/gears.so'
    no file '/usr/lib/lua/5.2/gears.so'
    no file '/usr/local/lib/lua/5.2/loadall.so'
    no file './gears.so'
stack traceback:
    [C]: in function 'require'
    .config/awesome/rc.lua:2: in main chunk
    [C]: in ?

齿轮存在于:

/usr/share/awesome/lib/gears
/usr/share/awesome/lib/gears/init.lua
/usr/share/awesome/lib/gears/wallpaper.lua
/usr/share/awesome/lib/gears/object.lua
/usr/share/awesome/lib/gears/debug.lua
/usr/share/awesome/lib/gears/sort.lua
/usr/share/awesome/lib/gears/surface.lua
/usr/share/awesome/lib/gears/color.lua

问题:如何解决我的问题?

0 个答案:

没有答案