mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #727, install valgrind-devel
This commit is contained in:
parent
517812dbe2
commit
1b1ae00910
1 changed files with 18 additions and 4 deletions
|
@ -104,10 +104,17 @@ function Ubuntu_prepare()
|
||||||
|
|
||||||
valgrind --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then
|
valgrind --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then
|
||||||
echo "Installing valgrind."
|
echo "Installing valgrind."
|
||||||
require_sudoer "sudo apt-get install -y --force-yes valgrind valgrind-dev"
|
require_sudoer "sudo apt-get install -y --force-yes valgrind"
|
||||||
sudo apt-get install -y --force-yes valgrind valgrind-dev; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi
|
sudo apt-get install -y --force-yes valgrind; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi
|
||||||
echo "The valgrind is installed."
|
echo "The valgrind is installed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f /usr/include/valgrind/valgrind.h ]]; then
|
||||||
|
echo "Installing valgrind-dev."
|
||||||
|
require_sudoer "sudo apt-get install -y --force-yes valgrind-dev"
|
||||||
|
sudo apt-get install -y --force-yes valgrind-dev; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi
|
||||||
|
echo "The valgrind-dev is installed."
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $SRS_NGINX = YES ]; then
|
if [ $SRS_NGINX = YES ]; then
|
||||||
if [[ ! -f /usr/include/pcre.h ]]; then
|
if [[ ! -f /usr/include/pcre.h ]]; then
|
||||||
|
@ -204,11 +211,18 @@ function Centos_prepare()
|
||||||
|
|
||||||
valgrind --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then
|
valgrind --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then
|
||||||
echo "Installing valgrind."
|
echo "Installing valgrind."
|
||||||
require_sudoer "sudo yum install -y valgrind valgrind-devel"
|
require_sudoer "sudo yum install -y valgrind"
|
||||||
sudo yum install -y valgrind valgrind-devel; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi
|
sudo yum install -y valgrind; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi
|
||||||
echo "The valgrind is installed."
|
echo "The valgrind is installed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f /usr/include/valgrind/valgrind.h ]]; then
|
||||||
|
echo "Installing valgrind-devel."
|
||||||
|
require_sudoer "sudo yum install -y valgrind-devel"
|
||||||
|
sudo yum install -y valgrind-devel; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi
|
||||||
|
echo "The valgrind-devel is installed."
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $SRS_NGINX = YES ]; then
|
if [ $SRS_NGINX = YES ]; then
|
||||||
if [[ ! -f /usr/include/pcre.h ]]; then
|
if [[ ! -f /usr/include/pcre.h ]]; then
|
||||||
echo "Installing pcre-devel."
|
echo "Installing pcre-devel."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue