过程
yum install php70w-devel php70w-pear zlib-devel curl-devel gcc
yum install libyaml-devel
pecl install yaml-beta
安装好之后,将生成的 yaml.so 加入到 /etc/php.ini
末尾
[root@user basic]# tail -n 10 /etc/php.ini
; attempt to use the OS-managed cert stores in its absence. If specified,
; this value may still be overridden on a per-stream basis via the "capath"
; SSL stream context option.
;openssl.capath=
; Local Variables:
; tab-width: 4
; End:
;
extension=yaml.so
[root@user basic]# php -m | grep yaml
yaml
[root@user basic]#