Categories
General

How to install ext-yaml on Mac?

How to solve following problem ?

Problem 2
– Root composer.json requires PHP extension ext-yaml * but it is missing from your system. Install or enable PHP’s yaml extension.
Problem 3
– Root composer.json requires fourover/sdk 0.1.3 -> satisfiable by fourover/sdk[v0.1.3].
– fourover/sdk v0.1.3 requires ext-yaml * -> it is missing from your system. Install or enable PHP’s yaml extension.

Execute 2 commands below

brew install libyaml
pecl install libyam
l

Result of the execution of the commands above

Build process completed successfully
Installing '/usr/local/Cellar/[email protected]/8.0.21/pecl/20200930/yaml.so'
install ok: channel://pecl.php.net/yaml-2.2.2
Extension yaml enabled in php.ini

Leave a Reply