Herokuに登録

前回からの続き

Getting Started with Herokuを参考にherokuをinstall

// rvm インストールしてパスを通す
% sudo aptitude install curl git make
% bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

% echo 'PATH=$HOME/.rvm/bin:$PATH' >> ~/.zshrc
% source ~/.zshrc
% rvm install 1.9.2 && rvm use 1.9.2 --default

// heroku インストール
% gem install heroku
% echo 'PATH=$HOME/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.14.0/bin:$PATH' >> ~/.zshrc
% source ~/.zshrc
% heroku version

// ここで apt-get install libopenssl-ruby とか出るがパッケージ探しても無いので下記で対応
% rvm pkg install openssl
% rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm/usr 

ちなみにパスを$HOME/.rvm/gems/ruby-1.9.2-p290/gems/binにすると以下のエラーが出た。

/home/xxxx/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find heroku (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8] (Gem::LoadError)

あとは、「Haskell on Heroku」を参考で完了。