Also send me the contents of the file:
$HOME/lib/python2.7/site-packages/mod_wsgi-httpd/mod_wsgi/httpd/build/config_vars.mk
If that file does exist because your Python install has installed it in a
slightly different location, find where the config_vars.mk file is by running:
find lib/python/2.7 -name config_vars.mk
Graham
On 06/02/2015, at 9:28 PM, Graham Dumpleton <[email protected]> wrote:
> What do you get when you run:
>
> mod_wsgi-apxs -q INCLUDEDIR
> mod_wsgi-apxs -q CPPFLAGS
> mod_wsgi-apxs -q CFLAGS
> mod_wsgi-apxs -q EXTRA_INCLUDES
> mod_wsgi-apxs -q EXTRA_CPPFLAGS
> mod_wsgi-apxs -q EXTRA_CFLAGS
>
> Graham
>
> On 05/02/2015, at 11:47 PM, Paul Royik <[email protected]> wrote:
>
>> I've got error from first step pip2.7 install -U
>> https://github.com/GrahamDumpleton/mod_wsgi/archive/develop.zip
>>
>>
>> Collecting https://github.com/GrahamDumpleton/mod_wsgi/archive/develop.zip
>> Downloading
>> https://github.com/GrahamDumpleton/mod_wsgi/archive/develop.zip (675kB)
>> 100% |################################| 675kB 5.1MB/s
>> Installing collected packages: mod-wsgi
>> Found existing installation: mod-wsgi 4.4.7
>> Uninstalling mod-wsgi-4.4.7:
>> Successfully uninstalled mod-wsgi-4.4.7
>> Running setup.py install for mod-wsgi
>> building 'mod_wsgi.server.mod_wsgi-py27' extension
>> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
>> -Wstrict-prototypes -fPIC -I -I/usr/local/include/python2.7 -c
>> src/server/wsgi_restrict.c -o
>> build/temp.linux-x86_64-2.7/src/server/wsgi_restrict.o
>> In file included from src/server/wsgi_restrict.h:24,
>> from src/server/wsgi_restrict.c:21:
>> src/server/wsgi_python.h:24:20: error: Python.h: No such file or
>> directory
>> src/server/wsgi_python.h:27:2: error: #error Sorry, Python developer
>> package does not appear to be installed.
>> src/server/wsgi_python.h:31:2: error: #error Sorry, mod_wsgi requires at
>> least Python 2.3.0 for Python 2.X.
>> src/server/wsgi_python.h:39:2: error: #error Sorry, mod_wsgi requires
>> that Python supporting thread.
>> src/server/wsgi_python.h:42:26: error: structmember.h: No such file or
>> directory
>> src/server/wsgi_python.h:43:21: error: compile.h: No such file or
>> directory
>> src/server/wsgi_python.h:44:18: error: node.h: No such file or directory
>> src/server/wsgi_python.h:45:20: error: osdefs.h: No such file or
>> directory
>> src/server/wsgi_python.h:46:25: error: frameobject.h: No such file or
>> directory
>> In file included from src/server/wsgi_restrict.c:21:
>> src/server/wsgi_restrict.h:31: error: expected specifier-qualifier-list
>> before Б─≤PyObject_HEADБ─≥
>> src/server/wsgi_restrict.h:35: error: expected Б─≤=Б─≥, Б─≤,Б─≥,
>> Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤Restricted_TypeБ─≥
>> src/server/wsgi_restrict.c:25: error: expected Б─≤=Б─≥, Б─≤,Б─≥,
>> Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤Restricted_TypeБ─≥
>> src/server/wsgi_restrict.c: In function Б─≤newRestrictedObjectБ─≥:
>> src/server/wsgi_restrict.c:31: warning: implicit declaration of function
>> Б─≤PyObject_NewБ─≥
>> src/server/wsgi_restrict.c:31: error: expected expression before
>> Б─≤RestrictedObjectБ─≥
>> src/server/wsgi_restrict.c:32: error: Б─≤NULLБ─≥ undeclared (first use
>> in this function)
>> src/server/wsgi_restrict.c:32: error: (Each undeclared identifier is
>> reported only once
>> src/server/wsgi_restrict.c:32: error: for each function it appears in.)
>> src/server/wsgi_restrict.c:35: error: Б─≤RestrictedObjectБ─≥ has no
>> member named Б─≤sБ─≥
>> src/server/wsgi_restrict.c: In function Б─≤Restricted_deallocБ─≥:
>> src/server/wsgi_restrict.c:42: warning: implicit declaration of function
>> Б─≤PyObject_DelБ─≥
>> src/server/wsgi_restrict.c: At top level:
>> src/server/wsgi_restrict.c:45: error: expected Б─≤=Б─≥, Б─≤,Б─≥,
>> Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
>> src/server/wsgi_restrict.c:52: error: expected Б─≤=Б─≥, Б─≤,Б─≥,
>> Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤Restricted_TypeБ─≥
>> error: command 'gcc' failed with exit status 1
>> Complete output from command /usr/local/bin/python2.7 -c "import
>> setuptools,
>> tokenize;__file__='/tmp/pip-sbKbzx-build/setup.py';exec(compile(getattr(tokenize,
>> 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
>> install --record /tmp/pip-LJTMIQ-record/install-record.txt
>> --single-version-externally-managed --compile:
>> running install
>>
>> running build
>>
>> running build_py
>>
>> creating build
>>
>> creating build/lib.linux-x86_64-2.7
>>
>> creating build/lib.linux-x86_64-2.7/mod_wsgi
>>
>> copying src/__init__.py -> build/lib.linux-x86_64-2.7/mod_wsgi
>>
>> creating build/lib.linux-x86_64-2.7/mod_wsgi/server
>>
>> copying src/server/apxs_config.py ->
>> build/lib.linux-x86_64-2.7/mod_wsgi/server
>>
>> copying src/server/__init__.py ->
>> build/lib.linux-x86_64-2.7/mod_wsgi/server
>>
>> creating build/lib.linux-x86_64-2.7/mod_wsgi/server/management
>>
>> copying src/server/management/__init__.py ->
>> build/lib.linux-x86_64-2.7/mod_wsgi/server/management
>>
>> creating build/lib.linux-x86_64-2.7/mod_wsgi/server/management/commands
>>
>> copying src/server/management/commands/runmodwsgi.py ->
>> build/lib.linux-x86_64-2.7/mod_wsgi/server/management/commands
>>
>> copying src/server/management/commands/__init__.py ->
>> build/lib.linux-x86_64-2.7/mod_wsgi/server/management/commands
>>
>> creating build/lib.linux-x86_64-2.7/mod_wsgi/docs
>>
>> copying docs/_build/html/__init__.py ->
>> build/lib.linux-x86_64-2.7/mod_wsgi/docs
>>
>> creating build/lib.linux-x86_64-2.7/mod_wsgi/images
>>
>> copying images/__init__.py -> build/lib.linux-x86_64-2.7/mod_wsgi/images
>>
>> copying images/snake-whiskey.jpg ->
>> build/lib.linux-x86_64-2.7/mod_wsgi/images
>>
>> running build_ext
>>
>> building 'mod_wsgi.server.mod_wsgi-py27' extension
>>
>> creating build/temp.linux-x86_64-2.7
>>
>> creating build/temp.linux-x86_64-2.7/src
>>
>> creating build/temp.linux-x86_64-2.7/src/server
>>
>> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
>> -Wstrict-prototypes -fPIC -I -I/usr/local/include/python2.7 -c
>> src/server/wsgi_restrict.c -o
>> build/temp.linux-x86_64-2.7/src/server/wsgi_restrict.o
>>
>> In file included from src/server/wsgi_restrict.h:24,
>>
>> from src/server/wsgi_restrict.c:21:
>>
>> src/server/wsgi_python.h:24:20: error: Python.h: No such file or
>> directory
>>
>> src/server/wsgi_python.h:27:2: error: #error Sorry, Python developer
>> package does not appear to be installed.
>>
>> src/server/wsgi_python.h:31:2: error: #error Sorry, mod_wsgi requires at
>> least Python 2.3.0 for Python 2.X.
>>
>> src/server/wsgi_python.h:39:2: error: #error Sorry, mod_wsgi requires
>> that Python supporting thread.
>>
>> src/server/wsgi_python.h:42:26: error: structmember.h: No such file or
>> directory
>>
>> src/server/wsgi_python.h:43:21: error: compile.h: No such file or
>> directory
>>
>> src/server/wsgi_python.h:44:18: error: node.h: No such file or directory
>>
>> src/server/wsgi_python.h:45:20: error: osdefs.h: No such file or
>> directory
>>
>> src/server/wsgi_python.h:46:25: error: frameobject.h: No such file or
>> directory
>>
>> In file included from src/server/wsgi_restrict.c:21:
>>
>> src/server/wsgi_restrict.h:31: error: expected specifier-qualifier-list
>> before Б─≤PyObject_HEADБ─≥
>>
>> src/server/wsgi_restrict.h:35: error: expected Б─≤=Б─≥, Б─≤,Б─≥,
>> Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤Restricted_TypeБ─≥
>>
>> src/server/wsgi_restrict.c:25: error: expected Б─≤=Б─≥, Б─≤,Б─≥,
>> Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤Restricted_TypeБ─≥
>>
>> src/server/wsgi_restrict.c: In function Б─≤newRestrictedObjectБ─≥:
>>
>> src/server/wsgi_restrict.c:31: warning: implicit declaration of function
>> Б─≤PyObject_NewБ─≥
>>
>> src/server/wsgi_restrict.c:31: error: expected expression before
>> Б─≤RestrictedObjectБ─≥
>>
>> src/server/wsgi_restrict.c:32: error: Б─≤NULLБ─≥ undeclared (first use
>> in this function)
>>
>> src/server/wsgi_restrict.c:32: error: (Each undeclared identifier is
>> reported only once
>>
>> src/server/wsgi_restrict.c:32: error: for each function it appears in.)
>>
>> src/server/wsgi_restrict.c:35: error: Б─≤RestrictedObjectБ─≥ has no
>> member named Б─≤sБ─≥
>>
>> src/server/wsgi_restrict.c: In function Б─≤Restricted_deallocБ─≥:
>>
>> src/server/wsgi_restrict.c:42: warning: implicit declaration of function
>> Б─≤PyObject_DelБ─≥
>>
>> src/server/wsgi_restrict.c: At top level:
>>
>> src/server/wsgi_restrict.c:45: error: expected Б─≤=Б─≥, Б─≤,Б─≥,
>> Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
>>
>> src/server/wsgi_restrict.c:52: error: expected Б─≤=Б─≥, Б─≤,Б─≥,
>> Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤Restricted_TypeБ─≥
>>
>> error: command 'gcc' failed with exit status 1
>>
>> ----------------------------------------
>> Rolling back uninstall of mod-wsgi
>> Command "/usr/local/bin/python2.7 -c "import setuptools,
>> tokenize;__file__='/tmp/pip-sbKbzx-build/setup.py';exec(compile(getattr(tokenize,
>> 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
>> install --record /tmp/pip-LJTMIQ-record/install-record.txt
>> --single-version-externally-managed --compile" failed with error code 1 in
>> /tmp/pip-sbKbzx-build
>>
>>
>> --
>> 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 http://groups.google.com/group/modwsgi.
>> For more options, visit 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 http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.