Failed to build mod-wsgi-standalone

408 views
Skip to first unread message

João Carlos

unread,
Mar 20, 2021, 4:56:29 PM3/20/21
to modwsgi
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  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 ?

Graham Dumpleton

unread,
Mar 20, 2021, 5:01:34 PM3/20/21
to mod...@googlegroups.com
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:


Also see:


Graham

--
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 modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/24d16f9b-fc41-44bb-a5ed-8b3b115720a7n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages