首页 > 其他分享 >编译GO报错:cgo: C compiler

编译GO报错:cgo: C compiler

时间:2022-12-05 16:47:40浏览次数:59  
标签:gcc cgo mingw 报错 https GO compiler

cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

造成原因分析:

缺少gcc编译器,需要进行安装,网址:https://sourceforge.net/projects/mingw-w64/files/mingw-w64/

参考安装资料:https://blog.51cto.com/huashao/5197911

image

标签:gcc,cgo,mingw,报错,https,GO,compiler
From: https://www.cnblogs.com/GoodNightMyPrincess/p/16952698.html

相关文章

  • MongoDB——linux中yum命令安装及配置
    一、创建mongodb-org-3.4.repo文件vi/etc/yum.repos.d/mongodb-org-3.4.repo  将下面内容添加到创建的文件中[mongodb-org-3.4]name=MongoDBRepositorybaseurl=htt......
  • 使用idea pom.xml文件打开就报错
    背景  今天来到公司,打开电脑,启动idea其中一个model项目的pom.xml就变成了下面的那个样子,如下图:解决经过各路大神提供思路终于通过暴力解决了问题,方式如下:总......
  • go bin安装
    首先进入gopath的安装路径,在\go\src\github.com运行Git终端输入gitclonehttps://github.com/gin-gonic/gin.gitgin-gonic/gin 如果报错,执行gitconfighttp.sslVerify......
  • 解决Uncaught (in promise) Error: Redirected when going from “/login“ to “/hom
    #问题描述:vue路由跳转错误:Error:Redirectedwhengoingfrom“/login”to“/home”viaanavigationguard.解决方案:对vue-router降低版本到3.0.7"vue-router":"^3......
  • go面试题总结
    1.tcp/ip3次握手和4次挥手3次握手需要客户端确认,因为服务器端不确定对方是否收到,所以客户端必须发送ack确认一下为什么需要4次挥手,客户端发起fin+ack到服务器,服务端发起ac......
  • go 面试题
    go空结构体可以三种使用场景:实现方法接收者。实现集合类型。实现空通道。select可以用作协程的退出。context可以用来跟踪goroutine,取消掉所有goroutinewaitgroup和con......
  • python django shell 更新代码后需要重启
    pythondjango 使用pythonmanage.py shell练习时更改代码后,需要重新打开窗口进行练习TRANSLATEwithxEnglishArabicHebrewPolishBulgarianH......
  • virsh list报错: error: failed to connect to the hypervisor
    查看本地kvm虚机时,发现无法查看,出现报错#virshlisterror:failedtoconnecttothehypervisorerror:Failedtoconnectsocketto'/var/run/libvirt/libvirt-soc......
  • 【开源代码、数据集】大尺度场景下使用时间图优化的多传感器融合定位 onlineFGO
    以下内容来自从零开始机器人SLAM知识星球每日更新内容点击领取学习资料→机器人SLAM学习资料大礼包论文#onlineFGO:OnlineContinuous-TimeFactorGraphOptimiza......
  • golang的特殊常量iota
    其实iota这个常量应该是编译器的常量,iota是一个编译器在编译过程中动态赋值。iota在const关键字出现时将被重置为0(const内部的第一行之前),const中每新增一行常量声明......