Précédent   Forum des professionnels en informatique > Systèmes > Linux > Applications
Applications Questions sur l'utilisation d'applications, du shell, et des interfaces graphiques (KDE, Gnome, XFCE... )
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 17/10/2007, 09h04   #1
Futur Membre du Club
 
Inscription : novembre 2004
Messages : 121
Détails du profil
Informations forums :
Inscription : novembre 2004
Messages : 121
Points : 18
Points : 18
Par défaut Valgrind, problème à l'installation

Salut à tous,
je tourne sous Ubuntu 7.04 Feisty, et j'ai récemment tenté d'installer valgrind, en vain : quand je lance une commande valgrind (quelle qu'elle soit), j'obtient toujours la ligne suivante :
Citation:
valgrind : failed to start tool 'memcheck' for platform 'x86-linux' : No such file or directory
Voilà, si quelqu'un pouvait m'aider ...
Superne0 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 19/10/2007, 10h36   #2
Modérateur
 
Avatar de gangsoleil
 
R&D en systemes informatiques bas niveau Unix/Linux
Inscription : mai 2004
Messages : 5 499
Détails du profil
Informations personnelles :
Âge : 31
Localisation : France, Isère (Rhône Alpes)

Informations professionnelles :
Activité : R&D en systemes informatiques bas niveau Unix/Linux

Informations forums :
Inscription : mai 2004
Messages : 5 499
Points : 9 679
Points : 9 679
Bonjour,

Est-ce que tu as le programme memcheck installé ? Si ce n'est pas le cas, as-tu cherché à l'installer ?
__________________
Modérateur "C", "Informatique Générale & Hardware" et "Unix"
Les règles du forum
gangsoleil est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/10/2007, 15h16   #3
Futur Membre du Club
 
Inscription : novembre 2004
Messages : 121
Détails du profil
Informations forums :
Inscription : novembre 2004
Messages : 121
Points : 18
Points : 18
A priori memcheck n'est pas installé (je ne l'ai pas installé tout seul).
Sinon, je viens de faire un
Citation:
sudo apt-get install valgrind
et apparament tout c'est bien passé.
Sauf que j'ai toujours cette erreur quand je lance une commande du genre
Citation:
valgrind ls -l
... :
Citation:
valgrind : failed to start tool 'memcheck' for platform 'x86-linux' : No such file or directory
Superne0 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 21/10/2007, 12h53   #4
Futur Membre du Club
 
