Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 12/06/2007, à 14:09

RavN

[Question] Les Docs et L'outil checkinstall

Bonjour, je débute en tout ce qui est compilation et j'ai une petite question.
J'ai découvert récemment que l'outil checkinstall pouvait être utilisé dans les compilations pour céer un paquet .deb dans Synaptic.

Vu la difficulté que l'on rencontre pour désinstaller un logiciel compilé pourquoi l'utilisation de checkinstall n'est elle pas constante dans les différents tutos de la doc ?

Voilà merci smile

Hors ligne

#2 Le 12/06/2007, à 19:12

Jean-lux

Re : [Question] Les Docs et L'outil checkinstall

RavN a écrit :

Bonjour, je débute en tout ce qui est compilation et j'ai une petite question.
J'ai découvert récemment que l'outil checkinstall pouvait être utilisé dans les compilations pour céer un paquet .deb dans Synaptic.

Vu la difficulté que l'on rencontre pour désinstaller un logiciel compilé pourquoi l'utilisation de checkinstall n'est elle pas constante dans les différents tutos de la doc ?

Voilà merci smile

Tout simplement, parce que checkinstall ne fonctionne pas toujours sad


Un jour... Le manchot cassera la fenêtre !

Remboursez votre forfait non utilisé sur http://goo.gl/uQyCq NOFAKE.

Hors ligne

#3 Le 12/06/2007, à 21:09

sbrunner

Re : [Question] Les Docs et L'outil checkinstall

Tu à un exemple ou il est utiliser correctement et qu'il ne marche pas ?

Hors ligne

#4 Le 13/06/2007, à 00:30

Jean-lux

Re : [Question] Les Docs et L'outil checkinstall

sbrunner a écrit :

Tu à un exemple ou il est utiliser correctement et qu'il ne marche pas ?

En tentant d'installer SoundConverter à partir des sources :



./configure

jean-luc@Salon:~/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/bash: /home/jean-luc/Documents/Fichiers: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  fr pl pt_BR sv_SE hu
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
checking for iconv... /usr/bin/iconv
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking for xgettext... /usr/bin/xgettext
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for pygtk 2.10 installed... found
checking for python-gnome 2.10 installed... found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating data/soundconverter.desktop.in
config.status: creating doc/Makefile
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing intltool commands
config.status: executing po/stamp-it commands
jean-luc@Salon:~/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6$

make

jean-luc@Salon:~/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6$ make
Making all in po
make[1]: entrant dans le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6/po »
file=`echo fr | sed 's,.*/,,'`.gmo \
          && rm -f $file && /usr/bin/msgfmt -o $file fr.po
file=`echo pl | sed 's,.*/,,'`.gmo \
          && rm -f $file && /usr/bin/msgfmt -o $file pl.po
file=`echo pt_BR | sed 's,.*/,,'`.gmo \
          && rm -f $file && /usr/bin/msgfmt -o $file pt_BR.po
file=`echo sv_SE | sed 's,.*/,,'`.gmo \
          && rm -f $file && /usr/bin/msgfmt -o $file sv_SE.po
file=`echo hu | sed 's,.*/,,'`.gmo \
          && rm -f $file && /usr/bin/msgfmt -o $file hu.po
make[1]: quittant le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6/po »
Making all in src
make[1]: entrant dans le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6/src »
sed -e s!\@datadir\@!/usr/local/share! -e s!\@version\@!0.9.6! < soundconverter.py > soundconverter
chmod +x soundconverter
make[1]: quittant le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6/src »
Making all in data
make[1]: entrant dans le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6/data »
LC_ALL=C ../intltool-merge -d -u -c ../po/.intltool-merge-cache ../po soundconverter.desktop.in soundconverter.desktop
Generating and caching the translation database
Merging translations into soundconverter.desktop.
make[1]: quittant le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6/data »
Making all in doc
make[1]: entrant dans le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6/doc »
make[1]: Rien à faire pour « all ».
make[1]: quittant le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6/doc »
make[1]: entrant dans le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6 »
make[1]: Rien à faire pour « all-am ».
make[1]: quittant le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6 »
jean-luc@Salon:~/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6$

sudo checkinstall

jean-luc@Salon:~/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6$ sudo checkinstall
Password:

checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.


The package documentation directory ./doc-pak does not exist. 
Should I create a default set of package docs?  [y]: n

Please write a description for the package.
End your description with an empty line or EOF.
>> Convertir les fichiers audio
>> 

*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values: 

0 -  Maintainer: [ root@Salon ]
1 -  Summary: [ Convertir les fichiers audio ]
2 -  Name:    [ soundconverter ]
3 -  Version: [ 0.9.6 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ soundconverter-0.9.6 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]

Enter a number to change any of them or press ENTER to continue: 

Installing with make install...

========================= Installation results ===========================
Making install in po
make[1]: entrant dans le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6/po »
/bin/sh /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6/install-sh -d /usr/local/share/locale
/bin/sh: Can't open /home/jean-luc/Documents/Fichiers
make[1]: *** [install-data-yes] Erreur 2
make[1]: quittant le répertoire « /home/jean-luc/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6/po »
make: *** [install-recursive] Erreur 1

****  Installation failed. Aborting package creation.

Cleaning up.../usr/bin/checkinstall: line 300: [: trop d'arguments
OK

Bye.

jean-luc@Salon:~/Documents/Fichiers téléchargés/Mozilla Firefox/soundconverter-0.9.6.tar.gz_FILES/soundconverter-0.9.6$

Et voilà, l'erreur est :

****  Installation failed. Aborting package creation.

Cleaning up.../usr/bin/checkinstall: line 300: [: trop d'arguments
OK

Bye.

Pour avoir la dernière version de SoundConverter, j'ai préférer prendre le paquet de Gusty !


Un jour... Le manchot cassera la fenêtre !

Remboursez votre forfait non utilisé sur http://goo.gl/uQyCq NOFAKE.

Hors ligne

#5 Le 13/06/2007, à 08:35

sbrunner

Re : [Question] Les Docs et L'outil checkinstall

C'est étrange effectivement hmm

Merci de ta réponse smile

CU
Stéph

Hors ligne

#6 Le 03/07/2007, à 17:12

roger64

Re : [Question] Les Docs et L'outil checkinstall

bonjour smile

checkinstall doit convenir pour de petits produits mais peut-être pas pour des choses compliquées. En fait, comme il ne gère pas les dépendances, c'est surtout un outil pratique pour vous permettre de vous débarasser proprement ultérieurement et si nécessaire du paquet qu'il a installé.

J'ai fait l'essai pour voir avec une petite extension pour thunar appelée thunar-volman permettant de gérer le montage des disques externes.

au lieu de l'habituel

./configure
make 
sudo make install

j'ai fait simplement

./configure
make
sudo checkinstall make install

j'ai répondu à une ou deux questions basiques, et ça a marché et donné ça:


**********************************************************************

Done. The new package has been installed and saved to

/home/roger/thunar-volman-0.1.2/thunar-volman_0.1.2-1_i386.deb

You can remove it from your system anytime using:

      dpkg -r thunar-volman

**********************************************************************
Le paquet thunar-volman et le plugin associé apparaissent aussi dans Synaptic.

Conclusion: un petit progrès à recommander pour les compilations légères (sans trop de dépendances).

Dernière modification par roger64 (Le 03/07/2007, à 17:18)

Hors ligne