installing on Centos 8.2 - Apache prerequisite failures

Kurogane

Verified User
Joined
Oct 6, 2019
Messages
65
I'm installing on centos and when is installing apache part throw an error.

Code:
checking if event MPM supports this platform... yes
checking if mpmt_os2 MPM supports this platform... no
checking if prefork MPM supports this platform... yes
checking if WinNT MPM supports this platform... no
checking if worker MPM supports this platform... yes
checking whether to enable mod_http2... checking dependencies
checking for OpenSSL... (cached) yes
  setting MOD_LDFLAGS to "-lssl -lcrypto   -lrt -lcrypt  -lpthread -ldl"
  setting MOD_CFLAGS to ""
  setting MOD_CPPFLAGS to "-DH2_OPENSSL"
checking for nghttp2... checking for user-provided nghttp2 base directory... none
checking for pkg-config along /usr/local/icu/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig... checking for nghttp2 version >= 1.2.1... FAILED
configure: WARNING: nghttp2 version is too old
no
checking whether to enable mod_http2... configure: error: mod_http2 has been requested but can not be built due to prerequisite failures

*** There was an error while trying to configure Apache 2. Check the configure/ap2/configure.apache file

This was due nghttp2 is old, what version DA is using, for what i check is nghttp2 1.42.0 but some reason is using an old binary.
 
I'm installing on centos and when is installing apache part throw an error.

Code:
checking if event MPM supports this platform... yes
checking if mpmt_os2 MPM supports this platform... no
checking if prefork MPM supports this platform... yes
checking if WinNT MPM supports this platform... no
checking if worker MPM supports this platform... yes
checking whether to enable mod_http2... checking dependencies
checking for OpenSSL... (cached) yes
  setting MOD_LDFLAGS to "-lssl -lcrypto   -lrt -lcrypt  -lpthread -ldl"
  setting MOD_CFLAGS to ""
  setting MOD_CPPFLAGS to "-DH2_OPENSSL"
checking for nghttp2... checking for user-provided nghttp2 base directory... none
checking for pkg-config along /usr/local/icu/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig... checking for nghttp2 version >= 1.2.1... FAILED
configure: WARNING: nghttp2 version is too old
no
checking whether to enable mod_http2... configure: error: mod_http2 has been requested but can not be built due to prerequisite failures

*** There was an error while trying to configure Apache 2. Check the configure/ap2/configure.apache file

This was due nghttp2 is old, what version DA is using, for what i check is nghttp2 1.42.0 but some reason is using an old binary.
Which OS is it?
 
Oh, I didn't notice it in the subject. I think it's related to powertools yum repository. I'll try to reproduce it. If you wish - you may send your access details too, I'd check it free of charge.
 
@Kurogane got it reproduced/fixed in CB 2.0 rev. 2638, it should work fine. It was only affecting old versions of CentOS8 (8.2 and lower).
 
Thanks, i confirm working fine.

Sorry to bring another problem here is not related but maybe because same error?

In php part give this error.

Code:
Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/local/lib
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... yes
checking for Kerberos support... yes
checking whether to use system default cipher list instead of hardcoded value... no
checking for krb5-config... /usr/bin/krb5-config
checking for RAND_egd... no
checking for PCRE headers location... /usr/include
checking for PCRE library location... /usr/lib
checking whether to enable PCRE JIT functionality... yes
checking whether to enable the SQLite3 extension... yes
checking bundled sqlite3 library... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for zlib version >= 1.2.0.4... 1.2.11
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... no
checking whether to enable calendar conversion support... yes
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking for cURL in default path... found in /usr
checking for cURL 7.10.5 or greater... libcurl 7.61.1
checking for SSL support in libcurl... yes
.....
.....
.....
checking for GD support... yes
checking for the location of libwebp... /usr/lib64
checking for the location of libjpeg... /usr/lib64
checking for the location of libpng... /usr/lib64
checking for the location of libXpm... no
checking for FreeType 2... /usr/lib64
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for WebPGetInfo in -lwebp... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
checking for fabsf... yes
checking for floorf... yes
checking for GNU gettext support... yes
checking for bindtextdomain in -lintl... no
checking for bindtextdomain in -lc... yes
checking for ngettext in -lc... yes
checking for dngettext in -lc... yes
checking for dcngettext in -lc... yes
checking for bind_textdomain_codeset in -lc... yes
checking for GNU MP support... no
checking for mhash support... yes
checking whether to enable hash support... yes
checking whether byte ordering is bigendian... (cached) no
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of long long... (cached) 8
checking for iconv support... yes
checking for iconv... yes
checking if iconv is glibc's... yes
checking if iconv supports errno... yes
checking if iconv supports //IGNORE... no
checking if your cpp allows macro usage in include lines... yes
checking for IMAP support... no
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... no
checking for Firebird support... no
checking whether to enable internationalization support... yes
checking for location of ICU headers and libraries... /usr
checking for ICU 4.0 or greater... found 60.3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking whether to enable JavaScript Object Serialization support... yes
checking for ANSI C header files... (cached) yes
checking for LDAP support... no
checking for LDAP Cyrus SASL support... no
checking whether to enable multibyte string support... yes
checking whether to enable multibyte regex support... yes
checking whether to check multibyte regex backtrack... yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for working memcmp... yes
checking for stdarg.h... (cached) yes
checking for mcrypt support... yes
configure: error: mcrypt.h not found. Please reinstall libmcrypt.

This is for php 7.0 and i think is only affect this and older version
 
Please reinstall libmcrypt.
I remember mcrypt is outdated and is not in centos8 as base
You might try epel. Search for install mcrypt centos8

But you should not even be using php7 or mcrypt.

Maybe you have some custom setting in the php config?
 
This is fresh install so not custom setting
2599 - Auto-install mcrypt if not installed for PHP <7.2.
 
I can't use because is a new install but i tested in other server and that command not exist.

Also, i'm trying to looking in build binary, i not see anything about rev 2599 and mcrypt mentions.
 
Last edited:
With me finding all the FreeBSD items. We will have cb back to full operational glory soon..
 
@Kurogane got it reproduced/fixed in CB 2.0 rev. 2638, it should work fine. It was only affecting old versions of CentOS8 (8.2 and lower).

I also get the error on an empty installation of centos 8.3

checking for nghttp2... checking for user-provided nghttp2 base directory... none
checking for pkg-config along /usr/local/icu/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig... checking for nghttp2 version >= 1.2.1... FAILED
configure: WARNING: nghttp2 version is too old
no
checking whether to enable mod_http2... configure: error: mod_http2 has been requested but can not be built due to prerequisite failures

*** There was an error while trying to configure Apache 2. Check the configure/ap2/configure.apache file


Operating System: CentOS Linux 8
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 4.18.0-240.1.1.el8_3.x86_64
Architecture: x86-64
 
I also get the error on an empty installation of centos 8.3
Yep me too on a fresh RHEL 8.3 install - says "checking for nghttp2 version >= 1.2.1... FAILED configure: WARNING: nghttp2 version is too old" but libnghttp2 is version 1.33.0-3.
 
I think I fixed it! Needed to install libnghttp2-devel from the CodeReady repo (powertools on CentOS) and the install looks like it's running fine now - fingers crossed nothing else goes wrong.

Edit: it installed fine 🥂🎉
 
Last edited:
Back
Top