mod_wsgi-4.8.0 compile and install

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1336
Joined: Sun Aug 17, 2008 5:05 am

mod_wsgi-4.8.0 compile and install

Post 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.
CAH, The Great
Post Reply