zoukankan      html  css  js  c++  java
  • 学习笔记——make项目中克隆GitHub目录失败的解决

    在示例项目中执行make后出现下面的错误

    WARNING: Missing submodule components/json/cJSON...

    WARNING: Missing submodule components/lwip/lwip...

    详细报错如下:

    Building partitions from /home/cxj/ESP8266_RTOS_SDK/components/partition_table/partitions_singleapp.csv...
    WARNING: Missing submodule components/json/cJSON...
    Attempting 'git submodule update --init components/json/cJSON' in esp-idf root directory...
    正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/json/cJSON'...
    warning: 重定向到 https://github.com/DaveGamble/cJSON.git/
    error: RPC failed; curl 18 transfer closed with outstanding read data remaining
    fatal: The remote end hung up unexpectedly
    fatal: 过早的文件结束符(EOF)
    fatal: index-pack 失败
    fatal: 无法克隆 'http://github.com/DaveGamble/cJSON.git' 到子模组路径 '/home/cxj/ESP8266_RTOS_SDK/components/json/cJSON'
    克隆 'components/json/cJSON' 失败。按计划重试
    正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/json/cJSON'...
    warning: 重定向到 https://github.com/DaveGamble/cJSON.git/
    子模组路径 'components/json/cJSON':检出 '3c8935676a97c7c97bf006db8312875b4f292f6c'
    子模组路径 'components/json/cJSON':检出 '3c8935676a97c7c97bf006db8312875b4f292f6c'
    WARNING: Missing submodule components/lwip/lwip...
    Attempting 'git submodule update --init components/lwip/lwip' in esp-idf root directory...
    子模组 'components/lwip/lwip'(http://github.com/espressif/esp-lwip.git)未对路径 'components/lwip/lwip' 注册
    正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'...
    warning: 重定向到 https://github.com/espressif/esp-lwip.git/
    error: RPC failed; curl 18 transfer closed with outstanding read data remaining
    fatal: The remote end hung up unexpectedly
    fatal: 过早的文件结束符(EOF)
    fatal: index-pack 失败
    fatal: 无法克隆 'http://github.com/espressif/esp-lwip.git' 到子模组路径 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'
    克隆 'components/lwip/lwip' 失败。按计划重试
    正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'...
    warning: 重定向到 https://github.com/espressif/esp-lwip.git/
    error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
    fatal: The remote end hung up unexpectedly
    fatal: 过早的文件结束符(EOF)
    fatal: index-pack 失败
    fatal: 无法克隆 'http://github.com/espressif/esp-lwip.git' 到子模组路径 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'
    第二次尝试克隆 'components/lwip/lwip' 失败,退出
    /home/cxj/ESP8266_RTOS_SDK/make/project.mk:630: recipe for target '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip/.git' failed
    make: *** [/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip/.git] Error 1

     

    解决办法:

    第一种方法:

    根据报错中提示的地址手动下载需要的文件,放入报错路经下

    第二种方法:

    调大postBuffer的值,同时提高一下Github的下载速度,再次执行make,让其自动完成下载和注册。

  • 相关阅读:
    Android 应用开发耗电量控制。。
    android优化从网络中加载图片速度。。
    SpringMVC 配置多视图解析器(velocity,jsp)
    linux mysql定时备份并压缩
    linux mysql定时备份并压缩
    mysql选择上一条、下一条数据记录,排序上移、下移、置顶
    MIT-CBCL Car Database 车辆训练数据集
    两个对象值相同(x.equals(y) == true),但却可有不同的hash code,这句话对不对?
    js实现ArrayList功能
    JXL.jar简单封装Excel读写操作
  • 原文地址:https://www.cnblogs.com/fcchen/p/12916491.html
Copyright © 2011-2022 走看看