1.从官网git下载最新的poco源代码
在/usr/local路径下创建Poco文件夹,克隆Poco源代码
sudo git clone -b poco-1.13.3-release https://github.com/pocoproject/poco.git
2.等了一会后,报错啦!!!
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 3966 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
解决办法如下:
git config --global http.postBuffer 600000
再重新克隆一下,就解决啦~
3.编译
cd poco/
sudo mkdir cmake-build
sudo cmake ..
cmake --build . --target install
4.安装
sudo cmake --build . --target install
安装效果如下,等待就好