This topic describes how to install the server operation SDK for C or C++ in the Linux operating system.
Prerequisites
ApsaraVideo VOD is activated. For more information, see Activate ApsaraVideo VOD.
Environment requirements
Important
- The server operation SDK for C or C++ can be installed only in the Linux operating system.
- This topic describes how to install the server operation SDK for C or C++ as a non-root user and provides examples of installation commands.
The following table describes the required software packages and their usage, and provides installation examples. You can install the software by using Yellowdog Updater, Modified (YUM) or downloading the installation packages over the Internet.
Software | Description | Installation by using YUM | Installation by using packages downloaded over the Internet |
---|---|---|---|
CMake | A third-party compiler. |
|
|
libcurl | Troubleshoots network connection issues. |
|
|
libuuid | Generates UUIDs. | Sample code:
| N/A |
Apache Portable Runtime (APR) | N/A | Sample code:
|
|
APR-util | Manages memory usage and cross-platform issues. | Sample code:
|
|
minixml | Parses data that is returned in the XML format. | Sample code:
|
|
jsoncpp | Parses data that is returned in the JSON format. | Sample code:
|
|
OSS SDK for C or C++ | Before you use the upload SDK for C or C++, you must download and install Object Storage Service (OSS) SDK for C or C++. | N/A | For more information about how to install OSS SDK for C or C++, see Installation. Important If some dependent libraries of OSS are installed, you do not need to install them again. |
Install the SDK
- Download the SDK. For more information about the download links, see Release notes of the upload SDK for C or C++.Note The server operation SDK for C or C++ and the upload SDK for C or C++ are of the same version. For more information, see Release notes of the upload SDK for C or C++.
- Decompress the downloaded SDK package.
- Go to the SDK installation folder. Then, compile and install the SDK. The following sample code provides an example:
cmake . make make install