2

I install awesome using sudo apt-get install awesome

I copied my rc.lua to ~/.config/awesome and ran

    lua rc.lua 

I got the following error:

      lua: rc.lua:2: module 'awful' not found:
        no field package.preload['awful']
        no file '/usr/local/share/lua/5.2/awful.lua'
        no file '/usr/local/share/lua/5.2/awful/init.lua'
        no file '/usr/local/lib/lua/5.2/awful.lua'
        no file '/usr/local/lib/lua/5.2/awful/init.lua'
        no file './awful.lua'
        no file '/usr/share/lua/5.2/awful.lua'
        no file '/usr/share/lua/5.2/awful/init.lua'
        no file './awful.lua'
        no file '/usr/local/lib/lua/5.2/awful.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.2/awful.so'
        no file '/usr/lib/lua/5.2/awful.so'
        no file '/usr/local/lib/lua/5.2/loadall.so'
        no file './awful.so'
     stack traceback:
        [C]: in function 'require'
        rc.lua:2: in main chunk
        [C]: in ?

I'm using ubuntu 12.04. I'm not sure what i'm doing wrong or what is missing. help please.

canatan
  • 135

1 Answers1

2

What are you trying to do? You're not really meant to run rc.lua straight through the lua interpreter.

If you want to check whether the syntax of your rc.lua is OK then use awesome -k -c ~/.config/rc.lua. The error

koniu
  • 36