gpt4 book ai didi

gcc - 如何修复以下 Google Cloud Platform 部署错误? [错误 2]

转载 作者:IT王子 更新时间:2023-10-29 02:22:01 26 4
gpt4 key购买 nike

我正在尝试将我的网络应用程序部署到 Google Cloud Platform,但在部署时出现错误。我知道最后一个包 (go-sqlite3) 需要 gcc 编译器,Google Cloud WM 有它:

$which gcc
/usr/bin/gcc

但是不行

Step 3 : RUN go-wrapper install -tags appenginevm
---> Running in b0f03024342d
+ exec go install -v -tags appenginevm
github.com/mattn/go-colorable
github.com/mattn/go-isatty
github.com/labstack/gommon/color
github.com/valyala/fasttemplate/vendor/github.com/valyala/bytebufferpool
github.com/valyala/fasttemplate
github.com/labstack/gommon/log
golang.org/x/crypto/acme
golang.org/x/crypto/acme/autocert
github.com/labstack/echo
golang.org/x/net/context
github.com/mattn/go-sqlite3
# github.com/mattn/go-sqlite3
exec: "gcc": executable file not found in $PATH
The command '/bin/sh -c go-wrapper install -tags appenginevm' returned a non-zero code: 2
ERROR
ERROR: build step "gcr.io/cloud-builders/docker@sha256:926dc1a14e6f7eb5b3462b5c1d491aa6c73090291167ac2bf181c026b05f19da" failed: exit status 2

最佳答案

您必须通过在您的 shell 上执行命令来使您的路径正确。

 PATH=/usr/bin:$PATH

关于gcc - 如何修复以下 Google Cloud Platform 部署错误? [错误 2],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43789013/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com