gala-gopher/fix-prepare_dependence.patch
xietangxin 7a98e4aa4d sync bugfix
(cherry picked from commit f80b9a43fd947043bd90d948c921daeabc1f3b96)
2023-06-13 09:59:46 +08:00

48 lines
1.0 KiB
Diff

From cabacb208974b002f01268e988a0b32062d0f730 Mon Sep 17 00:00:00 2001
From: sjxur <sjxur@isoftstone.com>
Date: Wed, 19 Apr 2023 16:32:20 +0800
Subject: [PATCH] fix prepare_dependence
---
build/build.sh | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/build/build.sh b/build/build.sh
index d66da9a..696a902 100755
--- a/build/build.sh
+++ b/build/build.sh
@@ -228,6 +228,30 @@ function prepare_dependence()
return 1
fi
+ yum install -y libbpf-devel
+ if [ $? -ne 0 ];then
+ echo "Error: Failed to install libbpf-devel."
+ return 1
+ fi
+
+ yum install -y clang
+ if [ $? -ne 0 ];then
+ echo "Error: Failed to install clang."
+ return 1
+ fi
+
+ yum install -y llvm
+ if [ $? -ne 0 ];then
+ echo "Error: Failed to install llvm."
+ return 1
+ fi
+
+ yum install -y java-1.8.0-openjdk-devel
+ if [ $? -ne 0 ];then
+ echo "Error: Failed to install java-1.8.0-openjdk-devel"
+ return 1
+ fi
+
return 0
}
--
2.33.0