diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-05-29 20:46:28 +0930 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-05-29 20:46:28 +0930 |
commit | 3547b12d5e881c0c6ad5d3788fa64924e1ff2a5c (patch) | |
tree | 3e767301f18f90cca4c2bf679555f3d743be6d03 | |
parent | 9d7bd06ad57832cfe6bba22acc7d7b8c74cdf8b8 (diff) | |
download | lua-cjson-3547b12d5e881c0c6ad5d3788fa64924e1ff2a5c.tar.gz lua-cjson-3547b12d5e881c0c6ad5d3788fa64924e1ff2a5c.tar.bz2 lua-cjson-3547b12d5e881c0c6ad5d3788fa64924e1ff2a5c.zip |
Document building via LuaRocks
-rw-r--r-- | README | 30 |
1 files changed, 26 insertions, 4 deletions
@@ -15,7 +15,8 @@ Features: | |||
15 | Caveats: | 15 | Caveats: |
16 | - UTF-16 and UTF-32 are not supported. | 16 | - UTF-16 and UTF-32 are not supported. |
17 | - Multiple OS threads within a single Lua state are not currently | 17 | - Multiple OS threads within a single Lua state are not currently |
18 | supported. | 18 | supported. However, this is an extremely uncommon configuration due |
19 | to performance limitations. | ||
19 | 20 | ||
20 | To obtain the latest version of Lua CJSON visit: | 21 | To obtain the latest version of Lua CJSON visit: |
21 | 22 | ||
@@ -34,17 +35,38 @@ Build requirements: | |||
34 | Or: | 35 | Or: |
35 | - LuaJIT (http://www.luajit.org/) | 36 | - LuaJIT (http://www.luajit.org/) |
36 | 37 | ||
38 | There are 3 build methods available: | ||
39 | - Gmake: POSIX, OSX | ||
40 | - RPM: Some Linux distributions | ||
41 | - LuaRocks (http://www.luarocks.org/): POSIX, OSX, Windows | ||
42 | |||
43 | |||
44 | Gmake | ||
45 | ----- | ||
46 | |||
37 | Review and update the included Makefile to suit your platform. Then: | 47 | Review and update the included Makefile to suit your platform. Then: |
38 | 48 | ||
39 | # make | 49 | # gmake |
40 | # make install | 50 | # gmake install |
41 | OR | 51 | OR |
42 | # cp cjson.so [your_module_directory] | 52 | # cp cjson.so [your_module_directory] |
43 | 53 | ||
54 | |||
55 | RPM | ||
56 | --- | ||
57 | |||
44 | Linux distributions using RPM should be able to build a package with | 58 | Linux distributions using RPM should be able to build a package with |
45 | the following command: | 59 | the following command: |
46 | 60 | ||
47 | # rpmbuild -tb lua-cjson-1.0.2.zip | 61 | # rpmbuild -tb lua-cjson-1.0.2.tar.gz |
62 | |||
63 | |||
64 | LuaRocks | ||
65 | -------- | ||
66 | |||
67 | Extract the source package into a directory and run: | ||
68 | |||
69 | # cd lua-cjson-1.0.2; luarocks make | ||
48 | 70 | ||
49 | 71 | ||
50 | Lua CJSON API | 72 | Lua CJSON API |