Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save raimon49/9362723 to your computer and use it in GitHub Desktop.
Save raimon49/9362723 to your computer and use it in GitHub Desktop.
XREAサーバのruby-2.0.0からruby-2.1.1へ移行
# Rubyのインストール
$ wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.bz2
$ bunzip2 ruby-2.1.1.tar.bz2
$ tar xf ruby-2.1.1.tar
$ cd ruby-2.1.1
$ ./configure --prefix=$HOME/ruby-2.1.1 --disable-install-doc --disable-install-rdoc
$ make
$ make install
$ ~/ruby-2.1.1/bin/ruby -v
ruby 2.1.1p76 (2014-02-24 revision 45161) [i686-linux]
# PATHを変更してBundlerを入れる
$ gem install bundler
$ cd /path/to/installed-tdiary-dir
$ bundle install --without coffee:memcached:redis:gfm:server:development:test
# shebangの向き先をruby-2.1.1に変更
$ vim -p index.rb update.rb
$ git commit -am "Migrate Ruby-2.1.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment