简体   繁体   English

zsh 在 MacBook Pro 中使用代码块进行编码时,终端中没有显示此类文件或目录

[英]zsh no such file or directory shows in terminal while coding with codeblocks in MacBook Pro

/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/sayeeba/study programming/LIVE/bin/Debug/LIVE 
sh: /Users/sayeeba/study: No such file or directory

Process returned 127 (0x7F)   execution time : 0.003 s
Press ENTER to continue.

This is what it shows in terminal whenever I try to run code in codeblocks.每当我尝试在代码块中运行代码时,这就是它在终端中显示的内容。 I have used this method in environment>terminal to launch by deleting 'quoted form of' part.我在environment>terminal中使用了这种方法,通过删除“引用形式”部分来启动。 But this is not working.但这不起作用。

Your study programming directory has a space in the name.您的study programming目录的名称中有一个空格。 Spaces become problematic when used in definition like:空格在定义中使用时会出现问题,例如:

DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/sayeeba/study programming/LIVE/bin/Debug/LIVE 

Notice it could no find /Users/sayeeba/study and return the "No such file or directory" error.请注意,它找不到/Users/sayeeba/study并返回“没有这样的文件或目录”错误。

You could rename the directory to study_programming with an underscore instead of the space after study.您可以将目录重命名为study_programming使用下划线而不是学习后的空格。 Updating your path to use the underscore version should resolve the issue.更新您的路径以使用下划线版本应该可以解决该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM