0

I've installed Rust on my Windows 7 64-bit system via MSYS2 successfully, but when trying to install Cargo from nightly build, I get the following error from install.sh:

$ ./install.sh
install: looking for install programs
install:
install: found mkdir
install: found printf
install: found cut
install: found grep
install: found uname
install: found tr
install: found sed
install:
install: processing ./install.sh args
install:
install: CFG_DESTDIR          :=
install: CFG_PREFIX           := /usr/local
install: CFG_LIBDIR           := /usr/local/lib
install: CFG_MANDIR           := /usr/local/share/man
install:
install: validating ./install.sh args
install:
install: verifying platform can run binaries
install: error: can't execute rustc binary on this platform

While rustc works just fine:

$ rustc --version
rustc 0.13.0-nightly (5ba610265 2014-12-25 18:01:36 +0000)

Am I doing something wrong?

4

1 回答 1

1

我不知道如何开始install.sh工作,但我已经成功使用了 Github repo 提供的预编译二进制文件。自述文件链接到 6 个预编译的二进制文件,每个用于 Windows、OS X 和 Linux,每个用于 32 位和 64 位架构。

这是一个.tar.gz文件,所以你需要7-Zip之类的东西来解压它。打开包装后,您可以简单地移动cargo.exePATH. 由于我还将Rust nightlies安装到.C:\Rustcargo.exeC:\Rust\bin

于 2014-12-28T16:11:36.753 回答