Created
August 19, 2011 17:11
-
-
Save rpanachi/1157378 to your computer and use it in GitHub Desktop.
RVM Instalation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user@ubuntu:~$ sudo apt-get install git-core curl | |
user@ubuntu:~$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
Cloning into rvm... | |
remote: Counting objects: 5375, done. | |
remote: Compressing objects: 100% (2544/2544), done. | |
remote: Total 5375 (delta 3492), reused 3850 (delta 2113) | |
Receiving objects: 100% (5375/5375), 1.84 MiB | 1.21 MiB/s, done. | |
Resolving deltas: 100% (3492/3492), done. | |
RVM: Shell scripts enabling management of multiple ruby environments. | |
RTFM: https://rvm.beginrescueend.com/ | |
HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net) | |
Installing RVM to /home/user/.rvm/ | |
Correct permissions for base binaries in /home/user/.rvm/bin... | |
Copying manpages into place. | |
Notes for Linux ( DISTRIB_ID=Ubuntu | |
DISTRIB_RELEASE=11.04 | |
DISTRIB_CODENAME=natty | |
DISTRIB_DESCRIPTION="Ubuntu 11.04" ) | |
NOTE: 'ruby' represents Matz's Ruby Interpreter (MRI) (1.8.X, 1.9.X) | |
This is the *original* / standard Ruby Language Interpreter | |
'ree' represents Ruby Enterprise Edition | |
'rbx' represents Rubinius | |
bash >= 3.2 is required | |
curl is required | |
git is required (>= 1.7 recommended) | |
patch is required (for ree and some ruby-head's). | |
If you wish to install rbx and/or Ruby 1.9 head (MRI) (eg. 1.9.2-head), | |
then you must install and use rvm 1.8.7 first. | |
If you wish to have the 'pretty colors' again, | |
set 'export rvm_pretty_print_flag=1' in ~/.rvmrc. | |
dependencies: | |
# For RVM | |
rvm: bash curl git | |
# For Ruby (MRI & ree) you should install the following OS dependencies: | |
ruby: /usr/bin/apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake | |
# For JRuby (if you wish to use it) you will need: | |
jruby: /usr/bin/apt-get install curl g++ openjdk-6-jre-headless | |
jruby-head: /usr/bin/apt-get install ant openjdk-6-jdk | |
# In addition to ruby: dependencies, | |
ruby-head: subversion | |
# For IronRuby (if you wish to use it) you will need: | |
ironruby: /usr/bin/apt-get install curl mono-2.0-devel | |
For rbx (Rubinius) more than 600MB of free RAM required. | |
NOTE: For all installations, as of 1.7, RVM no longer autoloads .rvmrc files. In order to return this | |
functionality, you MUST add 'export rvm_project_rvmrc=1' to your $HOME/.rvmrc file. | |
This causes RVM to override 'cd' which, while toggleable even < 1.7, is currently defaulted to 'off'. | |
This knob returns the previous behaviour to active which causes per-project .rvmrc files to be loaded | |
once again. | |
Example: echo 'export rvm_project_rvmrc=1' >> $HOME/.rvmrc && rvm reload | |
Installation of RVM to /home/user/.rvm/ is complete. | |
user, | |
If you have any questions, issues and/or ideas for improvement please | |
fork the project and issue a pull request. | |
If you wish to enable the project .rvmrc file functionality, set | |
rvm_project_rvmrc=1 in either /etc/rvmrc or ~/.rvmrc. Note that this will | |
override cd with a function (bash) and/or hook into it (zsh). | |
Thank you for using RVM! I sincerely hoped that RVM helped to make your life | |
both easier and more enjoyable. | |
If not, how about some actual constructive feedback instead of keeping things | |
all to yourself? As cool as that would be, I am not an empath nor a psychic. | |
Psychotic; perhaps... | |
#reload console | |
user@ubuntu:~$ rvm -v | |
rvm 1.7.2 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/] | |
user@ubuntu:~$ sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake | |
user@ubuntu:~$ rvm install 1.8.7 | |
Installing Ruby from source to: /home/user/.rvm/rubies/ruby-1.8.7-p352, this may take a while depending on your cpu(s)... | |
ruby-1.8.7-p352 - #fetching | |
ruby-1.8.7-p352 - #downloading ruby-1.8.7-p352, this may take a while depending on your connection... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 4108k 100 4108k 0 0 105k 0 0:00:39 0:00:39 --:--:-- 557k | |
100 4108k 100 4108k 0 0 104k 0 0:00:39 0:00:39 --:--:-- 104k | |
ruby-1.8.7-p352 - #extracting ruby-1.8.7-p352 to /home/user/.rvm/src/ruby-1.8.7-p352 | |
ruby-1.8.7-p352 - #extracted to /home/user/.rvm/src/ruby-1.8.7-p352 | |
ruby-1.8.7-p352 - #configuring | |
ruby-1.8.7-p352 - #compiling | |
ruby-1.8.7-p352 - #installing | |
Retrieving rubygems-1.8.6 | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 244k 100 244k 0 0 192k 0 0:00:01 0:00:01 --:--:-- 261k | |
Extracting rubygems-1.8.6 ... | |
Removing old Rubygems files... | |
Installing rubygems-1.8.6 for ruby-1.8.7-p352 ... | |
Installation of rubygems completed successfully. | |
ruby-1.8.7-p352 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake). | |
ruby-1.8.7-p352 - #importing default gemsets (/home/user/.rvm/gemsets/) | |
Install of ruby-1.8.7-p352 - #complete | |
user@ubuntu:~$ rvm use 1.8.7 | |
Using /home/user/.rvm/gems/ruby-1.8.7-p352 | |
user@ubuntu:~$ ruby -v | |
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux] | |
user@ubuntu:~$ gem -v | |
1.8.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment