問題描述
“目標不存在或不在 PATH 上。” 在“製作”之後 ("Target does not exist or is not on PATH." After 'make'‑ing)
我在 Ubuntu 上運行 JGrasp
並且每次嘗試運行我的 make‑d
程序時都會遇到這個問題。這是完整的錯誤信息:
‑‑‑‑jGRASP exec: /home/steve/workspace/project1/BSTTest
‑‑‑‑jGRASP wedge: could not execute /home/steve/workspace/project1/BSTTest
‑‑‑‑ error number 2.
‑‑‑‑
‑‑‑‑ Target does not exist or is not on PATH.
‑‑‑‑jGRASP: operation complete.
問題是,我可以在工作區的左側看到可執行文件BSTTest.exe
,我也可以使用ls ‑l
確認它的存在。
我已經花了 5 多個工時嘗試 google(可能用盡了 3‑4 頁的結果)並解決了這個問題及其不同的形式,並且非常感謝任何關於如何解決它或哪裡的信息問題可能來自。
其他信息:程序很好,我也可以編譯、鏈接和運行單個文件也很好。問題是我無法運行任何 make'd
可執行文件,因為 JGrasp
會引發“未找到”錯誤。錯誤不應該出現在我的 makefile
中,因為我使用的是
## 參考解法 #### 方法 1: Executables on Linux are not usually named ".exe" and jGRASP does not expect them to be. The easiest thing is to change all "BSTTest.exe" in the makefile to "BSTTest".
參考文件