我正嘗試將我的網絡應用部署到Google Cloud Platform,並且在部署時出現錯誤。據我所知,最後包(走-sqlite3的)需要gcc編譯器和谷歌雲WM有它:如何修復以下Google Cloud Platform部署錯誤? [錯誤2]
$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/[email protected]:926dc1a14e6f7eb5b3462b5c1d491aa6c73090291167ac2bf181c026b05f19da" failed: exit status 2
什麼是回聲$ PATH的輸出 –
zer0xtgs @ TODO-hntu:〜$回聲$ PATH /谷歌/谷歌雲SDK /斌:在/ usr /本地/ NVM /版本/節點/ V6。 9.2 /斌:/家庭/ zer0xtgs/GOPATH /斌:/谷歌/ GOPATH /斌:在/ usr /本地/去/斌:/gradle-2.12/bin:/apache-maven-3.3.9/bin:/谷歌/ google-cloud-sdk/bin:/ usr/local/sbin:/ usr/local/bin:/ usr/sbin:/ usr/bin:/ sbin:/ bin:/ google/go_appengine:/ google/google_appengine – JamesAlexander
更改您的通過給這個命令路徑&再試一次。 PATH =/usr/bin:$ PATH –