Created
October 4, 2011 01:06
-
-
Save sawanoboly/1260681 to your computer and use it in GitHub Desktop.
Debootstrapで作成したlxcのNattyコンテナにrvmでRuby1.9.2を入れるBootstrap
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
$ sudo echo deb-src http://archive.ubuntu.com/ubuntu natty main universe>> /etc/apt/sources.list | |
$ sudo apt-get -y update | |
$ sudo apt-get -y install git | |
$ sudo apt-get -y build-dep ruby1.9.1-full | |
$ sudo apt-get -y 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 | |
$ sudo -s | |
# bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) | |
## use older version rvm. | |
## wget https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | |
## chmod +x rvm-installer | |
## ./rvm-installer --version 1.8.5 | |
# /usr/local/rvm/bin/rvm install 1.9.2 | |
## use default for all user | |
# /usr/local/rvm/scripts/rvm use 1.9.2 --default | |
# source /usr/local/rvm/environments/default | |
## enable env ruby | |
# ln -s /usr/local/rvm/bin/ruby /usr/bin/ruby | |
## Option: gem defaut behavior. | |
# echo "gem: --no-ri --no-rdoc" >> ~/.gemrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
on rvm 1.10.x. Doesn't work.
It works 1.9.x or earlier.