While attempting to build Chaincode on Windows 10, an error occurs:
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11 exec: "gcc": executable file not found in %PATH%
If encountering this error within Ubuntu, execute the following command to install the gcc/g compilers and libraries:
apt-get install build-essential
This should resolve the issue.
The above is the detailed content of Why Does My Go Build Fail with 'gcc: executable file not found' and How Can I Fix It?. For more information, please follow other related articles on the PHP Chinese website!