Linux安装php yaml扩展
1、首先得安装libyaml
git clone https://github.com/yaml/libyaml
./bootstrap
./configure
make
make install
2、安装扩展 php5.6版本
wget http://pecl.php.net/get/yaml-1.3.2.tgz
tar -axvf yaml-1.3.2.tgz
cd yaml-1.3.2
phpize
./configure --with-php-config=/usr/bin/php-config
make && make install
mkdir /etc/php.d
vim /etc/php.d/yaml.ini
extension=yaml.so