简体   繁体   中英

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. But this is not working.

Your study programming directory has a space in the name. 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.

You could rename the directory to study_programming with an underscore instead of the space after study. Updating your path to use the underscore version should resolve the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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