質問: valgrindはデバッグエラーを行います learn c the hard way のオンラインチュートリアルに従うことを試みました。ただし、valgrindをセットアップした後(ubuntu 12.04でvalgrindのセットアップに役立つ他のリンクをたどった)、c実行可能ファイルをデバッグしようとすると、次のエラーが見つかります。ayusman@ayusman-ubuntu:~/lcthw$ valgrind ./ex4 ==1984== memcheck, a memory error detector ==1984== copyright (c) 2002-2011, and gnu gpl'd, by julian seward et al. ==1984== using valgrind-3.7.0 and libvex; rerun with -h for copyright info ==1984== command: ./ex4 ==1984== valgrind: fatal error at startup: a function redirection valgrind: which is mandatory for this platform-tool combination valgrind: cannot be set up. details of the redirection are: valgrind: valgrind: a must-be-redirected function valgrind: whose name matches the pattern: strlen valgrind: in an object with soname matching: ld-linux-x86-64.so.2 valgrind: was not found whilst processing valgrind: symbols from the object with soname: ld-linux-x86-64.so.2 valgrind: valgrind: possible fixes: (1, short term): install glibc's debuginfo valgrind: package on this machine. (2, longer term): ask the packagers valgrind: for your linux distribution to please in future ship a non- valgrind: stripped ld.so (or whatever the dynamic linker .so is called) valgrind: that exports the above-named function using the standard valgrind: calling conventions for this platform. the package you need valgrind: to install for fix (1) is called valgrind: valgrind: on debian, ubuntu: libc6-dbg valgrind: on suse, opensuse, fedora, rhel: glibc-debuginfo valgrind: valgrind: cannot continue -- exiting now. sorry. ayusman@ayusman-ubuntu:~/lcthw$ 最終的にvalgrindを機能させるためにできることはありますか?仮想ボックスにubuntu 12.04があります。私のラップトップはwindows 7 64ビットosです。
回答: oksudo apt-get install libc6-dbg valgrindはうまく機能しているようです。ubuntuフォーラムのリンクに感謝します。 http://ubuntuforums.org/showthread.php?t=1017692