Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal error: yaml-cpp/yaml.h: No such file or directory

Tags:

c++

qt

yaml-cpp

I am trying to compile my own c++/qt5.2 app which uses yaml-cpp under Ubuntu 14.04.

While issuing the make command I get the following error

fatal error: yaml-cpp/yaml.h: No such file or directory

on the line:

#include <yaml-cpp/yaml.h>

How can I fix this?

like image 893
user1251007 Avatar asked May 14 '14 13:05

user1251007


1 Answers

You need to install the yaml-cpp library.

Under Ubuntu 14.04 you can do this by simply running one of the following commands in a terminal window (depending one the API you use):

sudo apt-get install libyaml-cpp-dev

or

sudo apt-get install libyaml-cpp0.3-dev

See the yaml-cpp project page for other operating systems and differences between old (0.3) and new API.

like image 164
user1251007 Avatar answered Nov 03 '22 06:11

user1251007