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

Notice The server operation SDK for C or C++ can be installed only in the Linux operating system.

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.
  • Version: V2.6.0 or later
  • Sample code:
    yum install cmake
  • Download link: CMake
  • Sample code:
    ./configure
    make
    make install
libcurl Troubleshoots network connection issues.
  • Version: V7.29.0 or later
  • Sample code:
    yum install libcurl-devel
  • Download link: Libcurl
  • Sample code:
    ./configure
    make
    make install
libuuid Generates UUIDs. Sample code:
yum install libuuid-devel
N/A
Apache Portable Runtime (APR) N/A Sample code:
yum install apr-devel
  • Download link: APR
  • Sample code:
    ./configure
    make
    make install
APR-util Manages memory usage and cross-platform issues. Sample code:
yum install apr-util
  • Download link: APR-util
  • Sample code:
    // You must specify the --with-apr option when you install APR-util. 
    ./configure --with-apr=/your/apr/install/path
    make
    make install
minixml Parses data that is returned in the XML format. Sample code:
yum install mxml mxml-devel
  • Download link: Mini-XML
  • Sample code:
    ./configure
    make
    make install
jsoncpp Parses data that is returned in the JSON format. Sample code:
yum install jsoncpp-devel
  • Download link: JsonCpp
  • Sample code:
    ./configure
    make
    make install
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.
Notice If some dependent libraries of OSS are installed, you do not need to install them again.

Install the SDK

  1. 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++.
  2. Decompress the downloaded SDK package.
  3. Go to the SDK installation folder. Then, compile and install the SDK. The following sample code provides an example:
    cmake .
    make
    make install