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; }