Ubuntuの環境構築が面倒くさすぎるので、自分用の環境をすぐ作れるようにまとめておいた。
この記事に書いてある方法でおk
$ dpkg --list #インストールされているパッケージの一覧
$ uname -a #OSの情報を調べる
$ sudo apt-get install vim emacs24 tree git mecab
$ sudo apt-get update
$ sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
$ cd
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
$ git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
$ source ~/.bash_profile
rbenvがインスコできたら
$ rbenv install -v 2.2.2
$ rbenv global 2.2.2
などのようにすればRubyの準備は完了なので、あとはruby -v
等で確認。
$ sudo gem install mechanize twitter bundle rake sinatra sinatra-contrib rails haml sass mecab
必要そうなgemをインストールしたら終了。
$ wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
$ ssh-keygen
GitHub、Herokuぐらいに登録しておけば大丈夫かな。