簡體   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.

每當我嘗試在代碼塊中運行代碼時,這就是它在終端中顯示的內容。 我在environment>terminal中使用了這種方法,通過刪除“引用形式”部分來啟動。 但這不起作用。

您的study programming目錄的名稱中有一個空格。 空格在定義中使用時會出現問題,例如:

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

請注意,它找不到/Users/sayeeba/study並返回“沒有這樣的文件或目錄”錯誤。

您可以將目錄重命名為study_programming使用下划線而不是學習后的空格。 更新您的路徑以使用下划線版本應該可以解決該問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM