mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug of build script on centos
This commit is contained in:
parent
55a81fd01f
commit
ae18c388c1
1 changed files with 22 additions and 1 deletions
|
@ -134,11 +134,32 @@ function Centos_prepare()
|
||||||
echo "install libtool success"
|
echo "install libtool success"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f /usr/include/pcre.h ]]; then
|
||||||
|
echo "install pcre-devel"
|
||||||
|
require_sudoer "sudo yum install -y pcre-devel"
|
||||||
|
sudo yum install -y pcre-devel
|
||||||
|
echo "install pcre-devel success"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f /usr/include/zlib.h ]]; then
|
||||||
|
echo "install zlib-devel"
|
||||||
|
require_sudoer "sudo yum install -y zlib-devel"
|
||||||
|
sudo yum install -y zlib-devel
|
||||||
|
echo "install zlib-devel success"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -d /usr/include/freetype2 ]]; then
|
||||||
|
echo "install freetype-devel"
|
||||||
|
require_sudoer "sudo yum install -y freetype-devel"
|
||||||
|
sudo yum install -y freetype-devel
|
||||||
|
echo "install freetype-devel success"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ! -d /usr/include/openssl ]]; then
|
if [[ ! -d /usr/include/openssl ]]; then
|
||||||
echo "install openssl-devel"
|
echo "install openssl-devel"
|
||||||
require_sudoer "sudo yum install -y openssl-devel"
|
require_sudoer "sudo yum install -y openssl-devel"
|
||||||
sudo yum install -y openssl-devel
|
sudo yum install -y openssl-devel
|
||||||
echo "install openssl-devels success"
|
echo "install openssl-devel success"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Centos install tools success"
|
echo "Centos install tools success"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue