C++Redis & C++C++实现的

Redis & C++:第1篇 安装 Poco 库

2018-10-04  本文已影响27人  furnace

Install Poco on CentOS 7

这是介绍C++基于Poco::Redis库操作Redis的系列文章中的第1篇,介绍如何安装Poco库。

进入 Poco 库的官网(https://pocoproject.org/download/index.html )下载 Complete Edition 版本。

[root@localhost poco]# wget https://pocoproject.org/releases/poco-1.9.0/poco-1.9.0-all.tar.gz

安装 g++

[root@localhost poco]# yum install gcc-c++

利用 cmake 构建

需要 3.2 以上的版本。
参考 README 中的 BUILDING WITH CMAKE。

利用 make 构建

参考 README 中的 BUILDING ON UNIX/LINUX/macOS。
需要 GNU Make 3.80 及以上版本。

[root@localhost poco]# gmake --version
or
[root@localhost poco]# make --version

[root@localhost poco]# tar -xzvf poco-1.9.0-all.tar.gz
[root@localhost poco]# cd poco-1.9.0-all

[root@localhost poco-1.9.0-all]# ./configure
or
[root@localhost poco-1.9.0-all]# ./configure --omit=Data/ODBC,Data/MySQL

[root@localhost poco-1.9.0-all]# gmake -s
or
[root@localhost poco-1.9.0-all]# gmake -s --no-tests --no-samples
or
[root@localhost poco-1.9.0-all]# make -j4 -s

[root@localhost poco-1.9.0-all]# sudo gmake -s install
install to /usr/local
or
[root@localhost poco-1.9.0-all]# sudo gmake -s install --prefix=<path>

Reference

  1. https://pocoproject.org/download/index.html
  2. https://pocoproject.org/releases/poco-1.9.0/poco-1.9.0-all.tar.gz

Contributor

  1. Windstamp, https://github.com/windstamp
上一篇 下一篇

猜你喜欢

热点阅读