lua-users home
lua-l archive

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


On Tue, Jun 19, 2012 at 2:56 PM,  <meino.cramer@gmx.de> wrote:
> Hi Hisham,
>
> thank you for your help! :)
>
> In the meanwhile, I got this:
>
> solfire:/home/user>eval `luarocks path`
> zsh: no matches found: LUA_PATH='/usr/lib64/lua/luarocks/share/lua/5.1//?.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?/init.lua;/usr/share/lua/5.1//?.lua;/usr/share/lua/5.1//?/init.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?/init.lua;/usr/share/lua/5.1//?.lua;/usr/share/lua/5.1//?/init.lua;./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua'
>
> solfire:/home/user>echo $LUA_PATH
> zsh: no matches found: /usr/lib64/lua/luarocks/share/lua/5.1//?.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?/init.lua;/usr/share/lua/5.1//?.lua;/usr/share/lua/5.1//?/init.lua;./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua
> solfire:/home/user>Klua -llpeg
> lua: module 'lpeg' not found:

It is failing because "luarocks path" didn't work for you (notice the
"zsh: no matches found:" errors). I use zsh myself and I've never had
any problems with this syntax. You might have some customizations in
your zsh that are making it try to match ? within single-quotes (that
is not standard bash or zsh behavior). Run "luarocks path" by itself
to see the command that it is trying to output.

If the "zsh: no matches found: " string is stored inside your
$LUA_PATH variable then things are certainly not going to work. Try
this at the shell:

export LUA_PATH='/usr/lib64/lua/luarocks/share/lua/5.1/?.lua;/usr/lib64/lua/luarocks/share/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua'
export LUA_CPATH='/usr/lib64/lua/luarocks/lib/lua/5.1/?.so;/usr/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/?.so'

Please also check that the file installed correctly at
/usr/lib64/lua/luarocks/lib/lua/5.1/lpeg.so

-- Hisham