The installer just copies the header files to the directory $PREFIX/include/yaml-cpp and the library files to $PREFIX/lib/libyaml-cpp.so. ($PREFIX is probably /usr/local)
Just remove the header directory and the library files and it should be uninstalled.
翻译一下这意思就是安装仅仅是将一些头文件拷贝到$PREFIX/include/yaml-cpp;将一些库文件拷贝到$PREFIX/lib,比如libyaml-cpp.so($PREFIX在Ubuntu下一般是/usr/local)。
因此将头文件目录和这些库文件删除掉,那么就算完成了卸载。
然后是yam-cpp的安装,这里说的是利用源码进行安装的方式:
git clone https://github.com/jbeder/yaml-cpp.git
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON ..
make
sudo make install
这样就算完成了yaml-cpp的安装。