Skip to content

Instantly share code, notes, and snippets.

@skuroki
Created July 26, 2011 12:29
Show Gist options
  • Save skuroki/1106637 to your computer and use it in GitHub Desktop.
Save skuroki/1106637 to your computer and use it in GitHub Desktop.
rvm install script for ubuntu
sudo apt-get install -y \
build-essential \
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 \
libtool \
bison \
subversion \
; # check `rvm requirements`
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
. $HOME/.rvm/scripts/rvm # あるいは再起動でもよい
rvm install 1.9.3
@holysugar
Copy link

zlib1g-dev 入れてあっても rvm pkg install zlib しないとダメですか?

@skuroki
Copy link
Author

skuroki commented Sep 13, 2011

以前に
rvm pkg install readline
rvm pkg install zlib # これは特にやってないとgemできない
rvm pkg install openssl
rvm pkg install libxml2
の4行を外して試してみたところ、zlibは入ってなくて、各種gemのinstallに失敗したことがあったので、上記のスクリプトのまま使用しています。詳細な検証はしていません。

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