Skip to content

Instantly share code, notes, and snippets.

@michael-grunder
Created April 2, 2021 17:08
Show Gist options
  • Save michael-grunder/8af39895b81770fb4b638a820267537c to your computer and use it in GitHub Desktop.
Save michael-grunder/8af39895b81770fb4b638a820267537c to your computer and use it in GitHub Desktop.
Install pecl yaml
#
# 1) One-liner assuming you installed libyaml via brew
#
echo $(brew --prefix libyaml)|sudo pecl install yaml
#
# 2) Pass --with-yaml directly to ./configure
#
# Download, unpack and CD into yaml directory
pecl download yaml && tar xf yaml-2.2.1.tgz && cd yaml-2.2.1
# Actually pass the libyaml prefix to configure
phpize && ./configure --with-yaml=$(brew --prefix libyaml) && make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment