Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation #5

Closed
ghost opened this issue Dec 5, 2011 · 37 comments
Closed

Installation #5

ghost opened this issue Dec 5, 2011 · 37 comments

Comments

@ghost
Copy link

ghost commented Dec 5, 2011

Merci d'avoir combler ce vide dans les stats système !

Après le make install glances.py m'affiche dans la console :

http://pastebin.com/t34nXe3f

@nicolargo
Copy link
Owner

Cela ressemble au bug si tu utilises la version 0.4 de python-statgrab.

Dans la documentation il est expliqué comment installer la version 0.5.

Tu es sur quel version d'OS ?

@ghost
Copy link
Author

ghost commented Dec 5, 2011

Ubuntu serveur 10.04 LTS

Je test de faire la manip' pour debian.

Merci de ta réactivité

@ghost
Copy link
Author

ghost commented Dec 5, 2011

Je n'arrive pas installer pystatgrab :

_statgrab.c:3027: warning: implicit declaration of function ‘PyModule_GetDict’
_statgrab.c:3027: error: ‘__pyx_m’ undeclared (first use in this function)
_statgrab.c:3029: warning: implicit declaration of function ‘PyTuple_New’
_statgrab.c:3033: warning: implicit declaration of function ‘PyCode_New’
_statgrab.c:3050: warning: implicit declaration of function ‘PyFrame_New’
_statgrab.c:3051: warning: implicit declaration of function ‘PyThreadState_Get’
_statgrab.c:3058: warning: implicit declaration of function ‘PyTraceBack_Here’
_statgrab.c:3060: warning: implicit declaration of function ‘Py_XDECREF’
error: command 'gcc' failed with exit status 1

Je ne suis pas fin connaisseur, j'ai peut être fait un erreur grossière, si quelqu'un à une idée?

@nicolargo
Copy link
Owner

Essaye de saisir les commandes suivantes:

$ sudo apt-get install build-essential

Puis de relancer:

$ ./setup.py build

Puis:

$ sudo ./setup.py install

@ghost
Copy link
Author

ghost commented Dec 5, 2011

build-essential est déjà la plus récente version disponible.

@nicolargo
Copy link
Owner

Et libstatgrab-dev est bien installé ?

$ sudo apt-get install libstatgrab-dev

@ghost
Copy link
Author

ghost commented Dec 5, 2011

Oui, de même.

@nicolargo
Copy link
Owner

Alors je sèche... D'autres personnes on installé Glances sur Ubuntu 10.04 ?

@nicolargo
Copy link
Owner

