From 7b84ad9780c90140c86fc9cc2d536501629a48d2 Mon Sep 17 00:00:00 2001 From: xailab Date: Sun, 10 Mar 2024 02:00:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'sh/install.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sh/install.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sh/install.sh diff --git a/sh/install.sh b/sh/install.sh new file mode 100644 index 0000000..7959649 --- /dev/null +++ b/sh/install.sh @@ -0,0 +1,21 @@ +sudo yum -y install git +sudo yum -y install gcc +sudo yum -y install gcc-c++ +sudo yum install openssl openssl-devel + +wget https://github.com/Kitware/CMake/releases/download/v3.17.0-rc3/cmake-3.17.0-rc3.tar.gz +tar -xvf cmake-3.17.0-rc3.tar.gz +cd cmake-3.17.0-rc3 +./configure +make -j4 +sudo make install + +cd ../ +git clone --depth 1 https://gitee.com/xia-chu/ZLMediaKit +cd ZLMediaKit +git submodule update --init + +mkdir build +cd build +cmake .. +make -j4 \ No newline at end of file