• cocoapod [!] /usr/bin/curl -f -L -o /var/folders/dj/yccslvys6tb53k2vz87djfsh0000gn/T/d20170219-12508-z77a4l/file.zip https://github.com/kylefleming/opencv/releases/download/3.1.0-ios-fix/opencv2.fram


      [!] /usr/bin/curl -f -L -o /var/folders/dj/yccslvys6tb53k2vz87djfsh0000gn/T/d20170219-12508-z77a4l/file.zip https://github.com/kylefleming/opencv/releases/download/3.1.0-ios-fix/opencv2.fram 或者 ssl证书问题

      参考网址: https://ruby.taobao.org

    $ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
    $ gem sources -l
    *** CURRENT SOURCES ***
    
    https://gems.ruby-china.org
    # 请确保只有 gems.ruby-china.org
    $ gem install rails
    $ bundle config mirror.https://rubygems.org https://gems.ruby-china.org

    ****关键:
    $ sed -i .bak -E 's!https?://cache.ruby-lang.org/pub/ruby!https://ruby.taobao.org/mirrors/ruby!'

    $rvm_path/config/db

    问题:
    /Library/Ruby/Site/2.0.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException) from /Library/Ruby/Site/2.0.0/rubygems.rb:298:in `activate_bin_path' from /usr/local/bin/pod:22:in `<main>'

    1.$ sudo gem uninstall cocoapods (移除原来的cocoapods)
    2.$ sudo gem install -n/usr/local/bin cocoapods   (在osx10.11.5中,安装cocoapods)
    3.$ gem sources -l
    4. 如果不是https://ruby.taobao.org/就更换为:
    $ gem sources --remove https://rubygems.org/    (移除数据源)
    $ gem sources -a https://ruby.taobao.org/             (更换数据源)   
    $ gem sources -l                            (查看数据源)
    5.$ pod setup    (开始安装)

    参考:http://www.jianshu.com/p/700d2cce348c


  • 相关阅读:
    [Head First Python]2. BIF(内置函数)
    [转]mac下Python升级到指定的版本
    [Head First Python]2. python of comment
    自动化测试-----Python基础
    自动化测试----python等工具下载、测试环境搭配、常用的DOS命令
    Python初识与安装
    Python网络爬虫部分
    不知道数据库中表的列类型的前提下,使用JDBC正确的取出数据
    如何做好测试接口
    测试登录界面
  • 原文地址:https://www.cnblogs.com/wujie123/p/6415514.html
Copyright © 2020-2023  润新知