Skip to content

Instantly share code, notes, and snippets.

@sawanoboly
Created October 4, 2011 01:06
Show Gist options
  • Save sawanoboly/1260681 to your computer and use it in GitHub Desktop.
Save sawanoboly/1260681 to your computer and use it in GitHub Desktop.
Debootstrapで作成したlxcのNattyコンテナにrvmでRuby1.9.2を入れるBootstrap
$ 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
@sawanoboly
Copy link
Author

on rvm 1.10.x. Doesn't work.
It works 1.9.x or earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment