TDengine/examples/lua/build.sh
robotspace d270f1bccc
Do not retrieve err msg when connection is established successfully (#20486)
* Do not retrieve err msg when connection is established successfully to avoid exception.

* Restore check script for lua installation.
2023-03-15 23:36:04 +08:00

8 lines
403 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 -g -std=c99 lua_connector.c -fPIC -shared -o luaconnector.so -Wall -ltaos -I/usr/include/lua5.3 -I../../include/client