Une procédure de la part de Mydoomfr (http://mydoom666.com):

########################################

Glances sous Ubuntu Server 11.10

########################################

Pré-requis

apt-get install git build-essential autoconf automake python2.7 python-statgrab libstatgrab-dev

Installation

cd /opt
git clone https://github.com/nicolargo/glances glances
cd glances
./configure
make
make install

Tu me fais un retour si cela marche (ou pas) ?

@bartounet16
Copy link

Bonjour.
J'ai exactement le même problème sous Ubuntu 10.10

@ghost
Copy link
Author

ghost commented Dec 6, 2011

Je ne peux pas installer tous les pré-requis de mydoom, faut-il ajouter une source alternative ?

Aucune version du paquet git n'est disponible, mais il existe dans la base
de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète
ou qu'il n'est disponible que sur une autre source
E: Aucun paquet ne correspond au paquet git

E: Impossible de trouver le paquet python2.7

@nicolargo
Copy link
Owner

Quelle est la version de python-statgrab que vous avez à disposition dans les dépôts d'Ubuntu 10.04 et 10.10 ?

apt-cache show python-statgrab

@bartounet16
Copy link

root@antony-linux:/home/antony# apt-cache show python-statgrab
Package: python-statgrab
Priority: optional
Section: universe/python
Installed-Size: 256
Maintainer: Ubuntu MOTU Developers ubuntu-motu@lists.ubuntu.com
Original-Maintainer: Bartosz Fenski fenio@debian.org
Architecture: amd64
Source: pystatgrab
Version: 0.4-1.1ubuntu1
Replaces: pystatgrab
Provides: python2.5-statgrab, python2.6-statgrab
Depends: libc6 (>= 2.2.5), libstatgrab6, python (<< 2.7), python (>= 2.5), python-support (>= 0.7.1)
Conflicts: pystatgrab
Filename: pool/universe/p/pystatgrab/python-statgrab_0.4-1.1ubuntu1_amd64.deb
Size: 53386
MD5sum: d5e9be45052e266a791a0f834b06799c
SHA1: d3fdfa6ee4bb1250aac27e6a053ca161a04ab0c3
SHA256: 64d44cbe61a5f913204c60e78435511044cd578640041d5113570e7e2c55f54b
Description: interface to the libstatgrab library for Python
python-statgrab contains Python bindings for libstatgrab library.
.
libstatgrab is a library which provides an easy to use interface
for accessing system statistics. Available statistics include CPU,
Load, Memory, Swap, Disk I/O, and Network I/O.
.
Homepage: http://www.i-scream.org/pystatgrab/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

@ghost
Copy link
Author

ghost commented Dec 6, 2011

Package: python-statgrab
Priority: optional
Section: universe/python
Installed-Size: 256
Maintainer: Ubuntu MOTU Developers ubuntu-motu@lists.ubuntu.com
Original-Maintainer: Bartosz Fenski fenio@debian.org
Architecture: amd64
Source: pystatgrab
Version: 0.4-1.1ubuntu1
Replaces: pystatgrab
Provides: python2.5-statgrab, python2.6-statgrab
Depends: libc6 (>= 2.2.5), libstatgrab6, python (<< 2.7), python (>= 2.5), python-support (>= 0.7.1)
Conflicts: pystatgrab
Filename: pool/universe/p/pystatgrab/python-statgrab_0.4-1.1ubuntu1_amd64.deb
Size: 53386
MD5sum: d5e9be45052e266a791a0f834b06799c
SHA1: d3fdfa6ee4bb1250aac27e6a053ca161a04ab0c3
SHA256: 64d44cbe61a5f913204c60e78435511044cd578640041d5113570e7e2c55f54b
Description-fr: interface to the libstatgrab library for Python
python-statgrab contains Python bindings for libstatgrab library.
.
libstatgrab is a library which provides an easy to use interface for
accessing system statistics. Available statistics include CPU, Load,
Memory, Swap, Disk I/O, and Network I/O.
.
Site internet : http://www.i-scream.org/pystatgrab/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

@nicolargo
Copy link
Owner

Dernière chose a essayer avant de lancer la compilation de pystatgrab:

$ sudo apt-get install python-all-dev

@ghost
Copy link
Author

ghost commented Dec 6, 2011

L'installation a bien été effectuée. Que faut t'il faire ensuite ? Merci de ton support nicolargo ;)

@nicolargo
Copy link
Owner

$ sudo apt-get install libstatgrab-dev
$ 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

@ghost
Copy link
Author

ghost commented Dec 6, 2011

La compilation a l'air d'avoir fonctionné cependant quand je fait : apt-cache show python-statgrab, je suis toujours à la version précedente.

@nicolargo
Copy link
Owner

C'est normal car cette commande affiche la version de python-statgrab présente dans les dépots et pas la version installé...

Glances fonctionne t'il normalement ?

@bartounet16
Copy link

impec merci Nico ca fonctionne à présent.

Par contre le apt-cache show me montre toujours Version: 0.4-1.1ubuntu1 de pystatgrab pourtant il doit utiliser la 0.5 puisque cela fonctionne.

le apt-cache show ne se met pas à jour ?

@bartounet16
Copy link

C'est un peu embetant de ne pas pouvoir utiliser les versions des dépots sur Ubuntu.. du moins avec la LTS.

@ghost
Copy link
Author

ghost commented Dec 6, 2011

J'ai toujours le problème de mon côté même après réinstallation de la version 1.1.3.

@nicolargo
Copy link
Owner

@mino458: même après avoir installé python-statgrab comme l'a fait @bartounet16 ???

@bartounet16
Copy link

Bizzare en effet j'ai voulut l'installer sur une 10.04 et j'ai moi aussi le même problème....

Pourtant j'ai fait un script précis...

#!/bin/bash
apt-get install git-core build-essential autoconf automake python python-statgrab libstatgrab-dev

cd /opt
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
./setup.py install

wget https://github.com/downloads/nicolargo/glances/glances-1.1.3.tar.gz
tar xvfz glances-1.1.3.tar.gz
cd glances-1.1.3
./configure
make
make install

