Skip to main content

youYou should install libyaml-dev, not libyaml. On CentOS, I installinstalled it on centos:with sudo yum install -y libyaml-devel.x86_64.

[vagrant@localhost yaml-1.2.0]$ sudo yum search libyaml
============================================ N/S Matched: libyaml          ============================================
libyaml-devel.i686 : Development files for LibYAML applications
libyaml-devel.x86_64 : Development files for LibYAML applications
libyaml.i686 : YAML 1.1 parser and emitter written in C
libyaml.x86_64 : YAML 1.1 parser and emitter written in C
[vagrant@localhost yaml-1.2.0]$ sudo yum install -y libyaml-devel.x86_64

than I make successfully。

[vagrant@localhost yaml-1.2.0]$ yum search libyaml
============================================
N/S Matched: libyaml
============================================
libyaml-devel.i686 : Development files for LibYAML applications
libyaml-devel.x86_64 : Development files for LibYAML applications
libyaml.i686 : YAML 1.1 parser and emitter written in C
libyaml.x86_64 : YAML 1.1 parser and emitter written in C

you should install libyaml-dev not libyaml. I install it on centos:

[vagrant@localhost yaml-1.2.0]$ sudo yum search libyaml
============================================ N/S Matched: libyaml          ============================================
libyaml-devel.i686 : Development files for LibYAML applications
libyaml-devel.x86_64 : Development files for LibYAML applications
libyaml.i686 : YAML 1.1 parser and emitter written in C
libyaml.x86_64 : YAML 1.1 parser and emitter written in C
[vagrant@localhost yaml-1.2.0]$ sudo yum install -y libyaml-devel.x86_64

than I make successfully。

You should install libyaml-dev, not libyaml. On CentOS, I installed it with sudo yum install -y libyaml-devel.x86_64.

[vagrant@localhost yaml-1.2.0]$ yum search libyaml
============================================
N/S Matched: libyaml
============================================
libyaml-devel.i686 : Development files for LibYAML applications
libyaml-devel.x86_64 : Development files for LibYAML applications
libyaml.i686 : YAML 1.1 parser and emitter written in C
libyaml.x86_64 : YAML 1.1 parser and emitter written in C
Source Link

you should install libyaml-dev not libyaml. I install it on centos:

[vagrant@localhost yaml-1.2.0]$ sudo yum search libyaml
============================================ N/S Matched: libyaml          ============================================
libyaml-devel.i686 : Development files for LibYAML applications
libyaml-devel.x86_64 : Development files for LibYAML applications
libyaml.i686 : YAML 1.1 parser and emitter written in C
libyaml.x86_64 : YAML 1.1 parser and emitter written in C
[vagrant@localhost yaml-1.2.0]$ sudo yum install -y libyaml-devel.x86_64

than I make successfully。