Hi!
Until this step everything worked perfect in this tutorial!
But when trying to deploy it always complains that gcc executeable is not in the path.
....
Step #0: go: finding golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
Step #0: go: finding golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
Step #0: go: finding golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
Step #0: go: finding golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
Step #0: go: finding golang.org/x/sys v0.0.0-20210423082822-04245dca01da
Step #0: go: downloading github.com/jackc/pgx v3.6.2+incompatible
Step #0: go: downloading github.com/pkg/errors v0.9.1
Step #0: go: downloading golang.org/x/text v0.3.7
Step #0: go: downloading golang.org/x/crypto v0.0.0-20220131195533-30dcbda58838
Step #0: # net
Step #0: exec: "gcc": executable file not found in $PATH
Finished Step #0
ERROR
ERROR: build step 0 "gcr.io/gcp-runtimes/go1-builder@sha256:408a098788ef4cdeec452821946b986ef82ce5ebceecbdf748ffecf329765bce" failed: step exited with non-zero status: 2
ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com/cloud-build/builds/cb1f2091-8fe7-4903-af23-9b181e577415?project=543264070412 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for details
GCC is found and can be executed:
$ type gcc
gcc is /usr/bin/gcc
I also added an extra PATH to /usr/bin to .bashrc but it didnt change anything.
What can I do...?
Hi!
Until this step everything worked perfect in this tutorial!
But when trying to deploy it always complains that gcc executeable is not in the path.
....
Step #0: go: finding golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
Step #0: go: finding golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
Step #0: go: finding golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
Step #0: go: finding golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
Step #0: go: finding golang.org/x/sys v0.0.0-20210423082822-04245dca01da
Step #0: go: downloading github.com/jackc/pgx v3.6.2+incompatible
Step #0: go: downloading github.com/pkg/errors v0.9.1
Step #0: go: downloading golang.org/x/text v0.3.7
Step #0: go: downloading golang.org/x/crypto v0.0.0-20220131195533-30dcbda58838
Step #0: # net
Step #0: exec: "gcc": executable file not found in $PATH
Finished Step #0
ERROR
ERROR: build step 0 "gcr.io/gcp-runtimes/go1-builder@sha256:408a098788ef4cdeec452821946b986ef82ce5ebceecbdf748ffecf329765bce" failed: step exited with non-zero status: 2
ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com/cloud-build/builds/cb1f2091-8fe7-4903-af23-9b181e577415?project=543264070412 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for details
GCC is found and can be executed:
$ type gcc
gcc is /usr/bin/gcc
I also added an extra PATH to /usr/bin to .bashrc but it didnt change anything.
What can I do...?