InstallrubyviaRVM-创新互联
1. Install RVM and refer to https://rvm.io/
-- gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
-- \curl -sSL https://get.rvm.io | bash -s stable
2. Check the available version
[jiaxiaol@usda5p-scop01-admtool ~]$ rvm list known3. Install ruby 2.4.0:
[jiaxiaol@usda5p-scop01-admtool ~]$ rvm install 2.4.0 Searching for binary rubies, this might take some time. No binary rubies available for: centos/7/x86_64/ruby-2.4.0. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for centos. Installing requirements for centos. Installing required packages: libyaml-devel, readline-devel, libffi-devel, sqlite-devel......... Requirements installation successful. Installing Ruby from source to: /home/jiaxiaol/.rvm/rubies/ruby-2.4.0, this may take a while depending on your cpu(s)... ruby-2.4.0 - #downloading ruby-2.4.0, this may take a while depending on your connection... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 11.9M 100 11.9M 0 0 6499k 0 0:00:01 0:00:01 --:--:-- 6499k ruby-2.4.0 - #extracting ruby-2.4.0 to /home/jiaxiaol/.rvm/src/ruby-2.4.0.... ruby-2.4.0 - #configuring.................................................................. ruby-2.4.0 - #post-configuration.. ruby-2.4.0 - #compiling................................................................................. ruby-2.4.0 - #installing........................... ruby-2.4.0 - #making binaries executable.. ruby-2.4.0 - #downloading rubygems-2.6.12 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 749k 100 749k 0 0 2842k 0 --:--:-- --:--:-- --:--:-- 2851k No checksum for downloaded archive, recording checksum in user configuration. ruby-2.4.0 - #extracting rubygems-2.6.12.... ruby-2.4.0 - #removing old rubygems......... ruby-2.4.0 - #installing rubygems-2.6.12......................... ruby-2.4.0 - #gemset created /home/jiaxiaol/.rvm/gems/ruby-2.4.0@global ruby-2.4.0 - #importing gemset /home/jiaxiaol/.rvm/gemsets/global.gems............................................... ruby-2.4.0 - #generating global wrappers........ ruby-2.4.0 - #gemset created /home/jiaxiaol/.rvm/gems/ruby-2.4.0 ruby-2.4.0 - #importing gemsetfile /home/jiaxiaol/.rvm/gemsets/default.gems evaluated to empty gem list ruby-2.4.0 - #generating default wrappers........ ruby-2.4.0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). Install of ruby-2.4.0 - #complete Ruby was built without documentation, to build it run: rvm docs generate-ri [jiaxiaol@usda5p-scop01-admtool ~]$ [jiaxiaol@usda5p-scop01-admtool ~]$ rvm list rvm rubies =* ruby-2.4.0 [ x86_64 ] # => - current # =* - current && default # * - default [jiaxiaol@usda5p-scop01-admtool ~]$另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
分享文章:InstallrubyviaRVM-创新互联
文章链接:http://pwwzsj.com/article/gepci.html