As mentioned in that doc: On Linux systems, if Apache has been installed from a package repository, you must have installed the corresponding Apache “dev” package as well.
For most Linux distributions, the “dev” package for Apache 2.X is “apache2-dev” where the corresponding Apache package was “apache2”. Some systems however distinguish the “dev” package based on which MPM is used by Apache. As such, it may also be called “apache2-worker-dev” or “apache2-prefork-dev”. If using Apache 2.X, do not mix things up and install “apache-dev” by mistake, which is the “dev” package for Apache 1.3 called just “apache”. Or as more explicitly described in: * https://pypi.org/project/mod_wsgi/ <https://pypi.org/project/mod_wsgi/> If you are running Debian or Ubuntu Linux with Apache 2.2 system packages, and were using the Apache prefork MPM you would need both: • apache2-mpm-prefork • apache2-prefork-dev If instead you were using the Apache worker MPM, you would need both: • apache2-mpm-worker • apache2-threaded-dev If you are running Debian or Ubuntu Linux with Apache 2.4 system packages, regardless of which Apache MPM is being used, you would need both: • apache2 • apache2-dev If you are running RHEL, CentOS or Fedora, you would need both: • httpd • httpd-devel If you are using the Software Collections Library (SCL) packages with RHEL, CentOS or Fedora, you would need: • httpd24 • httpd24-httpd-devel If you are running MacOS X, Apache is supplied with the operating system. If running a recent MacOS X version, you will though need to have the Xcode command line tools installed as well as the Xcode application. The command line tools can be installed by running xcode-select --install. The Xcode application can be installed from the MacOS X App Store. If you are using older MacOS X versions, you may be able to get away with having just the command line tools. So install the required dev package. I would suggest you look through the PyPi page and also consider using the 'pip install' method. That usually works better with Anaconda Python. Graham > On 4 Jun 2018, at 7:42 pm, Jacco van Dorp <j.van.d...@deonet.nl> wrote: > > Hello everyone, > > I got the tarball from https://github.com/GrahamDumpleton/mod_wsgi/releases, > wsgi 4.6.4. > > At this step: > https://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html#building-the-source-code > > I get an error message not covered in the linked Installation issues: > > [Entire output running make] > apxs -c -I/home/deonet/miniconda3/include/python3.6m -DNDEBUG -Wc,-g -Wc,-O2 > src/server/mod_wsgi.c src/server/wsgi_*.c -L/home/deonet/miniconda3/lib > -L/home/deonet/miniconda3/lib/python3.6/config-3.6m -lpython3.6m -lpthread > -ldl -lutil -lrt -lm > /bin/sh: 1: apxs: not found > make: *** [src/server/mod_wsgi.la] Error 127 > > This is remniscent of the error here: > https://modwsgi.readthedocs.io/en/develop/user-guides/installation-issues.html#mixing-32-bit-and-64-bit-packages > , but doesn't look the same to me. > > It looks like the apxs command is not available, instead of that one about it > failing. > > I'm attempting to add a python website in addition to a normal php one. Under > the same apache. afaik, that shouldn't interfere with installation. Apache is > running while im installing everything. > > I'd like to add that i'm new to both apache, linux, and apache-like programs > in general. Therefore, if there's a possible solution that's "so obvious it's > not worth mentioning", please mention it. I'm probably looking for it. > > Boring system information: > Attempting to use wsgi 4.6.4 > using python 3.6.5 (using: --with-python=/home/deonet/miniconda3/bin/python3 ) > - Running that path directly gets me into the interpreter as expected > Apache -V: Server version: Apache/2.2.22 (Ubuntu) > system uname -a: Linux DEOPRICE 3.5.0-54-generic #81~precise1-Ubuntu SMP Tue > Jul 15 04:05:58 UTC 2014 i686 i686 i386 GNU/Linux > > Thank you for your attention in advance. > > -- > 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+unsubscr...@googlegroups.com > <mailto:modwsgi+unsubscr...@googlegroups.com>. > To post to this group, send email to modwsgi@googlegroups.com > <mailto:modwsgi@googlegroups.com>. > 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 modwsgi+unsubscr...@googlegroups.com. To post to this group, send email to modwsgi@googlegroups.com. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.