GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - svunnam/ruby-install: Installs Ruby, JRuby, Rubinius, MagLev or MRuby

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

828 Commits
828 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
doc/man
doc/man
 
 
homebrew
homebrew
 
 
pkg
pkg
 
 
rpm
rpm
 
 
share
share
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
ChangeLog.md
ChangeLog.md
 
 
LICENSE.txt
LICENSE.txt
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
install.txt
install.txt
 
 
setup.sh
setup.sh
 
 

Repository files navigation

ruby-install

Build Status

Installs Ruby, JRuby, Rubinius, MagLev or mruby.

Features

  • Supports installing arbitrary versions.
    • Contains a list of known versions and checksums from ruby-versions.
  • Supports installing into /opt/rubies/ for root and ~/.rubies/ for users by default.
  • Supports installing into arbitrary directories.
  • Supports downloading from arbitrary URLs.
  • Supports downloading from mirrors.
  • Supports downloading/applying patches.
  • Supports specifying arbitrary ./configure options.
  • Supports downloading archives using wget or curl.
  • Supports verifying downloaded archives using md5sum, md5 or openssl md5.
  • Supports installing build dependencies via the package manager:
    • apt
    • yum
    • pacman
    • macports
    • brew
  • Has tests.

Anti-Features

  • Does not require updating every time a new Ruby version comes out.
  • Does not require recipes for each individual Ruby version or configuration.
  • Does not support installing trunk/HEAD.

Requirements

  • bash >= 3.x
  • wget or curl
  • md5sum, md5 or openssl md5.
  • tar
  • bzip2
  • patch (if --patch is specified)
  • gcc >= 4.2 or clang

Synopsis

List supported Rubies and their major versions:

$ ruby-install

Install the current stable version of Ruby:

$ ruby-install ruby

Install a stable version of Ruby:

$ ruby-install ruby 2.2

Install a specific version of Ruby:

$ ruby-install ruby 2.2.2

Install a recently released version of Ruby:

$ ruby-install --md5 MD5_OF_TAR_BZ2 ruby 2.3.4

Install a Ruby into a specific directory:

$ ruby-install --install-dir /path/to/dir ruby

Install a Ruby into a specific rubies directory:

$ ruby-install --rubies-dir /path/to/rubies/ ruby

Install a Ruby into /usr/local:

$ ruby-install --system ruby 2.2.2

Install a Ruby from an official site with directly download:

$ ruby-install -M https://ftp.ruby-lang.org/pub/ruby ruby 2.0.0-p645

Install a Ruby from a mirror:

$ ruby-install -M http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby ruby 2.0.0-p645

Install a Ruby with a specific patch:

$ ruby-install -p https://raw.github.com/gist/4136373/falcon-gc.diff ruby 1.9.3-p551

Install a Ruby with a specific C compiler:

$ ruby-install ruby 2.2.2 -- CC=gcc-4.9

Install a Ruby with specific configuration:

$ ruby-install ruby 2.2.2 -- --enable-shared --enable-dtrace CFLAGS="-O3"

Uninstall a Ruby version:

$ rm -rf ~/.rubies/ruby-2.2.2

Integration

Using ruby-install with RVM:

$ ruby-install --rubies-dir ~/.rvm/rubies ruby 2.2.2

Using ruby-install with rbenv:

$ ruby-install --install-dir ~/.rbenv/versions/2.2.2 ruby 2.2.2

ruby-install can even be used with Chef.

Install

wget -O ruby-install-0.5.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.5.0.tar.gz
tar -xzvf ruby-install-0.5.0.tar.gz
cd ruby-install-0.5.0/
sudo make install

PGP

All releases are PGP signed for security. Instructions on how to import my PGP key can be found on my blog. To verify that a release was not tampered with:

wget https://raw.github.com/postmodern/ruby-install/master/pkg/ruby-install-0.5.0.tar.gz.asc
gpg --verify ruby-install-0.5.0.tar.gz.asc ruby-install-0.5.0.tar.gz

Homebrew

ruby-install can also be installed with homebrew:

brew install ruby-install

Or the absolute latest ruby-install can be installed from source:

brew install ruby-install --HEAD

FreeBSD

There is a FreeBSD port of ruby-install which can be copied into the local ports tree.

Known Issues

Ruby

Rubies older than 1.9.3-p429 will not compile with Clang and require GCC >= 4.2. Normally, Linux and BSD systems will already have GCC installed. OS X users can install GCC via homebrew:

brew tap homebrew/versions
brew install gcc49

And run ruby-install again:

ruby-install ruby 2.2.2 -- CC=gcc-4.9

Rubinius

Rubinius 1.x and 2.0.x is not supported due to multiple bugs. Instead, please use Rubinius >= 2.1.x.

Alternatives

  • RVM
  • ruby-build

Endorsements

I like the approach you're taking. Curious to see how it plays out.

-- Sam Stephenson of rbenv

About

Installs Ruby, JRuby, Rubinius, MagLev or MRuby

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.