You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Linux系统安装FCL-CLI遇curl连接超时错误求助

解决Linux下安装FCL-CLI时curl连接超时问题

错误原因

curl: (28) Failed to connect to raw.githubusercontent.com port 443: Connection timed out 这个错误是由于本地网络无法正常连接到raw.githubusercontent.com服务器,通常是网络限制或DNS解析异常导致的。

可行解决方法

  • 检查网络连通性
    执行以下命令测试是否能访问目标服务器:

    ping raw.githubusercontent.com
    

    如果没有返回数据包,确认是网络层面的访问限制。

  • 手动安装Flow CLI

    1. 从Flow项目的GitHub Releases页面下载对应Linux架构的二进制安装包(比如flow-cli-linux-amd64)
    2. 给下载的二进制文件添加执行权限:
      chmod +x flow-cli-linux-amd64
      
    3. 将文件移动到系统全局可执行路径:
      sudo mv flow-cli-linux-amd64 /usr/local/bin/flow
      
    4. 验证安装:执行flow version,返回版本信息即为成功。
  • 临时使用代理执行安装(若允许)
    先配置代理环境变量(替换为你的代理地址和端口):

    export https_proxy=http://your-proxy-address:port
    

    再重新运行原安装命令:

    sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)"
    

内容的提问来源于stack exchange,提问作者Mod Ranjan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.09 00:25:55