TDengine/examples/lua/build.sh
Shuduo Sang 2f09d0e955
test(connector): fix connector/lua.py (#11525)
* fix: remove stream api

[TD-14360]

* fix: update examples/rust to remove stream api

[TD-14360]

* test: fix lua.py

[TD-14360]

* add more basic cases into pytest/smoketest.sh

* test(connector): fix connector/lua.py

* disable lua.py from smoketest
2022-04-15 16:37:43 +08:00

9 lines
389 B
Bash
Executable file

#!/bin/bash
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