help
  • Introduction
  • Alpine Linux 源使用帮助
  • Anaconda 源使用帮助
  • AOSC Linux 源使用帮助
  • Apache 源使用帮助
  • Arch Linux 源使用帮助
  • Arch Linux CN 源使用帮助
  • CentOS 源使用帮助
  • CocoaPods 源使用帮助
  • CPAN 源使用帮助
  • CRAN 源使用帮助
  • CTAN 源使用帮助
  • Cygwin 源使用帮助
  • Dart 加速源使用帮助
  • Deb Multimedia源使用帮助
  • Debian源使用帮助
  • Docker Hub 源使用帮助
  • Docker-CE 源使用帮助
  • epel 源使用帮助
  • Fedora 源使用帮助
  • Gentoo 源使用帮助
  • Homebrew 源使用帮助
  • Homebrew-bottles 源使用帮助
  • Homebrew-cask 源使用帮助
  • Homebrew-core 源使用帮助
  • Kali Linux 源使用帮助
  • Linux mint 源使用帮助
  • Manjaro Linux 源使用帮助
  • MariaDB 源使用帮助
  • Maven 源使用帮助
  • MongoDB 源使用帮助
  • Msys2 源使用帮助
  • Node 源使用帮助
  • openSUSE 源使用帮助
  • Repoforge 源使用帮助
  • PostgreSQL 源使用帮助
  • PPA 加速源使用帮助
  • Pritunl 源使用帮助
  • Pypi 源使用帮助
  • Raspbian 源使用帮助
  • Repoforge 源使用帮助
  • Ruby 源使用帮助
  • Rubygems 源使用帮助
  • saltstack 源使用帮助
  • Ubuntu 源使用帮助
  • Ubuntu-Ports 源使用帮助
  • Virutalbox 源使用帮助
  • Vscode 源使用帮助
  • Zabbix 源使用帮助
  • Zerotier 源使用帮助
Powered by GitBook
On this page
  • 地址
  • 说明
  • 使用说明
  • 相关链接

Was this helpful?

Ruby 源使用帮助

PreviousRepoforge 源使用帮助NextRubygems 源使用帮助

Last updated 4 years ago

Was this helpful?

地址

说明

Ruby源码镜像

使用说明

建议使用rvm镜像管理,下面以Ubuntu 16.04为例安装。

  • 安装rvm并配置源

gpg --keyserver hkp://pgp.mit.edu --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm

# .zshrc版本
tee -a ~/.zshrc << EOF
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 
EOF

# .bashrc版本
tee -a ~/.bashrc << EOF
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 
EOF

echo "ruby_url=https://mirrors.shuosc.cn/ruby/ruby" > ~/.rvm/user/db

rvm list known #查看ruby源中支持的版本
  • 从源码安装ruby

rvm install ruby --disable-binary
ruby -v

相关链接

官方主页:

源码下载地址:

ruby中国:

https://mirrors.shuosc.cn/ruby/
http://www.ruby-lang.org/
http://cache.ruby-lang.org/
https://ruby-china.org/