首先,我要感慨一下,有心栽花花不开,无心插柳柳成荫。最初我发现在windows下不能部署octopress,跟阳志平交流后,他也说windows不可以。一是rvm在windows下确实不可用,二是在网上搜了那么久,都没有看到说在windows下安装成功的。
去上海参加R语言会议时,见到怡轩和思喆的ubuntu,甚是羡慕,当初哥也玩过很长一段时间的,没玩明白呢就荒废了,现在决定捡起来。重新给硬盘分区太麻烦了,好在现在的电脑性能比3、4年前要强太多了,办公室的电脑随便哪台都是双核4G内存256G硬盘,用来打字上网淘宝人人开心微博就太浪费了[1],于是我决定在办公室的电脑上安装虚拟机virtualBox,在虚拟机里装ubuntu 10.04。
折腾了快两天,octopress还是没装成功,还是下面的问题
root@ypchen-ubuntu:~/octopress# rake generate
## Generating Site with Jekyll
unchanged sass/screen.scss
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 20 column 0 (Psych::SyntaxError)
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in `parse_stream'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:119:in `parse'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:106:in `load'
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:205:in `load_file'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll.rb:119:in `configuration'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/bin/jekyll:207:in `'
from /usr/local/rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in `load'
from /usr/local/rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in `'
到现在也没弄好。于是回到windows里工作,想起阳志平推荐的RailsInstaller[2],好像里面ruby的版本就是1.9.2,为啥就不能部署octopress呢,这小八爪鱼就要求Ruby1.9.2。 于是重新进入Git Bash,当我运行到rake install的时候,返回信息:
You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. Using bundle exec may solve this.
好吧,其实今天还是有所收获的,就是遇到上面这条信息,我知道该试试bundle exec rake install, 果然成功了,于是后面所有要用到rake的命令,通过都用bundle exec rake代替。终于,我的octopress博客诞生了,地址是 http://chen.yanping.me/cn, 现在还什么都没有,以后我会多多研究的。
近期评论