curl がインストールされていることを確認する。
$ curl --version curl 7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp smtp smtps telnet tftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
RVM: Ruby Version Manager - Installing RVM に従って rvm をインストールする。
$ curl -L get.rvm.io | bash -s stable (snip) Installation of RVM in /home/yu-umezawa/.rvm/ is almost complete: * To start using RVM you need to run `source /home/yu-umezawa/.rvm/scripts/rvm` in all your open shell windows, in rare cases you need to reopen all shell windows. (snip) rvm 1.13.5 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
rvm の設定をロードする。
$ source ~/.rvm/scripts/rvm
ruby のインストールに必要なライブラリを確認する。
$ rvm requirements (snip) Additional Dependencies: # For Ruby / Ruby HEAD (MRI, Rubinius, & REE), install the following: ruby: /usr/bin/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 (snip)
MRI に必要なライブラリを全てインストールする。
$ sudo apt-get install -y 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
Octopress も使うので 1.9.2 をインストールする。
$ rvm install 1.9.2 && rvm use 1.9.2 (snip) Install of ruby-1.9.2-p320 - #complete Using /home/yu-umezawa/.rvm/gems/ruby-1.9.2-p320
ruby のバージョンを確認する。
$ ruby -v ruby 1.9.2p320 (2012-04-20 revision 35421) [i686-linux]
rails 3.2.3 をインストールする。
$ gem install rails -v 3.2.3 --no-ri --no-rdoc
rails のバージョンを確認する。
$ rails -v Rails 3.2.3