X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=bindings%2Flua%2FREADME;h=a42339dca4b0773a01e1e614f893f92b94afc389;hb=aa56e3d752ed647bc1f7b877304da7fceb650e0c;hp=f1fe18619a0f7057d407e05134735e4aa31b4be0;hpb=9b60b973b11307d6c812db001334352fbda4cdb9;p=rrdtool.git diff --git a/bindings/lua/README b/bindings/lua/README index f1fe186..a42339d 100644 --- a/bindings/lua/README +++ b/bindings/lua/README @@ -1,21 +1,68 @@ RRDLua is a Lua module for RRD functions. -Compiling: +- Configuration -Just run "configure" from the top RRDTool package dir and then 'make'. -You should have lua and lua-dev packages installed before executing -configure. + From the top dir of RRDtool package, run "./configure", or + "./configure --enable-lua-site-install" if you prefer to install in + Lua's search path. -Testing: + You should have lua 5.0, or superior, and respective lua-dev packages + installed before executing configure. -Enter the bindings/lua dir, run 'make test' and use your preferred -viewer to display the just created graph 'test.png'. If you can read -"Enjoy Lua RRDtool module!" on the picture, everything went fine. +- Compilation and installation -Installation: + Run 'make' and 'sudo make install'. If you don't enable lua-site-install, + the Lua modules will be installed together with RRDtool, under the subdir + lib/lua/. -Run 'make install' from the top dir of the RRDtool package. The Lua -module will be installed in the same RRDtool installation dir, -under the subdir lib/lua/. +- Testing + Install RRDtool first, as above. Then, enter the bindings/lua dir, run + 'make test' and use your preferred viewer to display the just created + 'test.png'. If you can read "Enjoy Lua RRDtool module!" on the picture, + everything went fine. +- Using with Lua 5.1 + + Start your programs with: + + ------..----------------------------------------------------------- + package.cpath = '