et là quand je lance glance.py

---p 0017a000 ca:02 130617 /lib/libc-2.11.1.so
7f1249154000-7f1249158000 r--p 00179000 ca:02 130617 /lib/libc-2.11.1.so
7f1249158000-7f1249159000 rw-p 0017d000 ca:02 130617 /lib/libc-2.11.1.so
7f1249159000-7f124915e000 rw-p 00000000 00:00 0
7f124915e000-7f12491e0000 r-xp 00000000 ca:02 130621 /lib/libm-2.11.1.so
7f12491e0000-7f12493df000 ---p 00082000 ca:02 130621 /lib/libm-2.11.1.so
7f12493df000-7f12493e0000 r--p 00081000 ca:02 130621 /lib/libm-2.11.1.so
7f12493e0000-7f12493e1000 rw-p 00082000 ca:02 130621 /lib/libm-2.11.1.so
7f12493e1000-7f12493f7000 r-xp 00000000 ca:02 130870 /lib/libz.so.1.2.3.3
7f12493f7000-7f12495f6000 ---p 00016000 ca:02 130870 /lib/libz.so.1.2.3.3
7f12495f6000-7f12495f7000 r--p 00015000 ca:02 130870 /lib/libz.so.1.2.3.3
7f12495f7000-7f12495f8000 rw-p 00016000 ca:02 130870 /lib/libz.so.1.2.3.3
7f12495f8000-7f1249760000

@nicolargo
Copy link
Owner

Donc cela marche sous Ubuntu 10.10 et pas sous 10.04...
Surement un problème de dépendance au niveau de la librairie statgrab...

Bizarre

@ghost
Copy link
Author

ghost commented Dec 6, 2011

Effectivement. Les répertoires d'installation ont-il de l'importance ?

root@sd-30516:~# wget http://ftp.uk.i-scream.org/sites/ftp.i-scream.org/pub/i-scream/pystatgrab/pystatgrab-0.5.tar.gz
--2011-12-06 15:12:50-- http://ftp.uk.i-scream.org/sites/ftp.i-scream.org/pub/i-scream/pystatgrab/pystatgrab-0.5.tar.gz
Résolution de ftp.uk.i-scream.org... 212.219.56.133, 212.219.56.134, 212.219.56.135, ...
Connexion vers ftp.uk.i-scream.org|212.219.56.133|:80... connecté.
requête HTTP transmise, en attente de la réponse... 200 OK
Longueur: 26867 (26K) [application/x-gzip]
Sauvegarde en : «pystatgrab-0.5.tar.gz.1»

100%[======================================>] 26 867 --.-K/s ds 0,02s

2011-12-06 15:12:50 (1,18 MB/s) - «pystatgrab-0.5.tar.gz.1» sauvegardé [26867/26867]

root@sd-30516:# tar zxvf pystatgrab-0.5.tar.gz
pystatgrab-0.5/
pystatgrab-0.5/AUTHORS
pystatgrab-0.5/COPYING
pystatgrab-0.5/ChangeLog
pystatgrab-0.5/MANIFEST.in
pystatgrab-0.5/NEWS
pystatgrab-0.5/README
pystatgrab-0.5/_statgrab.c
pystatgrab-0.5/_statgrab.pyx
pystatgrab-0.5/setup.py
pystatgrab-0.5/statgrab.py
pystatgrab-0.5/PKG-INFO
root@sd-30516:
# cd pystatgrab-0.5/
root@sd-30516:/pystatgrab-0.5# ./setup.py build
running build
running build_py
running build_ext
building '_statgrab' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c _statgrab.c -o build/temp.linux-x86_64-2.6/_statgrab.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/_statgrab.o -o build/lib.linux-x86_64-2.6/_statgrab.so -lstatgrab
root@sd-30516:
/pystatgrab-0.5# sudo ./setup.py install
running install
running build
running build_py
running build_ext
running install_lib
copying build/lib.linux-x86_64-2.6/_statgrab.so -> /usr/local/lib/python2.6/dist-packages
running install_egg_info
Removing /usr/local/lib/python2.6/dist-packages/pystatgrab-0.5.egg-info
Writing /usr/local/lib/python2.6/dist-packages/pystatgrab-0.5.egg-info

@nicolargo
Copy link
Owner

