linux - 非法选项 -p /bin/sh: 1: Usage:: not found
问题描述
我正在使用 Linux,我从 git 存储库获取 AT91BootStrap 的源代码
git clone git://github.com/linux4sam/at91bootstrap.git
克隆存储库后,在 AT91Bootstrap 根目录下,我找到一个 board/sama5d27_som1_ek 文件夹,其中包含几个默认配置文件。
我可以通过执行以下操作将 AT91Bootstrap 配置为从 SD 卡加载:
$ make mrproper
$ make sama5d27_som1_eksd_uboot_defconfig
但是当我make sama5d27_som1_eksd_uboot_defconfig
在 Linux 终端中输入命令时,它会显示一条错误消息:
非法选项 -p /bin/sh: 1: Usage:: not found
我该如何解决这个问题?
这是我正在关注的教程: https ://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d27Som1EKMainPage#Get_AT91Bootstrap_Source_Code
这是的输出mkdir --help
:
Usage: mkdir [OPTION]... DIRECTORY...
Create the DIRECTORY(ies), if they do not already exist.
Mandatory arguments to long options are mandatory for short options too.
-m, --mode=MODE set file mode (as in chmod), not a=rwx - umask
-p, --parents no error if existing, make parent directories as needed
-v, --verbose print a message for each created directory
-Z set SELinux security context of each created directory
to the default type
--context[=CTX] like -Z, or if CTX is specified then set the SELinux
or SMACK security context to CTX
--help display this help and exit
--version output version information and exit
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/mkdir>
or available locally via: info '(coreutils) mkdir invocation'
这是为了sh --version
:
sh: 0: Illegal option --
解决方案
推荐阅读
- php - 对如何遍历 subArray 感到困惑
- c# - 模型属性对它绑定在剃须刀页面中的输入的值有很大影响
- python - django中的循环导入错误
- java - 如何使用 Java 引用布局对象 (XML) 来开发应用程序?
- unit-testing - Vue with jest - 使用异步调用进行测试
- c# - 如何在运行进程时保持父窗体处于活动状态?
- javascript - 使用 Python 和 Flask。我正在尝试使用 javascript 让我的 flash 消息在几秒钟后消失
- javascript - 将上下文传递给回调中的 ajax 调用
- c++ - 如何在命名空间内创建一个类?
- r - 通过 grImport2 绘制 svg 在终端中可以正常工作,而不是通过 knitr