You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-16Lines changed: 46 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,24 +46,54 @@ Boost is fetched as part of the build process._
46
46
Getting started
47
47
-----------
48
48
49
-
Refer to the [SDK documentation](https://docs.launchdarkly.com/sdk/server-side/lua#getting-started) for instructions on getting started with using the SDK.
2. Build the [C++ Server-side SDK](https://github.com/launchdarkly/cpp-sdks) from source using CMake, or obtain pre-built artifacts from the [releases page](https://github.com/launchdarkly/cpp-sdks/releases?q=%22launchdarkly-cpp-server%22)
54
-
3. Run `luarocks make` (replace the version number as necessary):
55
-
```bash
56
-
# Base SDK
57
-
luarocks make launchdarkly-server-sdk-2.0.2-0.rockspec \
58
-
LD_DIR=./path-to-installed-cpp-sdk
59
-
60
-
# SDK with Redis
61
-
luarocks make launchdarkly-server-sdk-redis-2.0.2-0.rockspec \
62
-
LDREDIS_DIR=./path-to-installed-cpp-sdk
63
-
```
49
+
Refer to the [SDK documentation](https://docs.launchdarkly.com/sdk/server-side/lua#getting-started) for instructions on
50
+
getting started with using the SDK.
51
+
52
+
There are two paths to installing the SDK. In both cases, you must first install the native
53
+
[LaunchDarkly C++ Server-side SDK](https://github.com/launchdarkly/cpp-sdks).
54
+
55
+
You may build the C++ SDK from source using [CMake](https://cmake.org/), or obtain pre-built artifacts from the
56
+
[releases page](https://github.com/launchdarkly/cpp-sdks/releases?q=%22launchdarkly-cpp-server%22). Ensure you install
57
+
the correct variant (with or without Redis support) as necessary.
64
58
65
59
Please note that the Lua SDK uses the C++ server-side SDK's C bindings, so if you're using prebuilt artifacts
66
-
then only a C99 compiler is necessary.
60
+
then only a C99 compiler is necessary. See the [Build Requirements](https://github.com/launchdarkly/cpp-sdks#build-requirements).
61
+
62
+
63
+
Then, install the [LuaRocks](https://github.com/luarocks/luarocks/wiki/Download) package manager.
64
+
65
+
### Install via `luarocks install`
66
+
67
+
The [LuaRocks project](https://luarocks.org) maintains a registry of Lua modules. You may install the SDK from
0 commit comments