Author Topic: Installation of PHP 7.4 fail with Version Switcher (Centos 8)  (Read 4901 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Installation of PHP 7.4 fail with Version Switcher (Centos 8)
« on: December 19, 2020, 04:15:06 PM »
Hi,

I am trying to install PHP 7.4 from "Version Switcher" panel but the compiler shows an error every time:

Code: [Select]
...
Dependencies resolved.
Nothing to do.
Complete!
...
buildconf: Run ./configure to proceed with customizing the PHP build.
configure: WARNING: unrecognized options: --enable-zip, --enable-wddx, --with-mcrypt, --with-gd, --with-jpeg-dir, --with-png-dir, --with-xpm-dir, --with-freetype-dir, --enable-gd-native-ttf
...
checking for re2c... no
configure: error: re2c 0.13.4 is required to generate PHP lexers.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
Redirecting to /bin/systemctl restart httpd.service

Build Completed
###################

This is a non-production server Centos 8. Default php 5.6 version

Any tips?  :-\

Offline
*
Re: Installation of PHP 7.4 fail with Version Switcher (Centos 8)
« Reply #1 on: December 20, 2020, 10:53:27 AM »
According to the log, the program re2c is not installed. Try installing it via cwp terminal:
yum install -y re2c