"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Why Does My Go Build Fail with "gcc: executable file not found" and How Can I Fix It?

Why Does My Go Build Fail with "gcc: executable file not found" and How Can I Fix It?

Published on 2025-02-05
Browse:699

Why Does My Go Build Fail with

Resolving "gcc: executable file not found" Error during Go Build

Problem:

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%

Solution:

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.

Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3