Created
June 20, 2012 05:47
-
-
Save zachbrowne/2958324 to your computer and use it in GitHub Desktop.
Install RVM in /root directory
This file contains hidden or 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
Please note that if you want to install for root only, using a per-user install, then you must prepopulate root's $HOME/.rvmrc with the following BEFORE you attempt to install: | |
echo 'export rvm_prefix="$HOME"' > /root/.rvmrc | |
echo 'export rvm_path="$HOME/.rvm"' >> /root/.rvmrc | |
This overrides the checking done that assumes that if root is executing the install it must be a Multi-User installation type, and that RVM must go into /usr/local/rvm. This also negates the need to use sudo, as the combination of all these factors effectively turns it into a Per-User installation type specifically for the root user only. Please note that this is not a typical, or generally supported installation type. | |
Install RVM | |
curl -L https://get.rvm.io | sudo bash -s stable | |
Restart RVM | |
source /etc/profile.d/rvm.sh | |
Test RVM | |
rvm requirements | |
Install Dependencies | |
apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion | |
Install Ruby | |
rvm install 1.9.2 && rvm use 1.9.2 --default | |
Install Rails | |
gem install rails --no-rdoc --no-ri |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment