lua-users home
lua-l archive

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

Dear all,

some days ago, with expert help, I have been able to make
the lpeg library. The included test.lua script ran without problem.
But I can't require lpeg from another directory. This script:

>cat dois.lua


local b= lpeg.R("09")^1

gives me:

no field package.preload['/usr/local/lpeg-0.7/lpeg']

On the web, I searched for similar error messages, but there,
there was always a *.lua /*.luac file that needed some path
information for its retrieval. Now, in my directory /usr/local/lpeg-0.7/
I got this:

doc.html   lpeg-128.gif  lpeg.c  makefile  re.lua  test.lua
Thank you for your help!

Best regards,


Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: