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
  • 相关阅读:
    Weex-语法笔记 一
    Entitlements (授权机制) 延伸
    FOUNDATION_EXPORT 延伸
    NS_ASSUME_NONNULL_BEGIN 延伸
    SSLPinning 延伸
    Socket.io 延伸
    UI_APPEARANCE_SELECTOR 延伸
    Modules和Autolinking
    代码块(Block)回调一般阐述
    数据库连接池配置错误导致OOM
  • 原文地址:https://www.cnblogs.com/jackyshan/p/5452456.html
Copyright © 2011-2022 走看看