当我在目录中使用命令“make”时,出现以下错误,
root@sahil:~/Desktop/Untitled Folder/rtlwifi_new-master# cd
rtlwifi_new-master
bash: cd: rtlwifi_new-master: No such file or directory
root@sahil:~/Desktop/Untitled Folder/rtlwifi_new-master# make
make -C /lib/modules/4.15.0-34-generic/build M=/home/sahil/Desktop/Untitled Folder/rtlwifi_new-master modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-34-generic'
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
arch/x86/Makefile:156: CONFIG_X86_X32 enabled but no binutils support
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
/bin/sh: 1: cannot create /home/sahil/Desktop/Untitled/.cache.mk: Directory nonexistent
make[1]: *** No rule to make target 'Folder/rtlwifi_new-master'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-34-generic'
Makefile:58: recipe for target 'all' failed
make: *** [all] Error 2
root@sahil:~/Desktop/Untitled Folder/rtlwifi_new-master#
我不知道如何修复它并且正在寻求帮助。
答案1
来自评论:将文件夹重命名Untitled Folder
为其他名称,无需空间类似Untitled_folder
helps.make
命令尝试创建一个文件夹/home/sahil/Desktop/Untitled/.cache.mk
,但由于名为 as 的文件夹Untitled
不存在,因此无法创建.cache.mk
文件夹。这导致了错误。
在文件夹内执行时,make
它会将路径作为一个整体。但由于路径包含“空格”,因此它会复制空格之前的路径并将其视为新路径。此外,它将空格后面的内容视为某个参数,这导致了另一个错误make[1]: *** No rule to make target 'Folder/rtlwifi_new-master'. Stop
。
有一个很好的解释经过塞莱达在问题中文件名中不允许有空格吗?在Unix 和 Linux:
建议不要在文件名中使用空格,因为空格可能会被那些对空格支持不佳的软件误解。可以说,这样的软件是有缺陷的。但同样可以说,像 shell 脚本这样的编程语言很容易编写出在文件名中包含空格时会崩溃的软件,而这些错误往往会被忽略,因为 shell 脚本的开发人员通常不会使用文件名中包含空格的脚本进行测试