亚洲精品亚洲人成在线观看麻豆,在线欧美视频一区,亚洲国产精品一区二区动图,色综合久久丁香婷婷

              當前位置:首頁 > IT技術(shù) > Windows編程 > 正文

              windows10安裝ruby
              2021-08-06 18:21:34

              下載ruby

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

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

              下載后安裝
              這里以2.7.3為例
              windows10安裝ruby_bundle

              雙擊安裝后
              windows10安裝ruby_rubygems_02

              回車
              windows10安裝ruby_rubygems_03

              回車

              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
              
              
              ?
              ?
              ?
              ?
              ?

              本文摘自 :https://blog.51cto.com/u

              開通會員,享受整站包年服務立即開通 >