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
57fb50cb
Commit
57fb50cb
authored
Nov 15, 2012
by
Sam Stephenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document checksum verification, mirrors, and caching
parent
ceb5e6e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
README.md
+45
-0
No files found.
README.md
View file @
57fb50cb
...
@@ -123,11 +123,56 @@ process.
...
@@ -123,11 +123,56 @@ process.
*
`RUBY_BUILD_BUILD_PATH`
sets the location in which sources are
*
`RUBY_BUILD_BUILD_PATH`
sets the location in which sources are
downloaded and built. By default, this is a subdirectory of
downloaded and built. By default, this is a subdirectory of
`TMPDIR`
.
`TMPDIR`
.
*
`RUBY_BUILD_CACHE_PATH`
, if set, specifies a directory to use for
caching downloaded package files.
*
`RUBY_BUILD_MIRROR_URL`
overrides the default mirror URL root to one
of your choosing.
*
`RUBY_BUILD_SKIP_MIRROR`
, if set, forces ruby-build to download
packages from their original source URLs instead of using a mirror.
*
`CC`
sets the path to the C compiler.
*
`CC`
sets the path to the C compiler.
*
`CONFIGURE_OPTS`
lets you pass additional options to
`./configure`
.
*
`CONFIGURE_OPTS`
lets you pass additional options to
`./configure`
.
*
`MAKE_OPTS`
(or
`MAKEOPTS`
) lets you pass additional options to
*
`MAKE_OPTS`
(or
`MAKEOPTS`
) lets you pass additional options to
`make`
.
`make`
.
### Checksum verification
If you have the
`md5`
,
`openssl`
, or
`md5sum`
tool installed,
ruby-build will automatically verify the MD5 checksum of each
downloaded package before installing it.
Checksums are optional and specified as anchors on the package URL in
each definition. (All bundled definitions include checksums.)
### Package download mirrors
ruby-build will first attempt to download package files from a mirror
hosted on Amazon S3. If a package is not available on the mirror, if
the mirror is down, or if the download is corrupt, ruby-build will
fall back to the official URL specified in the defintion file.
You can point ruby-build to another mirror by specifying the
`RUBY_BUILD_MIRROR_URL`
environment variable--useful if you'd like to
run your own local mirror, for example. Package mirror URLs are
constructed by joining this variable with the MD5 checksum of the
package file.
If you don't have an MD5 program installed, ruby-build will skip the
download mirror and use official URLs instead. You can force
ruby-build to bypass the mirror by setting the
`RUBY_BUILD_SKIP_MIRROR`
environment variable.
### Package download caching
You can instruct ruby-build to keep a local cache of downloaded
package files by setting the
`RUBY_BUILD_CACHE_PATH`
environment
variable. When set, package files will be kept in this directory after
the first successful download and reused by subsequent invocations of
`ruby-build`
and
`rbenv install`
.
The
`rbenv install`
command defaults this path to
`~/.rbenv/cache`
, so
in most cases you can enable download caching simply by creating that
directory.
### Keeping the build directory after installation
### Keeping the build directory after installation
Both
`ruby-build`
and
`rbenv install`
accept the
`-k`
or
`--keep`
Both
`ruby-build`
and
`rbenv install`
accept the
`-k`
or
`--keep`
...
...
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