Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
ab06a8b1
Commit
ab06a8b1
authored
Jul 10, 2017
by
Ryan Lue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README overhaul
parent
af2df4e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
29 deletions
+15
-29
README.md
+15
-29
No files found.
README.md
View file @
ab06a8b1
...
@@ -8,16 +8,15 @@ a standalone program.
...
@@ -8,16 +8,15 @@ a standalone program.
## Installation
## Installation
**If you installed rbenv via Homebrew, you already have ruby-build.**
**
Note:
If you installed rbenv via Homebrew, you already have ruby-build.**
# As an rbenv plugin (Recommended)
# As an rbenv plugin (Recommended)
$ git clone https://github.com/rbenv/ruby-build ~/.rbenv/plugins/ruby-build
$ git clone https://github.com/rbenv/ruby-build ~/.rbenv/plugins/ruby-build
# As a standalone program (Advanced)
# As a standalone program (Advanced)
$ git clone https://github.com/rbenv/ruby-build &&
$
ruby-build/install.sh
$ git clone https://github.com/rbenv/ruby-build && ruby-build/install.sh
For more details on installing as a standalone program, see the
[
install
For more details on installing as a standalone program, see the
[
source of `install.sh`
](
https://github.com/rbenv/ruby-build/blob/master/install.sh
)
.
script source](https://github.com/rbenv/ruby-build/blob/master/install.sh).
### Upgrading
### Upgrading
...
@@ -25,10 +24,10 @@ script source](https://github.com/rbenv/ruby-build/blob/master/install.sh).
...
@@ -25,10 +24,10 @@ script source](https://github.com/rbenv/ruby-build/blob/master/install.sh).
$ cd ~/.rbenv/plugins/ruby-build
$ cd ~/.rbenv/plugins/ruby-build
$ git pull
$ git pull
#
v
ia Homebrew
#
V
ia Homebrew
$ brew update && brew upgrade ruby-build # simple upgrade
$ brew update && brew upgrade ruby-build
# simple upgrade
$ brew install --HEAD ruby-build # installs the latest development release
$ brew install --HEAD ruby-build
# installs the latest development release
$ brew upgrade --fetch-HEAD ruby-build # upgrades the HEAD package
$ brew upgrade --fetch-HEAD ruby-build
# upgrades the HEAD package
## Usage
## Usage
...
@@ -43,29 +42,15 @@ Otherwise, you may encounter segmentation faults or other critical errors.
...
@@ -43,29 +42,15 @@ Otherwise, you may encounter segmentation faults or other critical errors.
### Basic Usage
### Basic Usage
#### With rbenv
# As an rbenv plugin
$ rbenv install --list # lists all available versions of Ruby
$ rbenv install 2.2.0 # installs Ruby 2.2.0 to ~/.rbenv/versions
ruby-build extends rbenv with the subcommand
`rbenv install`
. To see which versions of Ruby it knows about, run:
# As a standalone program
$ ruby-build --definitions # lists all available versions of Ruby
$ ruby-build 2.2.0 ~/local/ruby-2.2.0 # installs Ruby 2.2.0 to ~/local/ruby-2.2.0
$ rbenv install --list
`rbenv install`
supports tab completion (if rbenv is properly configured). See
`rbenv help install`
for more.
To install one, call it again with the exact version name:
$ rbenv install 2.2.0
`rbenv install`
supports tab completion (if rbenv is properly configured). Each Ruby version built in this way is installed to
`~/.rbenv/versions`
.
See
`rbenv help install`
for more.
#### As a standalone
To see which versions of Ruby ruby-build knows about, run:
$ ruby-build --definitions
To install one, specify both the exact version name and the destination directory:
$ ruby-build 2.2.0 ~/local/ruby-2.2.0
### Advanced Usage
### Advanced Usage
...
@@ -84,6 +69,7 @@ definitions.
...
@@ -84,6 +69,7 @@ definitions.
The build process may be configured through the following environment variables:
The build process may be configured through the following environment variables:
| ------------------------ | ------------------------------------------------------------------------------------------------ |
|
`TMPDIR`
| Where temporary files are stored. |
|
`TMPDIR`
| Where temporary files are stored. |
|
`RUBY_BUILD_BUILD_PATH`
| Where sources are downloaded and built. (Default: a timestamped subdirectory of
`TMPDIR`
) |
|
`RUBY_BUILD_BUILD_PATH`
| Where sources are downloaded and built. (Default: a timestamped subdirectory of
`TMPDIR`
) |
|
`RUBY_BUILD_CACHE_PATH`
| Where to cache downloaded package files. (Default: unset) |
|
`RUBY_BUILD_CACHE_PATH`
| Where to cache downloaded package files. (Default: unset) |
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment