---
title: 编译过程中提示“cannot stat `../bin/d[agm]*'”
description: "在运行Allwmake编译SCOTCH时编译失败，提示："
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0096.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0096.html
indexId: 85587ed0744cb94b6633760fe80147e3b0d2f954ca4e3627013618a997589e5774
---
# 编译过程中提示“cannot stat `../bin/d[agm]*'”

#### 问题现象描述

在运行Allwmake编译SCOTCH时编译失败，提示：

```
“cp: cannot stat `../bin/d[agm]*': No such file or directory
make: [install] Error 1 (ignored)”
```


#### 关键过程、根本原因分析

并非是d[agm]造成的，一般出现在重复运行安装程序时，scotch文件夹没有被清理，可以在scotch源码路径内运行make distclean后再手动安装scotch程序。


#### 结论、解决方案及效果

1. 删除安装失败的文件路径。
  linuxARM64GccDPInt32是根据安装环境的架构及使用的编译器进行命名的，需要在具体安装过程中确认路径名称。

  rm -rf /path/to/OPENFOAM/ThirdParty-v1906/platforms/linuxARM64GccDPInt32/scotch_6.0.6/

2. 进入scotch源码内手动编译安装。
  手动安装scotch需要将安装路径设置为对前面删除的安装路径。

  make scotch

  make esmumps

  make ptscotch

  make prefix=/path/to/OPENFOAM/ThirdParty-v1906/platforms/linuxARM64GccDPInt32/scotch_6.0.6/ install

3. 再次执行Allwmake脚本继续编译安装。
  foam

  ./Allwmake -j
