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
$ brew install --HEAD ruby-build # installs the latest development release
31
+
$ brew upgrade --fetch-HEAD ruby-build # upgrades the HEAD package
51
32
52
-
*This is the recommended method of installation if you installed rbenv with
53
-
Homebrew.*
33
+
## Usage
54
34
55
-
brew install ruby-build
35
+
#### DEPENDENCY WARNING
56
36
57
-
Or, if you would like to install the latest development release:
37
+
Due to the considerable variation between different systems, ruby-build does
38
+
not check for dependencies before downloading and attempting to compile the
39
+
Ruby source. Before using ruby-build, please [consult the
40
+
wiki](https://github.com/rbenv/ruby-build/wiki#suggested-build-environment) to
41
+
ensure that all the requisite libraries are available on your system.
42
+
Otherwise, you may encounter segmentation faults or other critical errors.
58
43
59
-
brew install --HEAD ruby-build
44
+
### Basic Usage
60
45
61
-
To upgrade the HEAD package use `--fetch-HEAD` option:
46
+
#### With rbenv
62
47
63
-
brew upgrade --fetch-HEAD ruby-build
48
+
ruby-build extends rbenv with the subcommand `rbenv install`. To see which versions of Ruby it knows about, run:
64
49
65
-
## Usage
50
+
$ rbenv install --list
51
+
52
+
To install one, call it again with the exact version name:
66
53
67
-
Before you begin, you should ensure that your build environment has the proper
68
-
system dependencies for compiling the wanted Ruby version (see our [recommendations](https://github.com/rbenv/ruby-build/wiki#suggested-build-environment)).
54
+
$ rbenv install 2.2.0
69
55
70
-
### Using `rbenv install`with rbenv
56
+
`rbenv install`supports tab completion (if rbenv is properly configured). Each Ruby version built in this way is installed to `~/.rbenv/versions`.
71
57
72
-
To install a Ruby version for use with rbenv, run `rbenv install` with the
73
-
exact name of the version you want to install. For example,
58
+
See `rbenv help install` for more.
74
59
75
-
rbenv install 2.2.0
60
+
#### As a standalone
76
61
77
-
Ruby versions will be installed into a directory of the same name under
78
-
`~/.rbenv/versions`.
62
+
To see which versions of Ruby ruby-build knows about, run:
79
63
80
-
To see a list of all available Ruby versions, run `rbenv install --list`. You
81
-
may also tab-complete available Ruby versions if your rbenv installation is
82
-
properly configured.
64
+
$ ruby-build --definitions
65
+
66
+
To install one, specify both the exact version name and the destination directory:
83
67
84
-
### Using `ruby-build` standalone
68
+
$ ruby-build 2.2.0 ~/local/ruby-2.2.0
85
69
86
-
If you have installed ruby-build as a standalone program, you can use the
87
-
`ruby-build` command to compile and install Ruby versions into specific
88
-
locations.
70
+
### Advanced Usage
89
71
90
-
Run the `ruby-build` command with the exact name of the version you want to
91
-
install and the full path where you want to install it. For example,
72
+
#### Custom Build Definitions
92
73
93
-
ruby-build 2.2.0 ~/local/ruby-2.2.0
74
+
If you wish to develop and install a version of Ruby that is not yet supported
75
+
by ruby-build, you may specify the path to a custom “build definition file” in
76
+
place of a Ruby version number.
94
77
95
-
To see a list of all available Ruby versions, run `ruby-build --definitions`.
78
+
Use the [default build definitions][definitions] as a template for your custom
79
+
definitions.
96
80
97
-
Pass the `-v` or `--verbose` flag to `ruby-build` as the first argument to see
0 commit comments