PHP安装yaml模块报错configure: error: Please install libyaml

问题:

configure: error: Please install libyaml

解决方法,安装libyaml

https://github.com/yaml/libyaml/archive/0.2.5.tar.gz

tar xf 0.2.5.tar.gz

cd libyaml-0.2.5.tar.gz
./bootstrap
./configure
make
make install

再安装yaml

wget http://pecl.php.net/get/yaml-2.0.4.tgz

tar -zxvf yaml-2.0.4.tgz
cd yaml-2.0.4
phpize
./configure --with-php-config=/usr/local/php7.3/bin/php-config
make && make install

  

  

  

posted @ 2023-03-07 20:42  lucky_tomato  阅读(203)  评论(0编辑  收藏  举报