Blog 1

Random Talk on Random Thoughts

Install Ruby Again! (2)

| Comments |

I installed Ruby 2.1.2 so as to build Octopress on top of it. Luckily, the installation was successful.

Installed Ruby 2.1.2 in the terminal

This afternoon, I tried running rake on Ruby 2.1.2. Unluckily, I failed.

`rake generate` failed

The above problem could be fixed by simply changing nil to null at the second line of source/_includes/custom/category_feed.xml, so it’s not really a problem.

First, the image popup plugin complained about the new version of gems.

I tried to replace all imgpopup by img to find further problems first.

[owner@localhost ~/octopress]$ rake generate
## Generating Site with Jekyll
unchanged sass/print.scss
identical source/stylesheets/screen.css 
Configuration file: /home/owner/octopress/_config.yml
            Source: source
       Destination: public
      Generating... 
Liquid Exception: undefined method `safe_wrap' for #<<Jekyll::ImgPopup:0xa45c82
4>> in _posts/2013-08-16-edit-latex-equations-in-vim.html/#excerpt
jekyll 2.3.0 | Error:  undefined method `safe_wrap' for #<<Jekyll::ImgPopup:0xa4
5c824>>

Second, it’s the gsub method again! I’m sorry to that I has been tired of reading Ruby’s documentation, so I decided to reset my commit history to the tip of origin/source, and revert the default RVM version to 1.9.3 again by rvm use --default 1.9.3.

Comments