The message tells you what you need to do.

"""
  It is highly recommended
  that you reinstall the Python installation being used from source code,
  supplying the '--enable-shared' option to the 'configure' script when
  configuring the source code prior to building and installing it
"""

The problem is that the Python installation you created the virtual environment 
from must have been installed by you from source code and not using an existing 
system binary package. In building it from source code you didn't configure it 
so it would create a shared library.

For details on enabling creation of a shared library and other tips about 
building Python from source code yourself, see:

http://blog.dscpl.com.au/2015/06/installing-custom-python-version-into.html 
<http://blog.dscpl.com.au/2015/06/installing-custom-python-version-into.html>

Also see:

https://modwsgi.readthedocs.io/en/master/user-guides/installation-issues.html#mixing-32-bit-and-64-bit-packages
 
<https://modwsgi.readthedocs.io/en/master/user-guides/installation-issues.html#mixing-32-bit-and-64-bit-packages>

Graham

> On 21 Mar 2021, at 1:04 am, João Carlos <[email protected]> wrote:
> 
> I'm trying to configure mod_wsgi with apache in a virtual environment by 
> applying the command (pip install mod_wsgi-standalone) as per the 
> documentation <https://pypi.org/project/mod-wsgi/>  but I run into the 
> following problem :
> 
> Building wheel for mod-wsgi-standalone (PEP 517) ... error
> 
> ERROR: Command errored out with exit status 1:
>    command: /home/joao/.virtualenvs/kws/bin/python 
> /home/joao/.virtualenvs/kws/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py
>  build_wheel /tmp/tmpj81kyrf1
>        cwd: 
> /tmp/pip-install-zpx12xpg/mod-wsgi-standalone_fb9012f935524a77bd05f034639de925
>   Complete output (181 lines):
>   
>   WARNING: The Python installation you are using does not appear to have
>   been installed with a shared library, or in the case of MacOS X, as a
>   framework. Where these are not present, the compilation of mod_wsgi may
>   fail, or if it does succeed, will result in extra memory being used by
>   all processes at run time as a result of the static library needing to
>   be loaded in its entirety to every process. It is highly recommended
>   that you reinstall the Python installation being used from source code,
>   supplying the '--enable-shared' option to the 'configure' script when
>   configuring the source code prior to building and installing it . . .
> 
> How can I solve ?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/24d16f9b-fc41-44bb-a5ed-8b3b115720a7n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/24d16f9b-fc41-44bb-a5ed-8b3b115720a7n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/B937E728-8279-487A-96B0-4CE844860796%40gmail.com.

Reply via email to