转自:https://learnku.com/articles/30985 Yaml,专门用来写配置文件的语言 依赖安装 $ sudo apt-get install libyaml-dev 下载源码 $ wget https://pecl.php.net/get/yaml-2.0.4.tgz 编译 $ tar zvxf yaml-2.0.4.tgz $ cd yaml-2
转自:https://learnku.com/articles/30985
Yaml,专门用来写配置文件的语言
依赖安装
$ sudo apt-get install libyaml-dev
下载源码
$ wget https://pecl.php.net/get/yaml-2.0.4.tgz
编译
$ tar zvxf yaml-2.0.4.tgz $ cd yaml-2.0.4 $ phpize $ ./configure --with-php-config=/www/server/php/72/bin/php-config $ sudo make $ sudo make install
配置
extension = yaml.so
验证
$ php -m | grep yaml
输出 yaml
表示成功