Hello,
On Redhat 7.9 server we have currently runnign Python 3.8 with wsgi.
I wanted to install also Python 3.10 and I build it from source. Then tried to install mod_wsgi by using pip but got the below error:
RuntimeError: The 'apxs' command appears not to be installed or is not executable. Please check the list of prerequisites in the documentation for this package and install any missing Apache httpd server packages
I tired also to build it from source but got again the same error:
./configure
checking for apxs2... no
checking for apxs... no
configure: error: Apache tool 'apxs' or 'apxs2' is required to build mod_wsgi.
As you can see httpd24-httpd and httpd24-httpd-devel are already installed and also tried to reinstall them (previous version of mod_wsgi was also succesfully installed)
yum list httpd24-httpd*
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Installed Packages
httpd24-httpd.x86_64 2.4.34-23.el7.5 @rhel-server-rhscl-7-rpms
httpd24-httpd-devel.x86_64 2.4.34-23.el7.5 @rhel-server-rhscl-7-rpms
httpd24-httpd-tools.x86_64 2.4.34-23.el7.5 @rhel-server-rhscl-7-rpms
Available Packages
httpd24-httpd-manual.noarch 2.4.34-23.el7.5 rhel-server-rhscl-7-rpms
I used following commands in order to build python 3.10
yum update
yum install openssl-devel bzip2-devel libffi-devel
Do you have any idea what could be wrong?
Thank you in advance,
Nadia