Skip to content

Latest commit

 

History

History
76 lines (54 loc) · 1.93 KB

0-INSTALLATION.md

File metadata and controls

76 lines (54 loc) · 1.93 KB

Installation

Required Dependency Libraries

To use this SDK to access the API, you must first install the required dependency libraries.

  • Install with Homebrew
brew install boost cpprestsdk openssl
  • Install with yum
yum install boost-devel openssl-devel

# The cpprestsdk does not support installation with yum.
  • Install with api-get
# install boost
sudo add-apt-repository ppa:mhier/libboost-latest -y
sudo apt-get update
sudo apt-get install libboost-all-dev

sudo apt-get install libcpprest-dev libcurl4-openssl-dev libssl-dev
  • Install with vcpkg
vcpkg install boost cpprestsdk openssl-windows

Install

Linux

git clone https://github.com/aliyun/alibabacloud-cpp-sdk.git
cd ecs-20140526/
sh scripts/install.sh

Windows

  1. Run the following command to clone code from Github via git-bash:
git clone https://github.com/aliyun/alibabacloud-cpp-sdk.git
cd alibabacloud-cpp-sdk/ecs-20140526
  1. Build Visual Studio solution
  • Install CMake && Visual Studio
  • Change directory to source code and make the cmake_build folder in the ecs-20140526 project root directory.
  • Open CMake software and
    • Browse Source to open source code directory.
    • Browse build to open the created cmake_build directory
    • click configure
    • click generate, Generate VS solution
  1. Build and Install C++ SDK
  • Go to the cmake_build directory and open ${project_name}.sln with Visual Studio Solutions
  • Select Release
  • Check INSTALL option from Build -> Configuration Manager
  • Build->Build Solutions to build.