Do you have 'gcc' installed? You need a compiler installed as the C code for the module needs to be compiled, it is not pure Python code.
Graham > On 28 Aug 2018, at 8:30 am, userneedshelp <[email protected]> wrote: > > Thank you, Graham. Here are the fist 33 lines: > > (env) [myuser@myserver theapp]$ pip install mod_wsgi > Collecting mod_wsgi > Using cached > https://files.pythonhosted.org/packages/9e/37/dd336068ece37c43957aa337f25c59a9a6afa98086e5507908a2d21ab807/mod_wsgi-4.6.4.tar.gz > Installing collected packages: mod-wsgi > Running setup.py install for mod-wsgi ... error > Complete output from command REMOVED/env/bin/python3.6 -u -c "import > setuptools, > tokenize;__file__='/tmp/pip-install-tez0gyxc/mod-wsgi/setup.py';f=getattr(tokenize, > 'open', open)(__file__);code=f.read().replace('\r\n', > '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record > /tmp/pip-record-2onn63ja/install-record.txt > --single-version-externally-managed --compile --install-headers > REMOVED/env/include/site/python3.6/mod-wsgi: > /usr/lib64/python3.6/distutils/dist.py:261: UserWarning: Unknown > distribution option: 'bugtrack_url' > warnings.warn(msg) > running install > running build > running build_py > creating build > creating build/lib.linux-x86_64-3.6 > creating build/lib.linux-x86_64-3.6/mod_wsgi > copying src/__init__.py -> build/lib.linux-x86_64-3.6/mod_wsgi > creating build/lib.linux-x86_64-3.6/mod_wsgi/server > copying src/server/__init__.py -> > build/lib.linux-x86_64-3.6/mod_wsgi/server > copying src/server/environ.py -> > build/lib.linux-x86_64-3.6/mod_wsgi/server > copying src/server/apxs_config.py -> > build/lib.linux-x86_64-3.6/mod_wsgi/server > creating build/lib.linux-x86_64-3.6/mod_wsgi/server/management > copying src/server/management/__init__.py -> > build/lib.linux-x86_64-3.6/mod_wsgi/server/management > creating build/lib.linux-x86_64-3.6/mod_wsgi/server/management/commands > copying src/server/management/commands/runmodwsgi.py -> > build/lib.linux-x86_64-3.6/mod_wsgi/server/management/commands > copying src/server/management/commands/__init__.py -> > build/lib.linux-x86_64-3.6/mod_wsgi/server/management/commands > creating build/lib.linux-x86_64-3.6/mod_wsgi/docs > copying docs/_build/html/__init__.py -> > build/lib.linux-x86_64-3.6/mod_wsgi/docs > creating build/lib.linux-x86_64-3.6/mod_wsgi/images > copying images/__init__.py -> build/lib.linux-x86_64-3.6/mod_wsgi/images > creating build/lib.linux-x86_64-3.6/mod_wsgi/docs/_sources > creating > build/lib.linux-x86_64-3.6/mod_wsgi/docs/_sources/configuration-directives > copying > docs/_build/html/_sources/configuration-directives/WSGIRestrictProcess.rst.txt > -> build/lib.linux-x86_64-3.6/mod_wsgi/docs/_sources/configuration-directives > copying > docs/_build/html/_sources/configuration-directives/WSGILazyInitialization.rst.txt > -> build/lib.linux-x86_64-3.6/mod_wsgi/docs/_sources/configuration-directives > copying > docs/_build/html/_sources/configuration-directives/WSGIAccessScript.rst.txt > -> build/lib.linux-x86_64-3.6/mod_wsgi/docs/_sources/configuration-directives > > Here are the last 14 lines: > > copying docs/_build/html/reporting-bugs.html -> > build/lib.linux-x86_64-3.6/mod_wsgi/docs > copying docs/_build/html/objects.inv -> > build/lib.linux-x86_64-3.6/mod_wsgi/docs > copying images/snake-whiskey.jpg -> > build/lib.linux-x86_64-3.6/mod_wsgi/images > running build_ext > building 'mod_wsgi.server.mod_wsgi-py36' extension > creating build/temp.linux-x86_64-3.6 > creating build/temp.linux-x86_64-3.6/src > creating build/temp.linux-x86_64-3.6/src/server > gcc -pthread -Wno-unused-result -Wsign-compare > -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong > --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic > -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/httpd -IREMOVED/env/include > -I/usr/include/python3.6m -c src/server/wsgi_thread.c -o > build/temp.linux-x86_64-3.6/src/server/wsgi_thread.o -I/usr/include/httpd -I. > -I/usr/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong > --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread > -I/usr/include/apr-1 -I/usr/include/apr-1 > unable to execute 'gcc': No such file or directory > error: command 'gcc' failed with exit status 1 > > ---------------------------------------- > Command "REMOVED/env/bin/python3.6 -u -c "import setuptools, > tokenize;__file__='/tmp/pip-install-tez0gyxc/mod-wsgi/setup.py';f=getattr(tokenize, > 'open', open)(__file__);code=f.read().replace('\r\n', > '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record > /tmp/pip-record-2onn63ja/install-record.txt > --single-version-externally-managed --compile --install-headers > REMOVED/env/include/site/python3.6/mod-wsgi" failed with error code 1 in > /tmp/pip-install-tez0gyxc/mod-wsgi/ > (env) [myuser@myserver theapp]$ > > -- > 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 post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
