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
  • 相关阅读:
    微信公众号支付java版本
    js数组去重
    原生js关闭窗口
    javascript常用代码片段
    kubeadm 生成的token过期后,集群增加节点
    Git 配置命令设置
    SpringBoot cookie工具类
    Docker中的Cgroup Driver:Cgroupfs 与 Systemd
    使用kubeadm 安装 kubernetes 1.12.0
    IPVS负载均衡
  • 原文地址:https://www.cnblogs.com/xiongji/p/3643859.html
Copyright © 2011-2022 走看看