Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. raimon49 created this gist Mar 5, 2014.
    19 changes: 19 additions & 0 deletions migrate_from_ruby-2.0.0_to_ruby-2.1.1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # 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"