由於重裝系統的緣故,須要從新搭建octopress環境,在執行到:sass
bundle install
會出現一些這樣的錯誤:
An error occurred while installing timers (4.0.1), and Bundler cannot continue.ruby
An error occurred while installing rake (10.4.2), and Bundler cannot continue.
spa
An error occurred while installing timers (1.1.0), and Bundler cannot continue
code
以前在執行
bundle install
操做時並不會出現這個問題, 從錯誤來看是軟件版本依賴關係有問題,
打開"Gemfile"文件:orm
source "https://rubygems.org" group :development do gem 'rake', '~> 10.0' gem 'jekyll', '~> 2.0' gem 'octopress-hooks', '~> 2.2' gem 'octopress-date-format', '~> 2.0' gem 'jekyll-sitemap' gem 'rdiscount', '~> 2.0' gem 'RedCloth', '~> 4.2.9' gem 'haml', '~> 4.0' gem 'compass', '~> 0.12.2' gem 'sass-globbing', '~> 1.0.0' gem 'rubypants', '~> 0.2.0' gem 'rb-fsevent', '~> 0.9' gem 'stringex', '~> 1.4.0' end gem 'sinatra', '~> 1.4.2' gem 'kramdown' gem 'coderay'
把第一句的"blog
source "https://rubygems.org" ,修改爲 "source "http://rubygems.org"".
再次執行"bundle install"string
錯誤消失,執行成功.it