Linux installation SCons

Source: Internet
Author: User

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:

    1. TAR-ZXVF python-2.7.3.tgz
    2. CD Python-2.7.3
    3. ./configure
    4. Make
    5. Make install

Linux installation SCons

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.