Building Chaincode with "exec: "gcc": executable file not found in %PATH%" Issue
While attempting to build a Chaincode on Windows 10, some users may encounter the following error:
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11 exec: "gcc": executable file not found in %PATH%
This error typically arises due to missing C compilers in your system.
Solution for Ubuntu Users:
For Ubuntu users, the solution is simple:
apt-get install build-essential
This command will install the necessary gcc/g compilers and libraries, resolving the issue. The Chaincode building process should now proceed without errors.
The above is the detailed content of Why Does Building Hyperledger Fabric Chaincode Fail with 'gcc: executable file not found in %PATH%'?. For more information, please follow other related articles on the PHP Chinese website!