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
  • 相关阅读:
    【PostgreSQL-9.6.3】触发器概述(普通触发器)
    【MySQL】二进制分发安装
    【MySQL】RPM包安装
    【PostgreSQL-9.6.3】分区表
    【PL/SQL】用星号拼出金字塔
    【PostgreSQL-9.6.3】临时表
    【PL/SQL】触发器示例:记录加薪
    【PL/SQL】九九乘法口诀表
    数据结构和算法
    类元编程
  • 原文地址:https://www.cnblogs.com/xiongji/p/3643859.html
Copyright © 2011-2022 走看看