zoukankan      html  css  js  c++  java
  • windows10安装ruby

    下载ruby

    下载地址:
    ruby各版本下载地址
    https://rubyinstaller.org/downloads/

    2.3.3版本
    https://www.cr173.com/soft/14252.html

    下载后安装
    这里以2.7.3为例

    双击安装后

    回车

    回车

    C:UsersAdministrator>ruby -v
    ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x64-mingw32]
    
    Z:Fsitegosrc
    ubyfofapro>gem -v
    3.1.6
    
    
    #报错没添加源
    C:UsersAdministrator>gem install bundler
    ERROR:  Could not find a valid gem 'bundler' (>= 0) in any repository
    
    # 报没有证书的错
    C:UsersAdministrator>gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
    Error fetching https://gems.ruby-china.com/:
            SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://gems.ruby-china.com/specs.4.8.gz)
    
    C:UsersAdministrator>gem sources -l
    *** CURRENT SOURCES ***
    
    

    报上面的错误没有证书,参照下面的连接解决
    https://www.pianshen.com/article/67147583/

    
    C:UsersAdministrator>gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
    https://gems.ruby-china.com/ added to sources
    source https://rubygems.org/ not present in cache
    
    
    C:UsersAdministrator>gem sources -l
    *** CURRENT SOURCES ***
    
    https://gems.ruby-china.com/
    
    C:UsersAdministrator>gem install bundler
    Fetching: bundler-2.2.17.gem (100%)
    Successfully installed bundler-2.2.17
    Parsing documentation for bundler-2.2.17
    Installing ri documentation for bundler-2.2.17
    Done installing documentation for bundler after 33 seconds
    1 gem installed
    
    C:UsersAdministrator>gem install rails -v 5.0.0
    
    
    [Haima的博客] http://www.cnblogs.com/haima/
  • 相关阅读:
    Python学习-if条件语句
    Python学习-变量
    认识Python
    win7分盘
    mysql环境变量配置
    mysql的下载及配置
    c# excel xls保存
    js 在线引用
    js layer.js
    vue day3 bootstrap 联动下拉
  • 原文地址:https://www.cnblogs.com/haima/p/14809932.html
Copyright © 2011-2022 走看看