• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved How to install YAML extension in PHP 7.2

onlinesolutions

Basic Pleskian
I am getting the following result, despite the fact that libyaml is installed.

[root@odin ~]# /opt/plesk/php/7.2/bin/pecl install yaml
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading yaml-2.0.4.tgz ...
Starting to download yaml-2.0.4.tgz (39,071 bytes)
..........done: 39,071 bytes
8 source files, building
running: phpize
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
Please provide the prefix of libyaml installation [autodetect] :
building in /tmp/pear-build-rootSp5Am6/yaml-2.0.4
running: /tmp/yaml/configure --with-php-config=/opt/plesk/php/7.2/bin/php-config --with-yaml
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/plesk/php/7.2
checking for PHP includes... -I/opt/plesk/php/7.2/include/php -I/opt/plesk/php/7.2/include/php/main -I/opt/plesk/php/7.2/include/php/TSRM -I/opt/plesk/php/7.2/include/php/Zend -I/opt/plesk/php/7.2/include/php/ext -I/opt/plesk/php/7.2/include/php/ext/date/lib
checking for PHP extension directory... /opt/plesk/php/7.2/lib64/php/modules
checking for PHP installed headers prefix... /opt/plesk/php/7.2/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.14.3 (ok)
checking for gawk... gawk
checking whether to enable LibYAML suppot... yes, shared
checking for yaml headers... not found
configure: error: Please install libyaml
ERROR: `/tmp/yaml/configure --with-php-config=/opt/plesk/php/7.2/bin/php-config --with-yaml' failed
[root@odin ~]#
 
Just install libyaml-devel additionally:

# yum install libyaml-devel

and then repeat module installation.
 
Back
Top