mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
16 lines
351 B
Bash
Executable file
16 lines
351 B
Bash
Executable file
#!/bin/bash
|
|
set +e
|
|
|
|
FILE=/usr/local/lib/libtaospyudf.so
|
|
if [ ! -f "$FILE" ]; then
|
|
echo "$FILE does not exist."
|
|
apt install -y python3 python3-dev python3-venv
|
|
/usr/bin/python3 -m venv /udfenv
|
|
source /udfenv/bin/activate
|
|
pip3 install taospyudf
|
|
ldconfig
|
|
deactivate
|
|
else
|
|
echo "show dependencies of $FILE"
|
|
ldd $FILE
|
|
fi
|