zoukankan      html  css  js  c++  java
  • Could not load OpenSSL解决

    问题

    Could not load OpenSSL.
    You must recompile Ruby with OpenSSL support or change the sources in your Gemfile from 'https' to
    'http'. Instructions for compiling with OpenSSL using RVM are available at rvm.io/packages/openssl.
    

    解决

    编辑 vi Gemfile改变source为source "http://rubygems.org/"·

    #source "https://ruby.taobao.org/"
    source "http://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', '~> 1.0.1'
      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'
    

    出现问题Could not find celluloid-0.16.1 in any of the sources

    bundle update celluloid
    

    SSL解决尝试

    # Install openssl
    echo "Install openssl..."
    brew install openssl
    brew link openssl
    # download cert.pem file for openssl
    cd /usr/local/etc/openssl/certs/
    sudo curl -O http://curl.haxx.se/ca/cacert.pem
    sudo mv cacert.pem cert.pem
    cd -
    echo "
    # cert.pem file for openssl 
    export SSL_CERT_FILE=/usr/local/etc/openssl/certs/cert.pem" >> ~/.bash_profile
    source ~/.bash_profile
  • 相关阅读:
    Dungeon Master (广搜)
    棋盘游戏,dfs搜索
    水管工游戏——dfs
    URL的井号
    模态与非模态对话框
    网站建设之空连接标准
    CSS浮动(float,clear)通俗讲解
    CSS从大图中抠取小图完整教程(background-position应用)
    URI(标识某一互联网资源的字符串)
    CDN
  • 原文地址:https://www.cnblogs.com/jackyshan/p/5452456.html
Copyright © 2011-2022 走看看