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.

SoftwareDescriptionInstallation by using YUMInstallation by using packages downloaded over the Internet
CMakeA third-party compiler.
  • Version: V2.6.0 or later
  • Sample code:
    sudo yum install cmake
  • Download link: CMake
  • Sample code:
    ./configure
    make
    make install
libcurlTroubleshoots network connection issues.
  • Version: V7.29.0 or later
  • Sample code:
    sudo yum install libcurl-devel
  • Download link: Libcurl
  • Sample code:
    ./configure
    make
    make install
libuuidGenerates UUIDs.Sample code:
sudo yum install libuuid-devel
N/A
Apache Portable Runtime (APR)N/ASample code:
sudo yum install apr-devel
  • Download link: APR
  • Sample code:
    ./configure
    make
    make install
APR-utilManages memory usage and cross-platform issues.Sample code:
sudo 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
minixmlParses data that is returned in the XML format.Sample code:
sudo yum install mxml mxml-devel
  • Download link: Mini-XML
  • Sample code:
    ./configure
    make
    make install
jsoncppParses data that is returned in the JSON format.Sample code:
sudo 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/AFor 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

  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