Install Python 3
1. Preparing The System
Update system default applications:
Install required packages for building python:
yum install openssl-devel sqlite-devel gcc wget
2. Build python 3 from source code
Download latest stable Python 3 source code files from https://www.python.org/downloads/source/. MiaRecWeb was tested with Python v.3.4
Extract source code:
tar -xzvf Python-3.*.tgz
Build Python binaries:
cd Python-3* ./configure --enable-shared make
--enable-shared is necessary in order to create shared library *.so files, which will be used later when compiling Apache mod_wsgi module.
3. Install Python
Normally, one would use “make install”; however, in order not to override system defaults - replacing the Python already used by the system - we will use make altinstall.
This will install python into /usr/local/bin with name, which contains version, like
4. Add Python shared libraries to PATH
By default Python installed *.so files into
On some RedHat-based systems this directory is not searched when loading shared libraries.
To fix that, you need to edit file
usr_local_lib.conf to the fiin directory
Add the following line to that file: