Skip to content

Commit 7b4204d

Browse files
dsh0416JuanitoFatas
authored andcommitted
Update installation page (zh_cn) (#1709)
1 parent f7db758 commit 7b4204d

File tree

1 file changed

+7
-14
lines changed
  • zh_cn/documentation/installation

1 file changed

+7
-14
lines changed

zh_cn/documentation/installation/index.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ lang: zh_cn
2525
* [Gentoo](#portage)
2626
* [Arch Linux](#pacman)
2727
* [OS X](#homebrew)
28-
* [Solaris, OpenIndiana](#solaris)
28+
* [OpenIndiana](#openindiana)
2929
* [其他发行版](#other-systems)
3030
* [安装工具](#installers)
3131
* [ruby-build](#ruby-build)
@@ -57,8 +57,6 @@ Debian GNU/Linux 和 Ubuntu 使用 apt 包管理器。用法如下:
5757
$ sudo apt-get install ruby-full
5858
{% endhighlight %}
5959

60-
撰写本文时,在 Debian 和 Ubuntu 下,`ruby-full` 包提供的是老旧的 Ruby 2.3.1。
61-
6260
### yum(CentOS、Fedora 或 RHEL)
6361
{: #yum}
6462

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

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

8583

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

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

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

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

111109

112-
### Solaris 和 OpenIndiana
113-
{: #solaris}
114-
115-
[Sunfreeware][sunfreeware] 上的 Solaris 8 到 10 内置了 Ruby 1.8.7,[Blastwave][blastwave] 同样如此。Ruby 1.9.2p0 在 [Sunfreeware][sunfreeware] 上也有,但是这一版已经过时。
110+
### OpenIndiana
111+
{: #openindiana}
116112

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

119115
{% highlight sh %}
120-
$ pkg install runtime/ruby-18
116+
$ pkg install runtime/ruby
121117
{% endhighlight %}
122118

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

0 commit comments

Comments
 (0)