[英]No such file 'haxe' sublime text 3
我正在嘗試在崇高的文字3中編譯haxe,但是我總是會收到錯誤:
[Errno 2] No such file or directory: 'haxe'
[cmd: ['haxe', 'build.hxml']]
[dir: /home/bob/Desktop]
[path: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/bob/.local/bin:/home/bob/bin]
[Finished]
我正在運行fedora 22,並在主文件夾中提取了Haxe tar,還按了Ctrl + Shift + P並安裝了haxelib和Haxe軟件包。 我的兩個文件是heloWorld.hx
class HelloWorld {
static public function main() {
trace("Hello World");
}
}
並生成一個build.hxml:
# Autogenerated build.hxml
# hellowWorld (js:hellowworld.js)
-main hellowWorld
js hellowworld.js
為什么不構建系統選項或根本不編譯呢?
我發現我需要將haxe可執行文件添加到/ usr / bin /,因為這是在Linux上通常尋找路徑的地方。 發生的另一個問題是,無論類名是否為小寫,我都會收到錯誤消息:
Error: Could not process argument haxe -main HelloWorld
Class name must start with uppercase character
Build failed
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.