跳到內容
繁體中文

安裝與下載

以下 v0.0.18 新增發布資訊暫以英文提供;既有譯文保留。 English · 简体中文

This page targets the v0.0.18 experimental prerelease. Use the actual v0.0.18 Release and its assets; documentation alone does not establish completed publication or production readiness.

Download the target archive below, its manifest and SHA256SUMS from the v0.0.18 Release. native_ci-* artifacts are CI examples, not CLI installers.

系統 架構 歸檔文件
macOS Apple Silicon / arm64 ku-v0.0.18-aarch64-apple-darwin.tar.gz
Windows x64 / MSVC ku-v0.0.18-x86_64-pc-windows-msvc.tar.gz
Linux x64 / GNU ku-v0.0.18-x86_64-unknown-linux-gnu.tar.gz

下載校驗檔案: SHA256SUMS

沒有覈實的其他平台安裝包。跨平台編譯能力也不表示任意操作系統或架構已有發行包。

  1. 對照 Release 的 SHA256SUMS 校驗歸檔;並列 .manifest.json 提供歸檔和文件清單信息。校驗和用於檢查完整性,不是發佈者簽名。
  2. 把完整歸檔解壓到一個空目錄,閱讀其中的 README-INSTALL.md。保留 ku、libku.rlib、deps/ 和 native-tls/ 的相對佈局。
  3. 在解壓目錄檢查版本。macOS / Linux:
終端機視窗
./ku --version

Windows PowerShell:

終端機視窗
.\ku.exe --version

應顯示版本 0.0.18。需要從任意目錄呼叫時,把該目錄加入 PATH,再執行 ku --version。VS Code 擴展通過歸檔內的 ku-language-0.0.18.vsix 安裝。

上方平台包同時包含 Ku CLI(ku run 使用直譯器)和 ku-language-0.0.18.vsix。擴充功能目前隨平台包下載,沒有獨立的 VSIX 下載資產;這裡也沒有瀏覽器內執行直譯器。

解壓後,在 VS Code 擴充功能面板選擇 … → 從 VSIX 安裝…,開啟 ku-language-0.0.18.vsix,再重新載入視窗。也可以在解壓目錄執行:

終端機視窗
code --install-extension ./ku-language-0.0.18.vsix

擴充功能需要找到 Ku CLI。將解壓目錄加入 PATH,或在 VS Code 設定中將 ku.executablePath 指向 ku(Windows 為 ku.exe)的完整路徑。

操作 額外要求
ku run hello.ku / ku check hello.ku 對應平台的 Ku CLI
預設 ku build hello.ku 匹配目標的 Rust 1.89.0 及系統 linker;保留隨包的 Rust 依賴
ku build --backend c hello.ku 可工作的目標 C 編譯器與 linker
native 資料庫程序 另外安裝對應資料庫客戶端動態庫;發行包未包含這些庫

預設 build 的 runner 只嵌入入口原始碼,匯入模組仍從原路徑讀取。完整本地 import graph 的原始碼無關部署需要 native C 構建,並受後端支援範圍約束。

在已取得的倉庫根目錄執行:

終端機視窗
cargo +1.89.0 run --locked --release -- --version
cargo +1.89.0 run --locked --release -- run examples/hello.ku

The CLI and Cargo version for this release is 0.0.18. Record the Git commit, target and toolchain when building source; source-build success does not prove publication of a release artifact.

歸檔式安裝可移除自行解壓的 Ku 目錄,撤銷自己添加的 PATH 項,並在 VS Code 中卸載擴展。刪除前保留該目錄里自行創建的原始碼和配置。目前未覈實獨立的一鍵安裝器、包管理器安裝入口或 ku uninstall 命令。

下一步:執行第一個程序。安裝合同來源:發佈歸檔說明。

ku supervise has platform-specific prerequisites and memory metrics; see support boundaries. The macOS CLI can run programs, but this isolation mode is not natively supported.