Skip to content

自动构建 Linux 二进制失败:客户端调用了不存在的本地路径 D:\a\codex-tools\codex-tools\src-tauri\proxyd\Cargo.toml #71

@xingfeng0831

Description

@xingfeng0831

问题描述

我在 Windows 客户端里执行“部署远程服务器 server”时失败。

提示信息最开始是:

当前平台暂未内置一键安装 cargo-zigbuild / Zig,请先手动安装。

后续继续尝试时,又出现了自动构建 Linux 二进制失败的问题,错误信息里显示客户端在本地调用了一个并不存在的路径:

D:\a\codex-tools\codex-tools\src-tauri\proxyd\Cargo.toml

我的本机并没有这个目录,因此自动构建失败。


复现方式

  1. 在 Windows 上打开 codex-tools 客户端
  2. 进入远程服务器部署相关功能
  3. 选择部署到 Linux 服务器
  4. 开始部署
  5. 自动构建 Linux 二进制失败

实际结果

报错如下:

自动构建 Linux 二进制失败。已尝试自动补齐本机 Linux 构建依赖,但仍未完成交叉编译。

详情:
cargo zigbuild x86_64-unknown-linux-musl:
执行本地命令失败
"C:\\Users\\Admin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\bin\\cargo.exe"
"zigbuild"
"--manifest-path"
"D:\\a\\codex-tools\\codex-tools\\src-tauri\\proxyd\\Cargo.toml"
"--release"
"--target"
"x86_64-unknown-linux-musl":
目录名称无效。 (os error 267)

cargo build x86_64-unknown-linux-musl:
执行本地命令失败
"C:\\Users\\Admin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\bin\\cargo.exe"
"build"
"--manifest-path"
"D:\\a\\codex-tools\\codex-tools\\src-tauri\\proxyd\\Cargo.toml"
"--release"
"--target"
"x86_64-unknown-linux-musl":
目录名称无效。 (os error 267)

cargo zigbuild x86_64-unknown-linux-gnu:
执行本地命令失败
"C:\\Users\\Admin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\bin\\cargo.exe"
"zigbuild"
"--manifest-path"
"D:\\a\\codex-tools\\codex-tools\\src-tauri\\proxyd\\Cargo.toml"
"--release"
"--target"
"x86_64-unknown-linux-gnu":
目录名称无效。 (os error 267)

cargo build x86_64-unknown-linux-gnu:
执行本地命令失败
"C:\\Users\\Admin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\bin\\cargo.exe"
"build"
"--manifest-path"
"D:\\a\\codex-tools\\codex-tools\\src-tauri\\proxyd\\Cargo.toml"
"--release"
"--target"
"x86_64-unknown-linux-gnu":
目录名称无效。 (os error 267)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions