第一步:
Boost
安装yaml-cpp依赖于boost库,确保Boost library已经存在,否则会报错。(yaml-cpp 0.6.0 has been released! This release requires C++11, and no longer depends on Boost.)
使用命令安装
sudo apt-get install libboost-dev
第二步:
yaml-cpp
文件安装
a) 先下克隆代码
GitHub - jbeder/yaml-cpp: A YAML parser and emitter in C++https://github.com/jbeder/yaml-cpp
b) 执行以下几个步骤,别忘了最后一步
cd yaml-cpp # 进入克隆的文件夹
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON ..
make
sudo make install