exec: "gcc": executable file not found in %PATH% when trying go build

jaswanth :

I am using Windows 10. When I tried to build Chaincode it reported this error

# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11 
exec: "gcc": executable file not found in %PATH%

My chaincode imports:

import (
    "fmt"
    "strconv"

    "github.com/hyperledger/fabric/core/chaincode/shim"
    pb "github.com/hyperledger/fabric/protos/peer"
)

It's running fine in Docker.

peterSO :

gcc (the GNU Compiler Collection) provides a C compiler. On Windows, install TDM-GCC. The github.com/miekg/pkcs11 package uses cgo. Cgo enables the creation of Go packages that call C code.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

gcloud app deploy says: exec: "git": executable file not found in $PATH

starting container process caused "exec: > \"exec\": executable file not found in $PATH": unknown

OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"xxxx\": executable file not found in $PATH": unknown

Golang docker multi-stage build failing to run: exec: "go": executable file not found in $PATH

"exec: \"go\": executable file not found in $PATH"

exec: executable file not found in $PATH

exec: "sqlboiler": executable file not found in $PATH

Go moq : running "moq": exec: "moq": executable file not found in $PATH

godep: exec: "go": executable file not found in $PATH

docker-exec failed: "cd": executable file not found in $PATH

exec: "com.docker.cli": executable file not found in $PATH

File not found at path when trying to copy

System error: exec: "deployment": executable file not found in $PATH

Executable file not found in $PATH

executable file not found in $PATH Dockerfile

OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"-it\": executable file not found in $PATH":unknown

exec: "docker-runc": executable file not found in $PATH: unknown

"sqlplus": executable file not found in $PATH" when running a command with docker exec

Getting error executable file not found in $PATH when trying verbose run docker container or when docker exec

"exec: "python": executable file not found in $PATH

Docker container build faild: "exec: \"flask\": executable file not found in $PATH": unknown

docker local registry "exec: \"htpasswd\": executable file not found in $PATH"

exec: "php-fpm": executable file not found in $PATH: unknown

CloudFoundry staging error exec: "git": executable file not found in $PATH

cgo: exec gcc: exec: "gcc": executable file not found in $PATH Error in Egress operator installation

Docker's "executable file not found in $PATH: unknown" trying to run "cd"

Docker Go image: starting container process caused: exec: "app": executable file not found in $PATH: unknown

Getting "protoc": executable file not found in $PATH when running "go generate" command

hyperledger fabric - "go": executable file not found in $PATH