在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
执行安装ruby命令: yum install ruby [root@192 ~]# yum install ruby CentOS-8 - AppStream 785 kB/s | 6.4 MB 00:08 CentOS-8 - Base 2.1 MB/s | 5.0 MB 00:02 CentOS-8 - Extras 997 B/s | 2.1 kB 00:02 Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing: ruby x86_64 2.5.5-105.module_el8.1.0+214+9be47fd7 AppStream 86 k Installing dependencies: ruby-irb noarch 2.5.5-105.module_el8.1.0+214+9be47fd7 AppStream 102 k ruby-libs x86_64 2.5.5-105.module_el8.1.0+214+9be47fd7 AppStream 2.9 M rubygem-json x86_64 2.1.0-105.module_el8.1.0+214+9be47fd7 AppStream 90 k rubygem-psych x86_64 3.0.2-105.module_el8.1.0+214+9be47fd7 AppStream 95 k Installing weak dependencies: rubygem-bigdecimal x86_64 1.3.4-105.module_el8.1.0+214+9be47fd7 AppStream 97 k rubygem-did_you_mean noarch 1.2.0-105.module_el8.1.0+214+9be47fd7 AppStream 90 k rubygem-io-console x86_64 0.4.6-105.module_el8.1.0+214+9be47fd7 AppStream 66 k rubygem-openssl x86_64 2.1.2-105.module_el8.1.0+214+9be47fd7 AppStream 190 k rubygem-rdoc noarch 6.0.1-105.module_el8.1.0+214+9be47fd7 AppStream 486 k rubygems noarch 2.7.6.2-105.module_el8.1.0+214+9be47fd7 AppStream 308 k Enabling module streams: ruby 2.5 Transaction Summary ================================================================================ Install 11 Packages Total download size: 4.5 M Installed size: 15 M Is this ok [y/N]: y Downloading Packages: (1/11): ruby-2.5.5-105.module_el8.1.0+214+9be47 481 kB/s | 86 kB 00:00 (2/11): ruby-irb-2.5.5-105.module_el8.1.0+214+9 230 kB/s | 102 kB 00:00 (3/11): rubygem-bigdecimal-1.3.4-105.module_el8 264 kB/s | 97 kB 00:00 (4/11): rubygem-io-console-0.4.6-105.module_el8 580 kB/s | 66 kB 00:00 (5/11): rubygem-did_you_mean-1.2.0-105.module_e 174 kB/s | 90 kB 00:00 (6/11): rubygem-json-2.1.0-105.module_el8.1.0+2 250 kB/s | 90 kB 00:00 (7/11): rubygem-psych-3.0.2-105.module_el8.1.0+ 437 kB/s | 95 kB 00:00 (8/11): rubygem-openssl-2.1.2-105.module_el8.1. 532 kB/s | 190 kB 00:00 (9/11): rubygem-rdoc-6.0.1-105.module_el8.1.0+2 913 kB/s | 486 kB 00:00 (10/11): rubygems-2.7.6.2-105.module_el8.1.0+21 589 kB/s | 308 kB 00:00 (11/11): ruby-libs-2.5.5-105.module_el8.1.0+214 1.5 MB/s | 2.9 MB 00:02 -------------------------------------------------------------------------------- Total 1.8 MB/s | 4.5 MB 00:02 warning: /var/cache/dnf/AppStream-a520ed22b0a8a736/packages/ruby-2.5.5-105.module_el8.1.0+214+9be47fd7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY CentOS-8 - AppStream 1.6 MB/s | 1.6 kB 00:00 Importing GPG key 0x8483C65D: Userid : "CentOS (CentOS Official Signing Key) <[email protected]>" Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial Is this ok [y/N]: y Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : ruby-libs-2.5.5-105.module_el8.1.0+214+9be47fd7.x8 1/11 Installing : ruby-irb-2.5.5-105.module_el8.1.0+214+9be47fd7.noa 2/11 Installing : rubygem-bigdecimal-1.3.4-105.module_el8.1.0+214+9b 3/11 Installing : rubygem-did_you_mean-1.2.0-105.module_el8.1.0+214+ 4/11 Installing : rubygem-io-console-0.4.6-105.module_el8.1.0+214+9b 5/11 Installing : rubygem-json-2.1.0-105.module_el8.1.0+214+9be47fd7 6/11 Installing : rubygem-openssl-2.1.2-105.module_el8.1.0+214+9be47 7/11 Installing : rubygem-psych-3.0.2-105.module_el8.1.0+214+9be47fd 8/11 Installing : rubygem-rdoc-6.0.1-105.module_el8.1.0+214+9be47fd7 9/11 Installing : rubygems-2.7.6.2-105.module_el8.1.0+214+9be47fd7.n 10/11 Installing : ruby-2.5.5-105.module_el8.1.0+214+9be47fd7.x86_64 11/11 Running scriptlet: ruby-2.5.5-105.module_el8.1.0+214+9be47fd7.x86_64 11/11 Verifying : ruby-2.5.5-105.module_el8.1.0+214+9be47fd7.x86_64 1/11 Verifying : ruby-irb-2.5.5-105.module_el8.1.0+214+9be47fd7.noa 2/11 Verifying : ruby-libs-2.5.5-105.module_el8.1.0+214+9be47fd7.x8 3/11 Verifying : rubygem-bigdecimal-1.3.4-105.module_el8.1.0+214+9b 4/11 Verifying : rubygem-did_you_mean-1.2.0-105.module_el8.1.0+214+ 5/11 Verifying : rubygem-io-console-0.4.6-105.module_el8.1.0+214+9b 6/11 Verifying : rubygem-json-2.1.0-105.module_el8.1.0+214+9be47fd7 7/11 Verifying : rubygem-openssl-2.1.2-105.module_el8.1.0+214+9be47 8/11 Verifying : rubygem-psych-3.0.2-105.module_el8.1.0+214+9be47fd 9/11 Verifying : rubygem-rdoc-6.0.1-105.module_el8.1.0+214+9be47fd7 10/11 Verifying : rubygems-2.7.6.2-105.module_el8.1.0+214+9be47fd7.n 11/11 Installed: ruby-2.5.5-105.module_el8.1.0+214+9be47fd7.x86_64 rubygem-bigdecimal-1.3.4-105.module_el8.1.0+214+9be47fd7.x86_64 rubygem-did_you_mean-1.2.0-105.module_el8.1.0+214+9be47fd7.noarch rubygem-io-console-0.4.6-105.module_el8.1.0+214+9be47fd7.x86_64 rubygem-openssl-2.1.2-105.module_el8.1.0+214+9be47fd7.x86_64 rubygem-rdoc-6.0.1-105.module_el8.1.0+214+9be47fd7.noarch rubygems-2.7.6.2-105.module_el8.1.0+214+9be47fd7.noarch ruby-irb-2.5.5-105.module_el8.1.0+214+9be47fd7.noarch ruby-libs-2.5.5-105.module_el8.1.0+214+9be47fd7.x86_64 rubygem-json-2.1.0-105.module_el8.1.0+214+9be47fd7.x86_64 rubygem-psych-3.0.2-105.module_el8.1.0+214+9be47fd7.x86_64 Complete! [root@192 ~]# [root@192 ~]# [root@192 ~]# [root@192 ~]# [root@192 ~]# ruby -v ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux] centos8就是比centos7要好啊,ruby自动安装就是ruby2.5.5版本,而centos7自动安装就是ruby2.0.0版本。 但是很多软件比如redis要求最低安装ruby2.3.0版本。 end. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论