Inscription : novembre 2004
Messages : 121
Détails du profil
Informations forums :
Inscription : novembre 2004
Messages : 121
Points : 18
Points : 18
J'ai tenté d'installer memcheck (après l'avoir dépaqueter d'un .tar.gz).
Déjà, il y a l'air d'avoir des erreurs rien qu'en faisant "./configure" :
Citation:
romain@romain:~$ cd memcheck-0.2.4
romain@romain:~/memcheck-0.2.4$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) mawk
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking if the C compiler (gcc -g -O2 ) is really a C++ compiler... no
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking for stdlib.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/reg.h usability... yes
checking sys/reg.h presence... yes
checking for sys/reg.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for sys/param.h... yes
checking for sys/user.h... yes
checking for ucontext.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for caddr_t... yes
checking for sigjmp_buf... yes
checking for sig_atomic_t... yes
checking for pthread_mutex_t... yes
checking for ucontext_t... yes
checking for sigcontext_t... no
checking for struct sigcontext... yes
checking for sigaction_t... no
checking for struct sigaction... yes
checking for siginfo_t... yes
checking for struct sigaction.sa_sigaction... yes
checking for siginfo_t.si_addr... yes
checking for siginfo_t.si_ptr... yes
checking for ucontext_t.uc_mcontext.sc_ip... no
checking for ucontext_t.uc_mcontext.sc_pc... no
checking for ucontext_t.uc_mcontext.rip... no
checking for ucontext_t.uc_mcontext.eip... no
checking for ucontext_t.uc_mcontext.mc_rip... no
checking for ucontext_t.uc_mcontext.mc_eip... no
checking for ucontext_t.uc_mcontext.mc_err... no
checking for ucontext_t.uc_mcontext.arm_pc... no
checking for ucontext_t.uc_mcontext.gr8... no
checking for ucontext_t.uc_mcontext.sc... no
checking for ucontext_t.uc_mcontext.gregs... yes
checking for ucontext_t.uc_mcontext.sc_regs... no
checking for ucontext_t.uc_mcontext.mc_regs... no
checking for ucontext_t.uc_mcontext.sc_traparg_a0... no
checking for ucontext_t.uc_mcontext.cr2... yes
checking for ucontext_t.uc_mcontext.fault_address... no
checking for ucontext_t.uc_mcontext->ss.srr0... no
checking for ucontext_t.uc_mcontext->es.dar... no
checking for ucontext_t.uc_mcontext.psw... no
checking for struct sigcontext.sc_pc... no
checking for struct sigcontext.sigc_pc... no
checking for struct sigcontext.sc_ir... no
checking for struct sigcontext.sc_rip... no
checking for struct sigcontext.sc_eip... no
checking for struct sigcontext.sc_jmpbuf... no
checking for struct sigcontext.sc_regs... no
checking for struct sigcontext.sregs... no
checking for struct sigcontext.eip... yes
checking for struct sigcontext.rip... no
checking for struct sigcontext.arm_pc... no
checking for struct sigcontext.sc_traparg_a0... no
checking for struct sigcontext.fault_address... no
checking for struct sigcontext.cr2... yes
checking whether `alloca.c' needs Cray hooks... no
checking stack direction for C alloca... -1
checking order of parameters pushed on stack... -1
checking for library containing __uc_get_ip... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for fsync... yes
checking for memcpy... yes
checking for siglongjmp... yes
checking for perror... yes
checking for psignal... yes
checking for sigaction... yes
checking for atexit... yes
checking for getpagesize... (cached) yes
checking for memmove... yes
checking for memset... yes
checking for strdup... yes
checking for backtrace... yes
checking for pthread_mutex_init... yes
checking for pthread_mutex_lock... yes
checking for pthread_mutex_unlock... yes
checking for pthread_mutex_destroy... yes
checking for __uc_get_ip... no
checking whether errno is declared... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
romain@romain:~/memcheck-0.2.4$
Apré, voilà ce que j'obiens en faisant "make" :
Citation:
romain@romain:~/memcheck-0.2.4$ make
make all-am
make[1]: entrant dans le répertoire « /home/romain/memcheck-0.2.4 »
make[1]: quittant le répertoire « /home/romain/memcheck-0.2.4 »
romain@romain:~/memcheck-0.2.4$
Superne0 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/04/2009, 11h48   #5
Invité de passage
 
Inscription : avril 2009
Messages : 1
Détails du profil
Informations forums :
Inscription : avril 2009
Messages : 1
Points : 1
Points : 1
Normalement, memcheck est installé par défaut.

Le probleme rencontré ressemble à celui que j'ai eu : j'ai fait une install non standard et valgrind ne retrouve pas memcheck.

Pour le résoudre, tu dois positionner la variable d'environnement "VALGRIND_LIB"
avec une valeur du type :
<MON_REPERTOIRE_D_INSTALL_DE_VALGRIND>/lib/valgrind


Autre solution : refais une install complete avec :
configure
make install
make
tletat est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/04/2010, 06h55   #6
Invité régulier
 
Inscription : février 2007
Messages : 16
Détails du profil
Informations forums :
Inscription : février 2007
Messages : 16
Points : 6
Points : 6
Je donne plus de détails pour l'installation de valgrind-3.5.0.tar sur Linux Mandriva ;
- décompacter l'archive
- ouvrir le terminal
- avec la commande cd, aller dans le repertoire décompacté
- taper dedans tout ce qui suit
- su
- ... répondre à la question, mot de passe...
- ./configure
- make install
- make
J'en profite pour remercier les précieux commentaires précédents
réciproxy est déconnecté   Envoyer un message privé Réponse avec citation 10
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 00h18.


 
 
 
 
Partenaires

Hébergement Web