https://valgrind.org/docs/manual/dist.readme.html
- download tar.bz from https://valgrind.org/downloads/
- 解压,进入目录 tar -jxvf xxx.tar.bz2
Run ./configure, with some options if you wish. The only interesting
one is the usual –prefix=/where/you/want/it/installed.Run “make”.
Run “make install”, possibly as root if the destination permissions
require that.See if it works. Try “valgrind ls -l”. Either this works, or it
bombs out with some complaint. In that case, please let us know
(see http://valgrind.org/support/bug_reports.html).