:: Retrieving packages... wget-1.24.5-1-x86_64 772.4 KiB 74.5 KiB/s 00:10 [###############################] 100% curl-8.6.0-1-x86_64 716.3 KiB 132 KiB/s 00:05 [###############################] 100% libgnutls-3.8.3-1-x86_64 1386.0 KiB 80.2 KiB/s 00:17 [###############################] 100% libopenssl-3.2.1-1-x86_64 1790.2 KiB 23.8 KiB/s 01:15 [###############################] 100% xz-5.6.1-1-x86_64 541.5 KiB 102 KiB/s 00:05 [###############################] 100% libsqlite-3.45.1-1-x86_64 678.1 KiB 10.4 KiB/s 01:05 [###############################] 100% libxml2-2.12.6-1-x86_64 508.8 KiB 21.3 KiB/s 00:24 [###############################] 100% openssl-3.2.1-1-x86_64 625.6 KiB 10.1 KiB/s 01:02 [###############################] 100% pacman-contrib-1.10.5-1-x86_64 4.6 MiB 39.2 KiB/s 02:01 [###############################] 100% gnupg-2.4.5-1-x86_64 2.5 MiB 19.2 KiB/s 02:13 [###############################] 100% Total (10/25) 16.1 MiB 124 KiB/s 02:13 [###############################] 100% error: failed retrieving file 'libgnutls-3.8.3-1-x86_64.pkg.tar.zst' from mirror.msys2.org : SSL connection timeout error: failed retrieving file 'libgnutls-3.8.3-1-x86_64.pkg.tar.zst' from repo.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed retrieving file 'libsqlite-3.45.1-1-x86_64.pkg.tar.zst.sig' from mirrors.ustc.edu.cn : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds warning: failed to retrieve some files error: failed to commit transaction (unexpected error) Errors occurred, no packages were upgraded.
还是出现了一些报错:
1 2 3 4 5 6 7 8 9
error: failed retrieving file 'mingw-w64-x86_64-zstd-1.5.5-1-any.pkg.tar.zst' from mirror.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed retrieving file 'mingw-w64-x86_64-sqlite3-3.45.2-1-any.pkg.tar.zst.sig' from mirrors.bfsu.edu.cn : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed retrieving file 'mingw-w64-x86_64-zstd-1.5.5-1-any.pkg.tar.zst' from repo.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed retrieving file 'mingw-w64-x86_64-binutils-2.42-1-any.pkg.tar.zst.sig' from mirrors.bfsu.edu.cn : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed retrieving file 'mingw-w64-x86_64-gdb-multiarch-14.2-1-any.pkg.tar.zst.sig' from mirrors.bfsu.edu.cn : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds warning: too many errors from mirrors.bfsu.edu.cn, skipping for the remainder of this transaction warning: failed to retrieve some files error: failed to commit transaction (unexpected error) Errors occurred, no packages were upgraded.
在MSYS2 MSYS 终端里安装好了MinGW-w64 工具链,如何编译rust项目?
实际上这个终端里连rust环境都没有,所以要安装一个rust。
1
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh