CentOS7.6上搭建阿里云OSS的C SDK

1)        先安装依赖

sudo yum install cmake

sudo yum install gcc-c++

sudo yum install curl-devel apr-devel apr-util-devel  mxml mxml-devel

可能没有mxml,那就从 https://github.com/michaelrsweet/mxml/archive/v2.12.tar.gz 下载mxml源码,解压后配置、编译、安装:

tar -zxvf mxml-2.12.tar.gz

cd mxml-2.12/

./configure

make

sudo make install

2)        再下载编译SDK源码

http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/32131/cn_zh/1501595738954/aliyun-oss-c-sdk-3.5.0.tar.gz?spm=a2c4g.11186623.2.28.1e7727b93nJDRk&file=aliyun-oss-c-sdk-3.5.0.tar.gz 下载SDK源码,解压后配置、编译、安装即可:

tar -zxvf aliyun-oss-c-sdk-3.5.0.tar.gz

cd aliyun-oss-c-sdk-3.5.0/

cmake .

make

sudo make install

posted @ 2019-02-13 20:34  鸟瞰的鸟  阅读(841)  评论(0编辑  收藏  举报