add tips for compile & usage verson match

This commit is contained in:
lionsoul2014 2025-11-04 15:02:35 +08:00
parent 4b7172766c
commit 6eee95967b
1 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,16 @@ make LuaVersion=5.1
sudo make install
```
备注:使用了指定的版本的 lua 编译的扩展就请使用相同版本的`lua`去运行以下的测试,例如:
```bash
# 使用 lua 5.1 编译扩展
make LuaVersion=5.1
# 使用 lua5.1 运行查询测试
lua5.1 search_test.py --db=../../data/ip2region_v4.xdb
```
# 使用方式