Ruby language plugin for vfox.
Distribution | Dependencies |
---|---|
Ruby | none |
JRuby | JRE v8 or higher |
TruffleRuby | bash , make , gcc , g++ , openssl-dev , yaml-dev and zlib-dev |
Ruby-build | See ruby-build's instructions |
mRuby-build | Ruby or TruffleRuby |
After installing vfox, install the plugin by running:
vfox add ruby
Next, search and select the version to install. The --ruby-build
flag is used to list all the versions that can be built and installed by ruby-build. By default, vfox keeps cache for available versions, use the --no-cache
flag to delete the cache file.
vfox search ruby
vfox search ruby --ruby-build
vfox search ruby --no-cache && vfox search ruby
Install the latest stable version with latest
tag.
vfox install ruby@latest
vfox install ruby@9.4.5.0 # JRuby
vfox install ruby@24.0.1 # TruffleRuby
vfox install ruby@24.0.1.jvm # TruffleRuby-jvm
vfox install ruby@3.3.3.rb # Ruby-build
vfox install ruby@3.3.0.mrb # mRuby-build
Compiling installation with ruby-build only works on Unix-like systems. All versions of Ruby and mRuby supported by ruby-build (except for the development versions like 3.4-dev
) are available.
Some environment variables are served as following:
Environment variables | Default value | Description |
---|---|---|
Conda_Forge | conda-forge |
conda-forge channel |
GITHUB_URL | https://github.com/ |
GitHub mirror URL |
Note: Conda_Forge
has no effect for Windows.
Usage:
export Conda_Forge=https://prefix.dev/conda-forge
export GITHUB_URL=https://mirror.ghproxy.com/https://github.com/
- Why is there a lack of updated versions?
Currently, vfox-ruby uses precompiled packages from conda-forge and Homebrew on Linux and macOS. You could open an issue in the ruby-feedstock repository to remind the maintainers to provide the latest build. Once the latest version is available, the plugin will be updated soon.