You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
410 B
27 lines
410 B
2 years ago
|
#!/bin/bash
|
||
|
|
||
|
VALGRIND_VERSION=3.18.1
|
||
|
|
||
|
set -e
|
||
|
|
||
|
tarball=valgrind-3.18.1.tar.bz2
|
||
|
|
||
|
url=https://sourceware.org/pub/valgrind/valgrind-3.18.1.tar.bz2
|
||
|
|
||
|
if [ -f $tarball ]; then
|
||
|
echo "use the $tarball have downloaded."
|
||
|
else
|
||
|
wget -t3 --no-check-certificate $url
|
||
|
fi
|
||
|
|
||
|
tar xjfv $tarball
|
||
|
|
||
|
mv valgrind-3.18.1 valgrind
|
||
|
|
||
|
prefix=$PWD/valgrind/install
|
||
|
cd ./valgrind/
|
||
|
./configure --prefix=$prefix
|
||
|
make
|
||
|
make install
|
||
|
cd -
|