Installing enchant in php 8.3
I try to install the enchant library for php 8.3 via Software / Module Installers / PHP PECL and I can see it listed for php 8.3. When I try to install it I get:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to
update
downloading enchant-1.1.0.tgz ...
Starting to download enchant-1.1.0.tgz (9,464 bytes)
.....done: 9,464 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version: 20230831
Zend Module Api No: 20230831
Zend Extension Api No: 420230831
libenchant prefix? [shared] : building in /root/tmp/pear/pear-build-rootTnQWiH/enchant-1.1.0
running: /root/tmp/pear/enchant/configure --with-php-config=/opt/cpanel/ea-php83/root/usr/bin/php-co
nfig --with-enchant=shared
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
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 for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /opt/cpanel/ea-php83/root/usr
checking for PHP includes... -I/opt/cpanel/ea-php83/root/usr/include/php -I/opt/cpanel/ea-php83/root
/usr/include/php/main -I/opt/cpanel/ea-php83/root/usr/include/php/TSRM -I/opt/cpanel/ea-php83/root/u
sr/include/php/Zend -I/opt/cpanel/ea-php83/root/usr/include/php/ext -I/opt/cpanel/ea-php83/root/usr/
include/php/ext/date/lib
checking for PHP extension directory... /opt/cpanel/ea-php83/root/usr/lib64/php/modules
checking for PHP installed headers prefix... /opt/cpanel/ea-php83/root/usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking for ENCHANT support... yes, shared
configure: error: Cannot find enchant
ERROR: `/root/tmp/pear/enchant/configure --with-php-config=/opt/cpanel/ea-php83/root/usr/bin/php-con
fig --with-enchant=shared' failed
-
Hey there! Thanks for bringing up this problem with the PECL installer. I confirmed this behavior on a version 124 system so I have created case CPANEL-46063 with our developers so they can investigate this. While I don't have a workaround available at this time I'll be sure to post once I have an update to share.
0 -
I am not sure whether the same version of enchant for php version prior 8.* works with php 8.
See
0 -
I'm not sure, but the team will get that adjusted if necessary!
0 -
Thank you, is there any way I can get help doing it before this is officially resolved? I still use CentOS 7 so I will not be able to avail myself of any official solution in later versions. When I try to submit support request I get: "This cPanel license is supported by OVH." and they are not very helpful with such issues.
0 -
I do see that we have enchant included in EasyApache as well - would that work for you until the PECL issues are resolved?
ea-php72-php-enchant.x86_64 : Enchant spelling extension for PHP applications
ea-php72-php-enchant-debuginfo.x86_64 : Debug information for package ea-php72-php-enchant
ea-php73-php-enchant.x86_64 : Enchant spelling extension for PHP applications
ea-php73-php-enchant-debuginfo.x86_64 : Debug information for package ea-php73-php-enchant
ea-php74-php-enchant.x86_64 : Enchant spelling extension for PHP applications
ea-php74-php-enchant-debuginfo.x86_64 : Debug information for package ea-php74-php-enchant
ea-php80-php-enchant.x86_64 : Enchant spelling extension for PHP applications
ea-php80-php-enchant-debuginfo.x86_64 : Debug information for package ea-php80-php-enchant
ea-php81-php-enchant.x86_64 : Enchant spelling extension for PHP applications
ea-php81-php-enchant-debuginfo.x86_64 : Debug information for package ea-php81-php-enchant
ea-php82-php-enchant.x86_64 : Enchant spelling extension for PHP applications
ea-php82-php-enchant-debuginfo.x86_64 : Debug information for package ea-php82-php-enchant
ea-php83-php-enchant.x86_64 : Enchant spelling extension for PHP applications0 -
It is already installed there. The point is, to have an application work in earlier php version, I used according to my notes RPMS enchant-aspell and hunspell-el via WHM PECL. Not sure how these could be installed now.
1 -
Ah, that makes sense. I don't have a workaround available at this time but our team is looking at that case now.
0
Please sign in to leave a comment.
Comments
7 comments