Normalement non, il faut juste que Python est connaissance de ce repertoire.

Pour tester si Python utilise bien la bonne librairie:

$ sudo apt-get remove python-statgrab
$ python

import statgrab
statgrab.sg_init()

@bartounet16
Copy link

a priori c'est ma compil de pystatgrab0.5 qui fonctionne pas....

statgrab.c:2589: warning: (near initialization for ‘__pyx_string_tab[20]’)
_statgrab.c:2592: error: array type has incomplete element type
_statgrab.c:2593: error: ‘PyCFunction’ undeclared here (not in a function)
_statgrab.c:2593: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_init’
_statgrab.c:2594: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_shutdown’
_statgrab.c:2595: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_snapshot’
_statgrab.c:2596: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_drop_privileges’
_statgrab.c:2597: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_set_error’
_statgrab.c:2598: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_set_error_with_errno’
_statgrab.c:2599: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_error’
_statgrab.c:2600: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_error_arg’
_statgrab.c:2601: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_error_errno’
_statgrab.c:2602: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_str_error’
_statgrab.c:2603: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_host_info’
_statgrab.c:2604: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_cpu_stats’
_statgrab.c:2605: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_cpu_stats_diff’
_statgrab.c:2606: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_cpu_percents’
_statgrab.c:2607: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_mem_stats’
_statgrab.c:2608: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_load_stats’
_statgrab.c:2609: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_user_stats’
_statgrab.c:2610: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_swap_stats’
_statgrab.c:2611: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_fs_stats’
_statgrab.c:2612: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_disk_io_stats’
_statgrab.c:2613: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_disk_io_stats_diff’
_statgrab.c:2614: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_network_io_stats’
_statgrab.c:2615: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_network_io_stats_diff’
_statgrab.c:2616: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_network_iface_stats’
_statgrab.c:2617: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_page_stats’
_statgrab.c:2618: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_page_stats_diff’
_statgrab.c:2619: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_process_stats’
_statgrab.c:2620: error: expected ‘}’ before ‘__pyx_f_9_statgrab_py_sg_get_process_count’

je cherche...

@bartounet16
Copy link

bon j'avais oublié une dépendance...
Après toutes install et compil toujours le problème...

voici le déroulement:

root@ubuntults:/opt# ./glanceinstall.sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
git-core is already the newest version.
pkg-config is already the newest version.
build-essential is already the newest version.
autoconf is already the newest version.
automake is already the newest version.
python is already the newest version.
python-statgrab is already the newest version.
libstatgrab-dev is already the newest version.
python-all-dev is already the newest version.

--2011-12-06 15:38:05-- http://ftp.uk.i-scream.org/sites/ftp.i-scream.org/pub/i-scream/pystatgrab/pystatgrab-0.5.tar.gz
Resolving ftp.uk.i-scream.org... 212.219.56.153, 212.219.56.131, 212.219.56.132, ...
Connecting to ftp.uk.i-scream.org|212.219.56.153|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26867 (26K) [application/x-gzip]
Saving to: `pystatgrab-0.5.tar.gz'

100%[============================================================================================================================================================>] 26,867 --.-K/s in 0.02s

2011-12-06 15:38:05 (1.17 MB/s) - `pystatgrab-0.5.tar.gz' saved [26867/26867]

pystatgrab-0.5/
pystatgrab-0.5/AUTHORS
pystatgrab-0.5/COPYING
pystatgrab-0.5/ChangeLog
pystatgrab-0.5/MANIFEST.in
pystatgrab-0.5/NEWS
pystatgrab-0.5/README
pystatgrab-0.5/_statgrab.c
pystatgrab-0.5/_statgrab.pyx
pystatgrab-0.5/setup.py
pystatgrab-0.5/statgrab.py
pystatgrab-0.5/PKG-INFO
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
copying statgrab.py -> build/lib.linux-x86_64-2.6
running build_ext
building '_statgrab' extension
creating build/temp.linux-x86_64-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c _statgrab.c -o build/temp.linux-x86_64-2.6/_statgrab.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/_statgrab.o -o build/lib.linux-x86_64-2.6/_statgrab.so -lstatgrab
running install
running build
running build_py
running build_ext
running install_lib
copying build/lib.linux-x86_64-2.6/_statgrab.so -> /usr/local/lib/python2.6/dist-packages
running install_egg_info
Removing /usr/local/lib/python2.6/dist-packages/pystatgrab-0.5.egg-info
Writing /usr/local/lib/python2.6/dist-packages/pystatgrab-0.5.egg-info
--2011-12-06 15:38:07-- https://github.com/downloads/nicolargo/glances/glances-1.1.3.tar.gz
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://cloud.github.com/downloads/nicolargo/glances/glances-1.1.3.tar.gz [following]
--2011-12-06 15:38:07-- http://cloud.github.com/downloads/nicolargo/glances/glances-1.1.3.tar.gz
Resolving cloud.github.com... 216.137.37.223, 216.137.37.8, 216.137.37.79, ...
Connecting to cloud.github.com|216.137.37.223|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 225766 (220K) [.gz]
Saving to: `glances-1.1.3.tar.gz'

100%[============================================================================================================================================================>] 225,766 200K/s in 1.1s

2011-12-06 15:38:09 (200 KB/s) - `glances-1.1.3.tar.gz' saved [225766/225766]

