• rvm,ruby的安装


    os: centos 7.5
    ruby:2.4.4

    安装rvm

    # curl -L get.rvm.io | bash -s stable
    
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   194  100   194    0     0    255      0 --:--:-- --:--:-- --:--:--   255
    100 24361  100 24361    0     0   7694      0  0:00:03  0:00:03 --:--:-- 16016
    Downloading https://github.com/rvm/rvm/archive/1.29.4.tar.gz
    Downloading https://github.com/rvm/rvm/releases/download/1.29.4/1.29.4.tar.gz.asc
    gpg: directory `/root/.gnupg' created
    gpg: new configuration file `/root/.gnupg/gpg.conf' created
    gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
    gpg: keyring `/root/.gnupg/pubring.gpg' created
    gpg: Signature made Mon 02 Jul 2018 03:41:26 AM CST using RSA key ID BF04FF17
    gpg: Can't check signature: No public key
    Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found. Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).
    
    GPG signature verification failed for '/usr/local/rvm/archives/rvm-1.29.4.tgz' - 'https://github.com/rvm/rvm/releases/download/1.29.4/1.29.4.tar.gz.asc'! Try to install GPG v2 and then fetch the public key:
    
        gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    
    or if it fails:
    
        command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
    
    the key can be compared with:
    
        https://rvm.io/mpapis.asc
        https://keybase.io/mpapis
    
    NOTE: GPG version 2.1.17 have a bug which cause failures during fetching keys from remote server. Please downgrade or upgrade to newer version (if available) or use the second method described above.

    导入public key

    # gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    
    gpg: keyring `/root/.gnupg/secring.gpg' created
    gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
    gpg: /root/.gnupg/trustdb.gpg: trustdb created
    gpg: key D39DC0E3: public key "Michal Papis (RVM signing) <mpapis@gmail.com>" imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg:               imported: 1  (RSA: 1)

    重新安装rvm

    # curl -L get.rvm.io | bash -s stable
    
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   194  100   194    0     0    401      0 --:--:-- --:--:-- --:--:--   401
    100 24361  100 24361    0     0  15023      0  0:00:01  0:00:01 --:--:-- 51286
    Downloading https://github.com/rvm/rvm/archive/1.29.4.tar.gz
    Downloading https://github.com/rvm/rvm/releases/download/1.29.4/1.29.4.tar.gz.asc
    gpg: Signature made Mon 02 Jul 2018 03:41:26 AM CST using RSA key ID BF04FF17
    gpg: Good signature from "Michal Papis (RVM signing) <mpapis@gmail.com>"
    gpg:                 aka "Michal Papis <michal.papis@toptal.com>"
    gpg:                 aka "[jpeg image of size 5015]"
    gpg: WARNING: This key is not certified with a trusted signature!
    gpg:          There is no indication that the signature belongs to the owner.
    Primary key fingerprint: 409B 6B17 96C2 7546 2A17  0311 3804 BB82 D39D C0E3
         Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36  166B E206 C29F BF04 FF17
    GPG verified '/usr/local/rvm/archives/rvm-1.29.4.tgz'
    Creating group 'rvm'
    Installing RVM to /usr/local/rvm/
    Installation of RVM in /usr/local/rvm/ is almost complete:
    
      * First you need to add all users that will be using rvm to 'rvm' group,
        and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.
    
      * To start using RVM you need to run `source /etc/profile.d/rvm.sh`
        in all your open shell windows, in rare cases you need to reopen all shell windows.
      * Please do NOT forget to add your users to the rvm group.
         The installer no longer auto-adds root or users to the rvm group. Admins must do this.
         Also, please note that group memberships are ONLY evaluated at login time.
         This means that users must log out then back in before group membership takes effect!

    安装一个ruby版本

    # source /usr/local/rvm/scripts/rvm
    # rvm list known
    # rvm install 1.9.3
    # rvm use 1.9.3
    # rvm remove 1.9.3
    
    # rvm install 2.4.4
    # rvm use 2.4.4
    # ruby --version
    ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-linux]
    

    参考:
    http://www.ruby-lang.org/en/

  • 相关阅读:
    前端时间格式化
    Navicat for Oracle
    在JSP中使用Session
    在JSP中使用MD5
    QTP的那些事用QTP测试Web上的Ajax
    VBS函数应用getobject的使用获得Automation对象
    QTP的那些事Excel导入QC没反应的解决方法
    QTP的那些事QC远程执行QTP经常出现QTP崩溃现象解决方案
    QTP的那些事自动化的个人体会感悟(转)
    QC在win7远程执行QTP脚本excel不能读取,及其其他win7问题解决方案(图解转)
  • 原文地址:https://www.cnblogs.com/ctypyb2002/p/9792941.html
Copyright © 2020-2023  润新知