github page+ Octopress

XCode4.3にアップデートしたら、gcc,configureなどがインストールされてないので、
XCodeのPreferenceのDownloadから、Command Line Toolsをインストル。

rvmインストールする。(ruby 1.9.3を使うため)
url -L https://get.rvm.io | bash -s stable --ruby
rvm install 1.9.3
rvm use 1.9.3
rvm rubygems latest

Octopressインストールする。
git clone git://github.com/imathis/octopress.git octopress
cd octopress # If you use RVM, You'll be asked if you trust the .rvmrc file (say yes).
ruby --version # Should report Ruby 1.9.3
bundle install

失敗する

creating Makefile

make
Configuring libffi
Launch of "gawk" failed: the PowerPC architecture is no longer supported.
config.status: error: could not create include/Makefile
make: *** ["/Users/adachic/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.0.11/ext/ffi_c/libffi"/.libs/libffi_convenience.a] Error 1


gawkが古い。入れなおす。
sudo port install gawk

再トライ
bundle install

OK.

rake install

アカウント対応付け
rake setup_github_pages
(git@github.com:adachic/IJT3.git)

記事を書く
rake new_post["title"]
source/_post以下にエントリが作成されるので、markdownで書く

デプロイ
rake gen_deploy

簡単にできた
http://adachic.github.com/

まぁ、アクセス解析とかはこっちが充実してるんで、ミラーリング的に使うかも。

参考にしたサイト:
http://www.sankitch.me/blog/2012/05/05/build-octopress-on-github-dropbox/

マークダウン:
http://tokkono.cute.coocan.jp/blog/slow/index.php/programming/markdown-skills-for-github-beginners/