glances-1.1.3/
glances-1.1.3/py-compile
glances-1.1.3/.ropeproject/
glances-1.1.3/.ropeproject/config.py
glances-1.1.3/.ropeproject/objectdb
glances-1.1.3/.ropeproject/history
glances-1.1.3/glances.anjuta
glances-1.1.3/.anjuta/
glances-1.1.3/.anjuta/default.profile
glances-1.1.3/.anjuta/session/
glances-1.1.3/.anjuta/session/anjuta.session
glances-1.1.3/.anjuta/session/dock-layout.xml
glances-1.1.3/src/
glances-1.1.3/src/Makefile.in
glances-1.1.3/src/glances.py
glances-1.1.3/src/Makefile.am
glances-1.1.3/screenshot.png
glances-1.1.3/AUTHORS
glances-1.1.3/Makefile.in
glances-1.1.3/ChangeLog
glances-1.1.3/missing
glances-1.1.3/configure
glances-1.1.3/.anjuta_sym_db.db
glances-1.1.3/COPYING
glances-1.1.3/autogen.sh
glances-1.1.3/autom4te.cache/
glances-1.1.3/autom4te.cache/traces.0
glances-1.1.3/autom4te.cache/output.0
glances-1.1.3/autom4te.cache/output.1
glances-1.1.3/autom4te.cache/requests
glances-1.1.3/autom4te.cache/traces.1
glances-1.1.3/README
glances-1.1.3/install-sh
glances-1.1.3/setup.py
glances-1.1.3/m4/
glances-1.1.3/m4/ax_python_module.m4
glances-1.1.3/aclocal.m4
glances-1.1.3/INSTALL
glances-1.1.3/README.md
glances-1.1.3/config.h.in
glances-1.1.3/Makefile.am
glances-1.1.3/NEWS
glances-1.1.3/TODO
glances-1.1.3/configure.ac
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for a Python interpreter with version >= 2.6... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/dist-packages
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
make all-recursive
make[1]: Entering directory /opt/glances-1.1.3' Making all in src make[2]: Entering directory/opt/glances-1.1.3/src'
make[2]: Nothing to be done for all'. make[2]: Leaving directory/opt/glances-1.1.3/src'
make[2]: Entering directory /opt/glances-1.1.3' make[2]: Nothing to be done forall-am'.
make[2]: Leaving directory /opt/glances-1.1.3' make[1]: Leaving directory/opt/glances-1.1.3'
Making install in src
make[1]: Entering directory /opt/glances-1.1.3/src' make[2]: Entering directory/opt/glances-1.1.3/src'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c glances.py '/usr/local/bin'
test -z "/usr/local/lib/python2.6/dist-packages/glances" || /bin/mkdir -p "/usr/local/lib/python2.6/dist-packages/glances"
/usr/bin/install -c -m 644 glances.py '/usr/local/lib/python2.6/dist-packages/glances'
Byte-compiling python modules...
glances.py
Byte-compiling python modules (optimized versions) ...
glances.py
make[2]: Leaving directory /opt/glances-1.1.3/src' make[1]: Leaving directory/opt/glances-1.1.3/src'
make[1]: Entering directory /opt/glances-1.1.3' make[2]: Entering directory/opt/glances-1.1.3'
make[2]: Nothing to be done for install-exec-am'. test -z "/usr/local/doc/glances" || /bin/mkdir -p "/usr/local/doc/glances" /usr/bin/install -c -m 644 README COPYING AUTHORS ChangeLog INSTALL NEWS '/usr/local/doc/glances' make[2]: Leaving directory/opt/glances-1.1.3'
make[1]: Leaving directory `/opt/glances-1.1.3'

vous voyez un probleme ??

@nicolargo
Copy link
Owner

@bartounet16: tout à l'air OK...

Pour tester si Python utilise bien la bonne librairie:

$ sudo apt-get remove python-statgrab
$ python

import statgrab
statgrab.sg_init()

@bartounet16
Copy link

bon à priori python utilisait toujours la vieille librairie... donc ne pas installer python-statgrab des dépot ou le désintaller...

Ce script marche impec chez moi sur une 10.04 et 10.10

#!/bin/bash

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

wget https://github.com/downloads/nicolargo/glances/glances-1.1.3.tar.gz
tar xvfz glances-1.1.3.tar.gz
cd glances-1.1.3
./configure
make
sudo make install

Procedure testée et validée sur une 10.04 LTS fraîchement installée (note de Nicolargo)

Merci

@bartounet16
Copy link

par contre derniere question, la ca fonctionne en téléchargeant glances directement,

Au départ je voulait utiliser git, mais il ne me dl pas tous les fichiers...
exemple:

root@ubuntults:~# git clone https://github.com/nicolargo/glances glances
Initialized empty Git repository in /root/glances/.git/
remote: Counting objects: 124, done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 124 (delta 61), reused 83 (delta 20)
Receiving objects: 100% (124/124), 405.04 KiB | 420 KiB/s, done.
Resolving deltas: 100% (61/61), done.

root@ubuntults:# cd glances/
root@ubuntults:
/glances# ls -al
total 164
drwxr-xr-x 5 root root 4096 2011-12-06 15:59 .
drwx------ 10 root root 4096 2011-12-06 15:59 ..
-rw-r--r-- 1 root root 56 2011-12-06 15:59 AUTHORS
-rwxr-xr-x 1 root root 4428 2011-12-06 15:59 autogen.sh
-rw-r--r-- 1 root root 2 2011-12-06 15:59 ChangeLog
-rw-r--r-- 1 root root 625 2011-12-06 15:59 config.h.in
-rw-r--r-- 1 root root 362 2011-12-06 15:59 configure.ac
-rw-r--r-- 1 root root 7640 2011-12-06 15:59 COPYING
drwxr-xr-x 8 root root 4096 2011-12-06 15:59 .git
-rw-r--r-- 1 root root 1530 2011-12-06 15:59 glances.anjuta
drwxr-xr-x 2 root root 4096 2011-12-06 15:59 m4
-rw-r--r-- 1 root root 325 2011-12-06 15:59 Makefile.am
-rw-r--r-- 1 root root 24024 2011-12-06 15:59 Makefile.in
-rw-r--r-- 1 root root 232 2011-12-06 15:59 NEWS
-rw-r--r-- 1 root root 2828 2011-12-06 15:59 README
-rw-r--r-- 1 root root 2828 2011-12-06 15:59 README.md
-rw-r--r-- 1 root root 59714 2011-12-06 15:59 screenshot.png
-rw-r--r-- 1 root root 733 2011-12-06 15:59 setup.py
drwxr-xr-x 2 root root 4096 2011-12-06 15:59 src
-rw-r--r-- 1 root root 55 2011-12-06 15:59 TODO

Je n'ai pas le configure ...

@nicolargo
Copy link
Owner

Le configure est généré par les commande GNU suivantes:

$ aclocal
$ autoconf
$ automake -a -c

@nicolargo
Copy link
Owner

Je ferme le bug.

Les instruction à suivre sont là: #5 (comment)

Attention toutefois avec la commande "git clone https://github.com/nicolargo/glances glances", tu télécharges la version HEAD de Glances qui peut être instable...

@bartounet16
Copy link

ok, je croyais que tout était inclus dedans :)
Merci

@ghost
Copy link
Author

ghost commented Dec 6, 2011

Je précise que cela fonctionne sous Ubuntu server 10.04 si python-statgrab est désinstallé.

sudo apt-get remove python-statgrab

Merci pour tout !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants