… – CentOS 安装 bat
抄自:这里。
1、yum install rust cargo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
[root@abc~]# <strong>yum install rust cargo</strong> Loaded plugins: langpacks Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast base | 3.6 kB 00:00:00 epel | 3.2 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/4): extras/7/x86_64/primary_db | 204 kB 00:00:00 (2/4): epel/x86_64/updateinfo | 930 kB 00:00:00 (3/4): epel/x86_64/primary | 3.6 MB 00:00:00 (4/4): updates/7/x86_64/primary_db | 6.0 MB 00:00:01 epel 12696/12696 Resolving Dependencies --> Running transaction check ---> Package cargo.x86_64 0:1.29.0-3.el7 will be installed ---> Package rust.x86_64 0:1.29.2-3.el7 will be installed --> Processing Dependency: rust-std-static(x86-64) = 1.29.2-3.el7 for package: rust-1.29.2-3.el7.x86_64 --> Processing Dependency: libLLVM-5.0.so()(64bit) for package: rust-1.29.2-3.el7.x86_64 --> Running transaction check ---> Package llvm5.0-libs.x86_64 0:5.0.1-7.el7 will be installed ---> Package rust-std-static.x86_64 0:1.29.2-3.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================================================ Installing: cargo x86_64 1.29.0-3.el7 epel 3.2 M rust x86_64 1.29.2-3.el7 epel 34 M Installing for dependencies: llvm5.0-libs x86_64 5.0.1-7.el7 epel 13 M rust-std-static x86_64 1.29.2-3.el7 epel 36 M Transaction Summary ================================================================================================================================================================================================================ Install 2 Packages (+2 Dependent packages) Total download size: 87 M Installed size: 268 M Is this ok [y/d/N]: y Downloading packages: (1/4): cargo-1.29.0-3.el7.x86_64.rpm | 3.2 MB 00:00:01 (2/4): llvm5.0-libs-5.0.1-7.el7.x86_64.rpm | 13 MB 00:00:01 (3/4): rust-std-static-1.29.2-3.el7.x86_64.rpm | 36 MB 00:00:02 (4/4): rust-1.29.2-3.el7.x86_64.rpm | 34 MB 00:00:03 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 19 MB/s | 87 MB 00:00:04 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : llvm5.0-libs-5.0.1-7.el7.x86_64 1/4 Installing : rust-std-static-1.29.2-3.el7.x86_64 2/4 Installing : rust-1.29.2-3.el7.x86_64 3/4 Installing : cargo-1.29.0-3.el7.x86_64 4/4 Verifying : rust-std-static-1.29.2-3.el7.x86_64 1/4 Verifying : cargo-1.29.0-3.el7.x86_64 2/4 Verifying : rust-1.29.2-3.el7.x86_64 3/4 Verifying : llvm5.0-libs-5.0.1-7.el7.x86_64 4/4 Installed: cargo.x86_64 0:1.29.0-3.el7 rust.x86_64 0:1.29.2-3.el7 Dependency Installed: llvm5.0-libs.x86_64 0:5.0.1-7.el7 rust-std-static.x86_64 0:1.29.2-3.el7 Complete! |
2、cargo install bat
1 2 3 4 |
[root@iZ25p0mspneZ ~]# <strong>cargo install bat</strong> Updating registry `https://github.com/rust-lang/crates.io-index` Downloading bat v0.8.0 error: [35] SSL connect error (Cannot communicate securely with peer: no common encryption algorithm(s).) |
但却得到了上面的错误,于是又搜索了一番,解[……]