Since the code to learn is used in the Yaml-cpp, the installation process is documented here, translated from: StackOverflow.
About Yaml-cpp You can take a look at Yaml,yaml-cpp to find out.
First, delete the original Yaml-cpp library locally:
The installer just copies the header files to the directory and the $PREFIX/include/yaml-cpp
library files to $PREFIX/lib/libyaml-cpp.so
. (is $PREFIX
probably /usr/local
)
Just remove the header directory and the library files and it should be uninstalled.
This means that the installation simply copies some of the header files to$PREFIX/include/yaml-cpp;将一些库文件拷贝到$PREFIX/lib,比如libyaml-cpp.so($PREFIX
在Ubuntu下一般是/usr/local)。
Therefore, the header file directory and these library files are deleted, even if the uninstallation is completed.
Then is the installation of Yam-cpp, here is the use of the source code to install the way:
git clone https://github.com/jbeder/yaml-cpp.git-dbuild_shared_libs= on. Makesudo make install
This completes the installation of the yaml-cpp.
Installation of Yaml-cpp under Ubuntu