在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):rbenv/ruby-build开源软件地址(OpenSource Url):https://github.com/rbenv/ruby-build开源编程语言(OpenSource Language):Shell 67.9%开源软件介绍(OpenSource Introduction):ruby-buildruby-build is a command-line utility that makes it easy to install virtually any version of Ruby, from source. It is available as a plugin for rbenv that
provides the Installation# Using Homebrew on macOS
$ brew install ruby-build
# As an rbenv plugin
$ mkdir -p "$(rbenv root)"/plugins
$ git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
# As a standalone program
$ git clone https://github.com/rbenv/ruby-build.git
$ PREFIX=/usr/local ./ruby-build/install.sh Upgrading# Via Homebrew
$ brew update && brew upgrade ruby-build
# As an rbenv plugin
$ git -C "$(rbenv root)"/plugins/ruby-build pull UsageBasic Usage# 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
# 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 ruby-build does not check for system dependencies before downloading and attempting to compile the Ruby source. Please ensure that all requisite libraries are available on your system. Advanced UsageCustom Build DefinitionsIf you wish to develop and install a version of Ruby that is not yet supported by ruby-build, you may specify the path to a custom “build definition file” in place of a Ruby version number. Use the default build definitions as a template for your custom definitions. Custom Build ConfigurationThe build process may be configured through the following environment variables:
Applying PatchesBoth # applying a single patch
$ rbenv install --patch 1.9.3-p429 < /path/to/ruby.patch
# applying a patch from HTTP
$ rbenv install --patch 1.9.3-p429 < <(curl -sSL http://git.io/ruby.patch)
# applying multiple patches
$ cat fix1.patch fix2.patch | rbenv install --patch 1.9.3-p429 Checksum VerificationIf you have the Checksums are optional and specified as anchors on the package URL in each definition. All definitions bundled with ruby-build include checksums. Package MirrorsTo speed up downloads, ruby-build fetches package files from a mirror hosted on Amazon CloudFront. To benefit from this, the packages must specify their checksum: # example:
install_package "ruby-2.6.5" "https://ruby-lang.org/ruby-2.6.5.tgz#<SHA2>" ruby-build will first try to fetch this package from
You may specify a custom mirror by setting If a mirror site doesn't conform to the above URL format, you can specify the
complete URL by setting The default ruby-build download mirror is sponsored by Basecamp. Keeping the build directory after installationBoth Source code will be kept in a parallel directory tree Getting HelpPlease see the ruby-build wiki for solutions to common problems. If you can't find an answer on the wiki, open an issue on the issue tracker. Be sure to include the full build log for build failures. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论