第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

如何解決 running gcc failed exist status 1 in mac m1?

如何解決 running gcc failed exist status 1 in mac m1?

Go
MMMHUHU 2022-11-28 10:18:08
我已經(jīng) brew install mingw-w64。當(dāng)我檢查它的版本時(shí)。gcc --版本:gcc (Homebrew GCC 11.2.0_3) 11.2.0.g++——版本:g++ (Homebrew GCC 11.2.0_3) 11.2.0我還運(yùn)行哪個(gè) gcc:/opt/homebrew/bin/gcc然后我用 image 運(yùn)行我的 docker-compose golang:latest。還沒有錯(cuò)誤up to date, audited 370 packages in 10m9 packages are looking for funding  run `npm fund` for details6 high severity vulnerabilitiesTo address issues that do not require attention, run:  npm audit fixTo address all issues (including breaking changes), run:  npm audit fix --forceRun `npm audit` for details.Unlinking stale socket /tmp/supervisor.sock[15:30:39] Using gulpfile /go/src/github.com/projectname/src/api/gulpfile.js[15:30:39] Starting 'default'...[15:30:39] Starting 'watch'...當(dāng)我保存 .go 文件時(shí),它會(huì)下載所有模組,這是錯(cuò)誤: # github.com/projectname/api /usr/local/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1 collect2: fatal error: cannot find 'ld' compilation terminated. [15:46:23] 'build-binary' errored after 1.98 s [15:46:23] Error in plugin "gulp-shell" Message:     Command `go build` failed with exit code 2這是我的Dockerfile:FROM golang:1.17.0-alpine3.14 AS builder    RUN apk update && apk add gcc make git libc-dev binutils-gold# Install dependenciesRUN apk add --update tzdata \    --no-cache ca-certificates git wget \    nodejs npm \    g++ \    supervisor \    && update-ca-certificates \    && npm install -g gulp gulp-shellRUN npm install -g yarnCOPY ops/api/local/supervisor /etcENV PATH $PATH:/go/binWORKDIR /go/src/github.com/projectname/src/api
查看完整描述

1 回答

?
狐的傳說(shuō)

TA貢獻(xiàn)1804條經(jīng)驗(yàn) 獲得超3個(gè)贊

嘗試并檢查是否像在這個(gè) Dockerfile 中一樣,添加binutils-gold將允許您使用ld.

RUN apk update && apk add gcc make git libc-dev binutils-gold

(首次出現(xiàn)在nodejs/nodeissue 4212


查看完整回答
反對(duì) 回復(fù) 2022-11-28
  • 1 回答
  • 0 關(guān)注
  • 449 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)