“目標不存在或不在 PATH 上。” 在“製作”之後 ("Target does not exist or is not on PATH." After 'make'-ing)


問題描述

“目標不存在或不在 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".

(by rocks6lbarowski)

參考文件

  1. "Target does not exist or is not on PATH." After 'make'‑ing (CC BY‑SA 2.5/3.0/4.0)

#jgrasp #C++ #makefile






相關問題

jGrasp Java Break Ctrl-C 在運行期間 (jGrasp Java Break Ctrl-C during Run)

使用 jGRASP 的 Java 編譯器錯誤 (Java compiler errors using jGRASP)

無法與 .class 文件交互 (Unable to interact with .class files)

“目標不存在或不在 PATH 上。” 在“製作”之後 ("Target does not exist or is not on PATH." After 'make'-ing)

jGRASP 上的編譯時間很慢——為什麼? (Slow compile times on jGRASP -- why?)

使用並行數組和用戶輸入 (Using Parrallel array and user input)

在製作蛇遊戲的過程中,無法弄清楚如何使動作正確 (In process of making snake game, Can't figure out how to make the movement right)

未找到主要方法、小程序或 MIDlet (No main methods, applets, or MIDlets found)

在 mac 上運行 jGRASP 時不顯示彩色按鈕? (Colored buttons don't show up when jGRASP is run on mac?)

java.lang.ClassCastException:trail1modified 不能轉換為 java.applet.Applet (java.lang.ClassCastException: trail1modified cannot be cast to java.applet.Applet)

如何顯示多個用戶輸入的答案以及如何將其全部寫入文本文件 (How to display several user inputted answers and how to write it all to a text file)

在 Jgrasp 中丟失了我的工具欄如何找回它? (Lost my toolbar in Jgrasp how to get it back?)







留言討論