zoukankan      html  css  js  c++  java
  • octopress Endless Error With Gem Dependencies

    因为重装系统的缘故,需要重新搭建octopress环境,在执行到:

    bundle install

    会出现一些这样的错误:
    An error occurred while installing timers (4.0.1), and Bundler cannot continue.

    An error occurred while installing rake (10.4.2), and Bundler cannot continue.

    An error occurred while installing timers (1.1.0), and Bundler cannot continue
    之前在执行

    bundle install

    操作时并不会出现这个问题, 从错误来看是软件版本依赖关系有问题,
    打开"Gemfile"文件:

    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'

    把第一句的"

    source "https://rubygems.org" ,修改成 "source "http://rubygems.org"".

    再次执行"bundle install"

    错误消失,执行成功.

  • 相关阅读:
    POJ_1698_Alice's Chance
    透过比特币看移动互联网创业产品立项的关键要素
    localhost与127.0.0.1的区别
    web service初探
    Oracle导出DMP文件的两种方法
    html大小写问题
    浏览器端数据存储
    CSS滚动条样式设置
    浅谈forword和sendRedirect
    Poi对excel的基本操作
  • 原文地址:https://www.cnblogs.com/biglucky/p/4343867.html
Copyright © 2011-2022 走看看