|
| 1 | +# ruby-build |
| 2 | + |
| 3 | +ruby-build provides a simple way to build and install different |
| 4 | +versions of Ruby on UNIX-based systems. |
| 5 | + |
| 6 | +### Installing ruby-build |
| 7 | + |
| 8 | + $ git clone git://github.com/sstephenson/ruby-build.git |
| 9 | + $ cd ruby-build |
| 10 | + $ ./install.sh |
| 11 | + |
| 12 | +This will install ruby-build into `/usr/local`. If you do not have |
| 13 | +write permission to `/usr/local`, you will need to run `sudo |
| 14 | +./install.sh` instead. You can install to a different prefix by |
| 15 | +setting the `PREFIX` environment variable. |
| 16 | + |
| 17 | +### Installing Ruby |
| 18 | + |
| 19 | +To install a Ruby version, run the `ruby-build` command with the path |
| 20 | +to a definition file and the path where you want to install it. (A |
| 21 | +number of [built-in |
| 22 | +definitions](https://github.com/sstephenson/ruby-build/tree/master/share/ruby-build) |
| 23 | +may be specified instead.) |
| 24 | + |
| 25 | + $ ruby-build 1.9.2-p290 ~/local/ruby-1.9.2-p290 |
| 26 | + |
| 27 | +### License |
| 28 | + |
| 29 | +(The MIT License) |
| 30 | + |
| 31 | +Copyright (c) 2011 Sam Stephenson |
| 32 | + |
| 33 | +Permission is hereby granted, free of charge, to any person obtaining |
| 34 | +a copy of this software and associated documentation files (the |
| 35 | +"Software"), to deal in the Software without restriction, including |
| 36 | +without limitation the rights to use, copy, modify, merge, publish, |
| 37 | +distribute, sublicense, and/or sell copies of the Software, and to |
| 38 | +permit persons to whom the Software is furnished to do so, subject to |
| 39 | +the following conditions: |
| 40 | + |
| 41 | +The above copyright notice and this permission notice shall be |
| 42 | +included in all copies or substantial portions of the Software. |
| 43 | + |
| 44 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 45 | +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 46 | +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 47 | +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
| 48 | +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
| 49 | +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| 50 | +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
0 commit comments