From 3547b12d5e881c0c6ad5d3788fa64924e1ff2a5c Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Sun, 29 May 2011 20:46:28 +0930 Subject: Document building via LuaRocks --- README | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/README b/README index 0d912a8..f118f32 100644 --- a/README +++ b/README @@ -15,7 +15,8 @@ Features: Caveats: - UTF-16 and UTF-32 are not supported. - Multiple OS threads within a single Lua state are not currently - supported. + supported. However, this is an extremely uncommon configuration due + to performance limitations. To obtain the latest version of Lua CJSON visit: @@ -34,17 +35,38 @@ Build requirements: Or: - LuaJIT (http://www.luajit.org/) +There are 3 build methods available: +- Gmake: POSIX, OSX +- RPM: Some Linux distributions +- LuaRocks (http://www.luarocks.org/): POSIX, OSX, Windows + + +Gmake +----- + Review and update the included Makefile to suit your platform. Then: - # make - # make install + # gmake + # gmake install OR # cp cjson.so [your_module_directory] + +RPM +--- + Linux distributions using RPM should be able to build a package with the following command: - # rpmbuild -tb lua-cjson-1.0.2.zip + # rpmbuild -tb lua-cjson-1.0.2.tar.gz + + +LuaRocks +-------- + +Extract the source package into a directory and run: + + # cd lua-cjson-1.0.2; luarocks make Lua CJSON API -- cgit v1.2.3-55-g6feb