Page 1 of 1

mod_wsgi-4.8.0 compile and install

Posted: Mon Jul 19, 2021 10:57 pm
by cah
Before compiling mos_wsgi-4.8.0, I had to recompile/reinstall python3.9 with "--enable-shared" in configure command to create a "libpython3.9.so" on top of "libpython3.9.a". Without libpython3.9.so, the compile will fail

Download the latest tar.gz from https://github.com/GrahamDumpleton/mod_wsgi/releases

Code: Select all

# tar xvfz mod_wsgi-4.8.0.tar.gz
# cd mod_wsgi-4.8.0
# configure --with-apxs=/usr/local/apache2/bin/apxs --with-python=/usr/local/bin/python3.9
# make
# make install
...
...
libtool: finish: PATH="/usr/local/bin:/sbin:/usr/sbin:/home/www/bin:/etc:/usr/bin:./:/usr/openwin/bin:/opt/bin:/usr/sfw/bin:/usr/local/ssh/bin:/root/bin/script:/usr/ccs/bin:/usr/local/ssl/bin:/opt/sfw/bin:/opt/sfw/sbin:/sbin" ldconfig -n /usr/local/apache2.4.25/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/apache2.4.25/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/local/apache2.4.25/modules/mod_wsgi.so
Installation puts mod_wsgi.so in /usr/local/apache2/modules.