Home > Backend Development > Golang > 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?

Patricia Arquette
Release: 2024-12-21 17:49:14
Original
168 people have browsed it

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

Solution:

If encountering this error within Ubuntu, execute the following command to install the gcc/g compilers and libraries:

apt-get install build-essential
Copy after login

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!

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