Home > Backend Development > Golang > Why Does Building Hyperledger Fabric Chaincode Fail with 'gcc: executable file not found in %PATH%'?

Why Does Building Hyperledger Fabric Chaincode Fail with 'gcc: executable file not found in %PATH%'?

Susan Sarandon
Release: 2024-12-06 20:02:11
Original
348 people have browsed it

Why Does Building Hyperledger Fabric Chaincode Fail with

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%
Copy after login

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
Copy after login

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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template