Installation¶
This guide explains how to install sheets using either:
- LuaRocks (recommended)
- Manual build from source
Requirements¶
Before installing, ensure you have:
- Lua 5.2+
- A C compiler
- Build tools
Supported platforms:
- Linux
- Windows
- macOS (experimental)
Install via LuaRocks (Recommended)¶
The easiest way to install sheets is through LuaRocks.
1 | |
This will automatically:
- Build the C core (
csv.core) - Install Lua modules
- Make the library available system-wide
Manual Installation¶
1. Clone Repository¶
1 2 | |
2. Build Native Module¶
Run:
1 | |
This compiles:
1 | |
The native module is built from:
csv/core.clib/libcsv/libcsv.c
3. Verify Build¶
After successful compilation, you should see:
1 2 | |
(or core.dll on Windows)
Windows Installation¶
You need:
- MinGW / GCC or
- MSVC
Example using MinGW:
1 | |
Make sure your Lua installation provides:
lua.hlauxlib.hlualib.h
Linux Installation¶
Install build dependencies.
Ubuntu / Debian¶
1 | |
Then:
1 | |
Arch Linux¶
1 | |
Then:
1 | |
Verify Installation¶
Run Lua:
1 | |
Then:
1 2 | |
Expected output:
1 | |
Test Installation¶
Try a quick parse:
1 2 3 4 5 6 | |
If this works, installation is successful.
Troubleshooting¶
Module csv.core not found¶
This means Lua cannot find the compiled C module.
Check:
package.cpath- Build completed successfully
csv/core.soexists
Missing Lua headers¶
Error:
1 | |
Install Lua development headers.
Examples:
Ubuntu:
1 | |
Arch:
1 | |
Permission denied on build.sh¶
Run:
1 2 | |
Next Steps¶
After installation:
- Read Quickstart for basic usage
- Explore API Reference
- Check Benchmarks