提交 f6f69d47 编写于 作者: N nicolargo

Update documentation: use setup.py for installation

上级 6be9ae0c
......@@ -2,6 +2,7 @@ Version 1.4
===========
* Goodby StatGrab... Welcome to the PsUtil library !
* No more autotools, use setup.py to install
* Sort by Process name ('p' key)
* Only major stats (CPU, Load and memory) use background colors
* Improve operating system name
......
......@@ -55,25 +55,15 @@ Glances use a standard GNU style installer:
$ tar zxvf glances-1.4.tar.gz
$ cd glances-1.4
$ ./configure
$ make
$ sudo make install
$ sudo python setup.py install
Pre-requisites:
* Python 2.6+ (not tested with Python 3+)
* psutil 0.4.1+ (did NOT work with psutil < 0.2 )
Notes: For Debian and Ubuntu < 12.04
The officials repos only include the psutil version 0.2.1.
You had to install the version 0.4.1 using the following commands:
$ sudo apt-get install python-dev python-pip
$ sudo pip install --upgrade psutil
## Running
Easy:
Easy way (that's all folks !):
$ glances.py
......
......@@ -20,6 +20,32 @@ Le processus de packaging est actuellement en cours sur d'autres distribs, je
vous conseille donc de rechercher Glances sur votre gestionnaire de package
avant de faire une installation depuis les sources.
### Depuis le PPA (pour les systèmes Ubuntu/Mint...)
Arnaud Hartmann (thanks to him !) maintient un PPA avec la dernière version:
Pour installer le PPA:
$ sudo add-apt-repository ppa:arnaud-hartmann/glances-dev
$ sudo apt-get update
Pour installer Glances à partir de ce PPA:
$ sudo apt-get install glances
### Depuis PyPi
PyPi est un gestionnaire officiel des paquets Python.
Il est disponible sous la plupart des distibutions GNU/Linux.
On commence par installer PyPi sur son système (par exemple Debian/Ubuntu):
$ sudo apt-get install python-pip
Puis on installe la dernière version de Glances:
$ sudo pip install glances
### Depuis les sources
Le projet Glances est hébergé sur GitHUB: https://github.com/nicolargo/glances
......@@ -27,47 +53,20 @@ Le projet Glances est hébergé sur GitHUB: https://github.com/nicolargo/glances
Pour l'installer, il suffit de suivre les instructions suivantes depuis un
terminal.
Récupération de la dernière version (1.3.7):
Récupération de la dernière version (1.4):
$ wget https://github.com/downloads/nicolargo/glances/glances-1.3.7.tar.gz
$ wget https://github.com/downloads/nicolargo/glances/glances-1.4.tar.gz
Procédez ensuite à l'installation:
$ tar zxvf glances-1.3.7.tar.gz
$ cd glances-1.3.7
$ ./configure
$ make
$ sudo make install
$ tar zxvf glances-1.4.tar.gz
$ cd glances-1.4
$ sudo python setup.py install
Glances a besoin des dépendances suivantes:
* Python 2.6+ (non testé avec Python 3+)
* libstatgrab 0.16+
* python-statgrab 0.5+ (ne marchera PAS avec python-statgrab 0.4)
Notes specifiques pour une installation sous Debian 6.
Debian Squeeze met à disposition la version 0.4 de python-statgrab.
Il faut donc installer la version 0.5 à la main:
$ sudo apt-get install libstatgrab-dev pkg-config python-dev make
$ wget http://ftp.uk.i-scream.org/sites/ftp.i-scream.org/pub/i-scream/pystatgrab/pystatgrab-0.5.tar.gz
$ tar zxvf pystatgrab-0.5.tar.gz
$ cd pystatgrab-0.5/
$ ./setup.py build
$ sudo ./setup.py install
Notes specifiques pour une installation sous Ubuntu 10.04 et 10.10.
Ces versions d'Ubuntu mettent à disposition la version 0.4 de python-statgrab.
Il faut donc installer la version 0.5 à la main:
$ sudo apt-get update
$ sudo apt-get install pkg-config build-essential autoconf automake python libstatgrab-dev python-all-dev
$ sudo apt-get remove python-statgrab
$ wget http://ftp.uk.i-scream.org/sites/ftp.i-scream.org/pub/i-scream/pystatgrab/pystatgrab-0.5.tar.gz
$ tar zxvf pystatgrab-0.5.tar.gz
$ cd pystatgrab-0.5/
$ ./setup.py build
$ sudo ./setup.py install
## Lancement de Glances
......
......@@ -55,25 +55,15 @@ Glances use a standard GNU style installer:
$ tar zxvf glances-1.4.tar.gz
$ cd glances-1.4
$ ./configure
$ make
$ sudo make install
$ sudo python setup.py install
Pre-requisites:
* Python 2.6+ (not tested with Python 3+)
* psutil 0.4.1+ (did NOT work with psutil < 0.2 )
Notes: For Debian and Ubuntu < 12.04
The officials repos only include the psutil version 0.2.1.
You had to install the version 0.4.1 using the following commands:
$ sudo apt-get install python-dev python-pip
$ sudo pip install --upgrade psutil
## Running
Easy:
Easy way (that's all folks !):
$ glances.py
......
- Packaging for .deb (Debian|Ubuntu|Mint) Linux distributions (contributors needed)
- Packaging for Debian (contributors needed)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册