Installation of Yaml-cpp under Ubuntu

Source: Internet
Author: User
Tags git clone

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.