I am following the installation of Basics of YAML Parsing in PHP to install YAML for PHP in Fedora 20.
I went through all these steps:
wget http://pecl.php.net/get/yaml-1.1.0.tgz
tar -xvzf yaml-1.1.0.tgz
cd yaml-1.1.0
phpize
./configure && make && make install
But the last one does not work:
# ./configure && make && make install
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
.../...
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable LibYAML suppot... yes, shared
checking for yaml headers... not found
configure: error: Please install libyaml
As I get the "Please install libyaml", I checked whether it is installed... and it is!
# yum list installed | grep yaml
libyaml.x86_64 0.1.6-1.fc20 @updates
yaml-cpp03.x86_64 0.3.0-4.fc20 @anaconda
And of course if I create a php file with a call to yaml_parse_file()
, I get the error:
Fatal error: Call to undefined function yaml_parse_file() in XXXfile on line YYY
What can be missing?