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>
This commit is contained in:
parent
b289b28ab4
commit
0763faeaaf
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue