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
  • 相关阅读:
    tcp笔记
    sublime使用技巧
    mysql笔记
    ubuntu安装mysql
    正则表达式笔记
    网络编程笔记
    swoole安装异步reids
    mysql的时间存储格式
    nginx环境的搭建
    php的闭包函数use的使用
  • 原文地址:https://www.cnblogs.com/jackyshan/p/5452456.html
Copyright © 2011-2022 走看看