zoukankan      html  css  js  c++  java
  • jekyll安装

    今天装jekyll,总是失败。各种

    ERROR:  While executing gem ... (TypeError)
        instance of Date needs to have method `marshal_load'
    

      

    WARNING:  RubyGems 1.2+ index not found for:
    	
    
    RubyGems will revert to legacy indexes degrading performance.
    Updating metadata for 1 gems from http://rubygems.org/
    .
    complete
    Bulk updating Gem source index for: http://ruby.taobao.org/
    ERROR:  While executing gem ... (NoMethodError)
        undefined method `gems' for #<Array:0x7f4a0f282750>

    最后装了最新的ruby搞定

    步骤:

      首先安装rvm

    • yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
    • curl -L get.rvm.io | bash -s stable
    • source /etc/profile.d/rvm.sh

      安装最新的ruby

    • rvm install ruby-head时出错
    Warning! Requested ruby installation which requires another ruby available - installing one first.
    
    
    To proceed rvm requires a ruby-1.9|ruby-2 compatible ruby is installed.
    We attempted to install ruby automatically but it failed.
    Please install it manually (or a compatible alternative) to proceed.
    • 于是 按要求,rvm install ruby-1.9
    • rvm install ruby-2.1.1
    •  gem install jekyll
    • 结束,OK
  • 相关阅读:
    css 水平垂直居中总结
    计算机网络之应用层详解
    WPF 中 InitializeComponent 不存在解决方案
    [翻译]lithium 快速上手(QuickStart)
    [翻译]lithium 安装
    [翻译]lithium介绍
    [模板]离散化
    [总结]中位数及带权中位数问题
    [总结]Floyd算法及其应用
    [模板]SPFA判负环
  • 原文地址:https://www.cnblogs.com/xiongji/p/3643859.html
Copyright © 2011-2022 走看看