Skip to content

Update installation page (zh_cn) #1709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions zh_cn/documentation/installation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ lang: zh_cn
* [Gentoo](#portage)
* [Arch Linux](#pacman)
* [OS X](#homebrew)
* [Solaris, OpenIndiana](#solaris)
* [OpenIndiana](#openindiana)
* [其他发行版](#other-systems)
* [安装工具](#installers)
* [ruby-build](#ruby-build)
Expand Down Expand Up @@ -57,8 +57,6 @@ Debian GNU/Linux 和 Ubuntu 使用 apt 包管理器。用法如下:
$ sudo apt-get install ruby-full
{% endhighlight %}

撰写本文时,在 Debian 和 Ubuntu 下,`ruby-full` 包提供的是老旧的 Ruby 2.3.1。

### yum(CentOS、Fedora 或 RHEL)
{: #yum}

Expand All @@ -80,7 +78,7 @@ Gentoo 使用 portage 包管理器。
$ sudo emerge dev-lang/ruby
{% endhighlight %}

一般来说,这将安装 1.9 和 2.0 版本,不过还有更多版本可供安装。如果想安装指定的版本,要在 `make.conf` 文件中设置 `RUBY_TARGETS`。详见 [Gentoo Ruby Project 网站][gentoo-ruby]。
安装指定的版本,要在 `make.conf` 文件中设置 `RUBY_TARGETS`。详见 [Gentoo Ruby Project 网站][gentoo-ruby]。


### pacman(Arch Linux)
Expand All @@ -98,7 +96,7 @@ $ sudo pacman -S ruby
### Homebrew(OS X)
{: #homebrew}

OS X El Capitan、Yosemite 和 Mavericks 内置了 Ruby 2.0。OS X Mountain Lion、Lion 和 Snow Leopard 内置了 Ruby 1.8.7
macOS (High) Sierra 和 OS X El Capitan 已内置了 Ruby 2.0

许多 OS X 用户使用 [Homebrew][homebrew] 作为包管理器。用 Homebrew 能够非常简单地获取到最新版的 Ruby:

Expand All @@ -109,15 +107,13 @@ $ brew install ruby
这将安装最新版的 Ruby。


### Solaris 和 OpenIndiana
{: #solaris}

[Sunfreeware][sunfreeware] 上的 Solaris 8 到 10 内置了 Ruby 1.8.7,[Blastwave][blastwave] 同样如此。Ruby 1.9.2p0 在 [Sunfreeware][sunfreeware] 上也有,但是这一版已经过时。
### OpenIndiana
{: #openindiana}

若想在 [OpenIndiana][openindiana] 上安装 Ruby,要使用 [Image Packaging System (IPS)][opensolaris-pkg] 客户端。这将直接从 OpenSolaris 代码库安装 Ruby 1.9 和 RubyGems:
若想在 [OpenIndiana][openindiana] 上安装 Ruby,要使用 Image Packaging System (IPS) 客户端。这将直接从 OpenIndiana 代码库安装 Ruby 和 RubyGems:

{% highlight sh %}
$ pkg install runtime/ruby-18
$ pkg install runtime/ruby
{% endhighlight %}

然而,第三方工具或许是获取最新版 Ruby 更好的方法。
Expand Down Expand Up @@ -219,9 +215,6 @@ $ sudo make install
[rubyinstaller]: https://rubyinstaller.org/
[railsinstaller]: http://railsinstaller.org/
[rubystack]: http://bitnami.com/stack/ruby/installer
[sunfreeware]: http://www.sunfreeware.com
[blastwave]: http://www.blastwave.org
[openindiana]: http://openindiana.org/
[opensolaris-pkg]: http://opensolaris.org/os/project/pkg/
[gentoo-ruby]: http://www.gentoo.org/proj/en/prog_lang/ruby/
[homebrew]: http://brew.sh/