You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/news/_posts/2018-11-08-snap.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,17 +11,24 @@ We released the official snap package of Ruby language.
11
11
12
12
<https://snapcraft.io/ruby>
13
13
14
-
Snap is a package system developed by Canonical. It allows you to distribute a software with its dependencies for many different Linux systems. This solves the problem that a user cannot install the latest Ruby release from the default repository of their system like in rpm or apt.
14
+
Snap is a package system developed by Canonical. It allows you to distribute
15
+
a software with its dependencies for many different Linux systems.
16
+
This solves the problem that a user cannot install the latest Ruby release
17
+
from the default repository of their system like in rpm or apt.
15
18
16
19
On Ubuntu 16.04 or later, you can use Ruby snap with the following command:
17
20
18
21
```
19
22
sudo snap install ruby --classic
20
23
```
21
24
22
-
(If you use other Linux distributions, please refer to <https://docs.snapcraft.io/installing-snapd/6735>)
25
+
(If you use other Linux distributions, please refer to
Our snap uses the "channel" feature to release multiple Ruby series concurrently. For example, without specifying a channel, 2.5.3 will be installed. But if you want to use Ruby 2.4, specify the 2.4 channel like the following:
28
+
Our snap uses the "channel" feature to release multiple Ruby series
29
+
concurrently. For example, without specifying a channel, 2.5.3 will be
30
+
installed. But if you want to use Ruby 2.4, specify the 2.4 channel
Our snap set `$HOME/.gem` to `GEM_HOME` and `GEM_PATH` environment variable. So if you want to execute commands installed by rubygems such as rails and rspec without using bundle exec, you have to add the following line to your shell rc files (like .bashrc):
44
+
Our snap set `$HOME/.gem` to `GEM_HOME` and `GEM_PATH` environment variable.
45
+
So if you want to execute commands installed by rubygems such as rails and
46
+
rspec without using bundle exec, you have to add the following line to your
47
+
shell rc files (like .bashrc):
38
48
39
49
```
40
50
eval `ruby.env`
41
51
```
42
52
43
-
Since `$HOME/.gem` is shared by multiple versions, if you switch versions and use them, you will need to recompile C extensions using the `gem pristine --extensions` command.
53
+
Since `$HOME/.gem` is shared by multiple versions, if you switch versions
54
+
and use them, you will need to recompile C extensions using the
55
+
`gem pristine --extensions` command.
44
56
45
-
The initial version of official Ruby snap has released during Snapcraft summit held at Canonical office in London on Nov 6-8th, 2018. Any feedbacks are welcomed at <https://github.com/ruby/snap.ruby>.
57
+
The initial version of official Ruby snap has released during
58
+
Snapcraft summit held at Canonical office in London on Nov 6-8th, 2018.
59
+
Any feedbacks are welcomed at <https://github.com/ruby/snap.ruby>.
0 commit comments