1. An error occurred while installing RedCloth (4.2.9), and Bundler cannot continue.
12
An error occurred while installing RedCloth (4.2.9), and Bundler cannot continue.
Make sure that gem install RedCloth -v '4.2.9' succeeds before bundling.
Solution:
1
$ sudo gem install RedCloth -v '4.2.9' --verbose
2. You have already activated rake 10.1.0, but your Gemfile requires rake 10.0.4.
1234
rake aborted!
You have already activated rake 10.1.0, but your Gemfile requires rake 10.0.4. Prepending `bundle exec` to your command may solve this.
/Users/dongmeiliang/Documents/octopress/Rakefile:2:in `<top (required)>'(See full trace by running task with --trace)
$ rake new_page[categories/iOS_Development]// Edit source/ios-development/index.html, file's eventually content is:---layout: defaulttitle: "iOS Development"---// Note: % has been escaped{\% for post in site.posts \%} {\% if post.categories contains 'ios development'\%}{\% include archive_post.html \%}{\% endif \%}{\% endfor \%}$ vim source/_includes/custom/navigation.html
// Add follow content
<li><a href="/blog/categories/ios-development">iOS Development</a></li>
// When you write a post add follow contents to YAML head:
categories: [iOS Development]
// From the first machine do the following whenever you’ve made changes:
$ rake generate
$ git add .
$ git commit -am "Some comment here."$ git push origin source# update the remote source branch $ rake deploy # update the remote master branch// Then on the other machine, you need to pull those changes.
$ cd octopress
$ git pull origin source# update the local source branch$ cd ./_deploy
$ git pull origin master # update the local master branch
10.ERROR: Error installing jekyll: liquid requires Ruby version >= 2.1.0.
A:升级系统的ruby 版本。
1234567891011121314151617
// 1. Install the Ruby Version Manager rvm
$ curl -L https://get.rvm.io | bash -s stable
// 2. Reload environment variables
$ source ~/.rvm/scripts/rvm
// 3. Install the latest version of Ruby
$ rvm install 2.3.4
// 4. Check the version of Ruby
$ ruby -v
// 5. if current the version isn't your install just now, you can specific by command:
$ rvm use 2.3.4
// 6. If you want to set this latest version of Ruby as the default version
$ rvm --default use 2.3.4