TDengine/tests/examples/lua/build.sh
Shuduo Sang 0763faeaaf
Hotfix/sangshuduo/td 4477 install dep for lua (#6329)
* make lua build.sh install necessary lib and specify include path.

* [TD-4477]<hotfix>: install dependency package for tests/examples/lua build.sh.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-06-01 16:24:55 +08:00

8 lines
377 B
Bash
Executable file

lua_header_installed=`apt-cache policy liblua5.3-dev|grep Installed|grep none > /dev/null; echo $?`
if [ "$lua_header_installed" = "0" ]; then
echo "If need, please input root password to install liblua5.3-dev for build the connector.."
sudo apt install -y liblua5.3-dev
fi
gcc -std=c99 lua_connector.c -fPIC -shared -o luaconnector.so -Wall -ltaos -I/usr/include/lua5.3