Windows搭建Ruby环境
来源:互联网 发布:网络矢量分析仪 编辑:程序博客网 时间:2024/06/11 11:46
安装ruby
:http://rubyinstaller.org/downloads/
(比如Ruby 2.1.8-x64.exe
)
把bin
(比如C:\Ruby21-x64\bin
)加入环境变量PATH
安装 DevKit
: http://rubyinstaller.org/downloads/
解压到 C:\Ruby21-x64\DevKit
cd C:\Ruby21-x64\DevKitruby dk.rb init
编辑config.yml
:
---- C:/Ruby21-x64
ruby dk.rb install
配置gem
gem sources --remove https://rubygems.org/gem sources --add https://gems.ruby-china.org/
如果遇到SSL验证问题:
Error fetching https://gems.ruby-china.org/: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://gems.ruby-china.org/specs.4.8.gz)
方法一,https
换成http
方法二,下载http://curl.haxx.se/ca/cacert.pem
到 bin
(C:\Ruby21-x64\bin
),并设置系统环境变量SSL_CERT_FILE
= C:\Ruby21-x64\bin\cacert.pem
安装bundler
:
gem install bundler
配置源:
bundle config mirror.https://rubygems.org https://gems.ruby-china.org/
0 0
- Windows搭建Ruby环境
- Windows下ruby on rails环境搭建
- Windows下ruby on rails环境搭建
- 【ruby】windows自动化watir开发环境搭建
- windows下Ruby开发环境搭建
- Linux和Windows搭建Ruby开发环境
- windows 搭建ruby rails 环境过程
- Windows下Ruby+RubyMine环境搭建
- Ruby on Rails 环境搭建 [Windows xp]
- 在Windows 7上搭建 Ruby环境
- windows下搭建Ruby+Sass环境
- windows下搭建Ruby+Sass环境
- rails/ruby/gem/RubyOnRails环境搭建-Windows
- Ruby入门:windows下Ruby开发环境搭建
- Windows系统下搭建搭建Ruby on Rails开发环境
- windows下搭建Ruby(基于eclipse的环境)开发环境
- windows下搭建Ruby(基于eclipse的环境)开发环境
- windows下搭建 Ruby on Rails 开发环境
- tag标签文件
- NSTimer、CADisplayLink、GCD 三种定时器的用法
- 百度之星-Problem D
- 计算10000的阶乘
- JAVA常用工具总结
- Windows搭建Ruby环境
- Connection to https://dl-ssl.google.com refused
- ClassLoader获取的方式
- Yii2 使用基本配置
- 安装使用ssdb个人记录
- Gitlab的使用
- 单片机I/O口推挽输出与开漏输出的区别
- Swift高阶函数
- Retrofit 简洁的网络请求神器