【发布时间】:2015-03-16 16:18:57
【问题描述】:
我在 http://doc.rust-lang.org/book/hello-cargo.html 的 Rust 页面上关注了 Rust 书籍/教程,并在执行 Cargo 部分时收到以下错误。命令是cargo build --verbose。由于构建过程失败,我使用了详细标志。看起来 Cargo 正在尝试构建一个名为“verbose”的文件。我确实使用了详细标志;这几乎就像发送给 rustc 的参数缺少 -- 前缀?
Process didn't exit successfully: `rustc -v verbose` (status=101)
--- stderr
error: couldn't read verbose: IoError { kind: FileNotFound, desc: "couldn\'t ope
n path as file", detail: Some("file not found (OS Error 2: The system cannot fin
d the file specified.\r\n); path=verbose; mode=open; access=read") }
Cargo.toml 文件包含以下文本:
[package]
name = "hello_world" version = "0.0.1"
authors = [ "Your name <you@example.com>" ]
[[bin]]
name = "hello_world"
我正在运行的计算机是 Windows 7 64 位,使用 2015 年 1 月 18 日两天前的 64 位夜间安装。
【问题讨论】:
-
另外,您应该始终向我们提供导致此输出的确切命令。
-
确保你运行的是
cargo build --verbose而不是cargo build -- verbose
标签: rust rust-cargo