Installing Python
Procedure
- Use PuTTY to log in to the server as the root user.
- Upload the Python source package to the path/to/PYTHON directory.
- Decompress the Python installation package.
cd /path/to/PYTHON tar -zxvf Python-2.5.tgz
- Go to the directory generated after the decompression.
cd Python-2.5
- Perform the configuration.
SVNVERSION=not-found ./configure --prefix=path/to/PYTHON
- Perform the compilation and installation.
make -j 16 make install
- Set the Python environment variable.
export PATH=path/to/PYTHON/bin:$PATH
Parent topic: Configuring the Compilation Environment