Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec: "gcc": executable file not found in $PATH #17

Closed
hellolijj opened this issue Aug 9, 2019 · 2 comments
Closed

exec: "gcc": executable file not found in $PATH #17

hellolijj opened this issue Aug 9, 2019 · 2 comments

Comments

@hellolijj
Copy link

when i use pouchlinter image check my codes, it got error as list:

#!/bin/bash -eo pipefail
go fmt ./...
go vet ./...
# github.com/AliyunContainerService/gpu-scheduler-extender/vendor/github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml
exec: "gcc": executable file not found in $PATH
Exited with code 2

but docker file has installed gcc https://github.com/pouchcontainer/pouchlinter/blob/master/Dockerfile#L14-L18

so, i build a new image, the probelm was solved.

maybe, image pouchcontainer/pouchlinter need update

@yeya24
Copy link
Collaborator

yeya24 commented Aug 10, 2019

Yes. In my last PR, I add the installation of gcc because it is required by golangci-lint.
Seems like the pouchlinter image in docker hub is not synced with Github.

@allencloud
Copy link
Contributor

Thanks for your report. @hellolijj @yeya24
Sorry for the delay of pushing images. Now I have pushed to dockerhub. Please help to use pouchcontainer/pouchlinter:v0.2.2.

I have tested the image locally:

pouchlinter (master) # docker run -it pouchcontainer/pouchlinter:v0.2.2 bash
root@039703cf34c9:/# which gcc
/usr/bin/gcc
root@039703cf34c9:/# which golangci-lint
/go/bin/golangci-lint
root@039703cf34c9:/# exit
exit
pouchlinter (master) #

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants