SCons is a python-written automated build tool that python and scons need to be installed before they can run and cross-platform . its integrated functionality is similar to Autoconf/automake and is a simple and reliable tool. Many systems now come with Python, so you can install scons directly.
(This document is for logging only)
Installing SCons
1. Preparatory work
Check that there's a wooden python on the system.
Command: python-v or Python--version
2 installation on UBUNTN
sudo apt-get install scons
3 in red Hat
In Red Hat Linux,fedora or any other Linux distribution using RPM (Red Hat package Manager), SCons is a pre-compiled RPM format ready to be installed. Your distribution may already contain a precompiled scons RPM. If your distribution supports Yum installation, you can run the following command to install SCons: #yum installed scons If your Linux distribution does not contain a specific scons rpm file, you can download the generic RPM provided by the SCons project to install it (: http ://www.scons.org/download.php). This installs the SCons script to the/usr/bin directory, and installs the SCons Library module (libraries modules) to/usr/lib/scons. Install from the command line, download the appropriate. rpm file, and then run:
#rpm-UVH scons-2.2.0-1.noarch.rpm
4 Compiling and installing scons in any system
If you do not have a precompiled SCons package in your system, you can easily compile and install scons using the native Python distutils package.
Download scons-2.2.0.tar.gz (note that it relies on Python version if more than 2.5, attached below Python installation)
Unzip the downloaded file, will create a directory called scons-2.2.0, enter this directory to perform the following command installation scons: #cd scons-2.2.0#python setup.py Install
This compiles scons, installs the SCons script to the Python directory (/usr/local/bin), and installs the SCons compilation engine to the Library directory (/usr/local/lib/scon) used by Python. You may need root privileges during the installation process.
Report:
python:http://www.python.org/getit/
If you overwrite the previous version directly, execute the following command:
- TAR-ZXVF python-2.7.3.tgz
- CD Python-2.7.3
- ./configure
- Make
- Make install
Linux installation SCons