From 1fe34f81f7cec52b025edb9e45c3a18145e6438a Mon Sep 17 00:00:00 2001 From: 6eanut <137808952+6eanut@users.noreply.github.com> Date: Thu, 11 Jul 2024 12:05:39 +0800 Subject: [PATCH] Update caffe-aarch64.sh --- 24-07/caffe/shell/caffe-aarch64.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/24-07/caffe/shell/caffe-aarch64.sh b/24-07/caffe/shell/caffe-aarch64.sh index 4769777..42d0959 100644 --- a/24-07/caffe/shell/caffe-aarch64.sh +++ b/24-07/caffe/shell/caffe-aarch64.sh @@ -3,6 +3,7 @@ set -e # 在遇到非零返回值时立即退出 echo "step1: 安装依赖包" +# 如果当前用户没有sudo权限,则注释掉下面两行,改用root用户来运行下面两行 sudo dnf install -y leveldb-devel snappy-devel opencv.aarch64 boost-devel hdf5-devel gflags-devel glog-devel lmdb-devel openblas.aarch64 sudo dnf install -y git wget tar gcc-c++ unzip automake libtool autoconf @@ -56,4 +57,4 @@ echo "# caffe" >> ~/.bashrc echo "export CAFFE=$CAFFE" >> ~/.bashrc echo "export PATH=$PATH" >> ~/.bashrc source ~/.bashrc -caffe --version || { echo "Caffe build failed"; exit 1; } \ No newline at end of file +caffe --version || { echo "Caffe build failed"; exit 1; }