From 0763faeaaf16aae9f23baeb9d77c9a0b733207a1 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Tue, 1 Jun 2021 16:24:55 +0800 Subject: [PATCH] Hotfix/sangshuduo/td 4477 install dep for lua (#6329) * make lua build.sh install necessary lib and specify include path. * [TD-4477]: install dependency package for tests/examples/lua build.sh. Co-authored-by: Shuduo Sang --- tests/examples/lua/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/examples/lua/build.sh b/tests/examples/lua/build.sh index cbd47bdfd2..9d00c68425 100755 --- a/tests/examples/lua/build.sh +++ b/tests/examples/lua/build.sh @@ -1,2 +1,8 @@ -gcc -std=c99 lua_connector.c -fPIC -shared -o luaconnector.so -Wall -ltaos +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 -- GitLab