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
  • 相关阅读:
    作业三(3)
    作业三(2)
    作业三(1)
    作业2(2)
    作业2(1)
    通读《构建之法》后有感
    自我介绍
    页面从服务器中浏览并添加图片显示
    lamda表达式 随机取数据的方法
    对js插件uploadify的一些操作
  • 原文地址:https://www.cnblogs.com/jackyshan/p/5452456.html
Copyright © 2011-2022 走看看