/ usr / bin / bash:没有这样的文件或目录

时间:2019-10-07 20:36:08

标签: linux bash testing atlas

我在尝试运行软件时遇到以下错误:

/afs/cern.ch/work/a/atnourji/ROOTAnalysisTutorial/build/atlas_build_run.sh:第16行:/ usr / bin / bash:无此类文件或目录

对此事有何建议,不胜感激?

$ nano /afs/cern.ch/work/a/atnourji/ROOTAnalysisTutorial/build/atlas_build_run.sh:

#!/user/bin/bash

# Transmit errors: set -e

# Set up the environment: source /afs/cern.ch/work/a/atnourji/ROOTAnalysisTutorial/build/x86_64-centos7-gcc62-opt/setup.sh || exit 1

# Run the command: exec $* || exit 1 ~

1 个答案:

答案 0 :(得分:0)

我建议使用#!/usr/bin/env bash作为shebang(免责声明:我的回答)。 / user中带有“ e”的不是标准的* nix路径。

相关问题