Help Center/ FunctionGraph/ FAQs/ Configuring Dependencies/ How Do I Create an ODBC-based Python Function Dependency?
Updated on 2026-08-24 GMT+08:00
How Do I Create an ODBC-based Python Function Dependency?
For OS-dependent packages (for example, unixODBC), download the source code to compile dependency packages.
- Log in to your ECS on the ECS console (ensure that the GCC and Make tools have been installed), and run the following command to download the source code package:
wget source code path
If you downloaded a .zip file, run the following command to decompress it:
unzip xxx/xx.zip
If you downloaded a tar.gz file, run the following command to decompress it:
tar -zxvf xxx/xx.tar.gz
- Run the following command to create the /opt/function/code directory:
mkdir /opt/function/code
- Go to the destination directory and run the following command:
./configure --prefix=/opt/function/code --sysconfdir=/opt/function/code;make;make install
- Go to /opt/function/code/lib/pkgconfig and check whether the prefix directory is /opt/function/code.
cd /opt/function/code/lib/pkgconfig
- Copy all files in /opt/function/code/lib to /opt/function/code.
cp -r /opt/function/code/lib/* /opt/function/code
- Switch to /opt/function/code and compress all files in it to a .zip package.
cd /opt/function/code
zip -r xxx.zip *
Parent topic: Configuring Dependencies
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot