Home > Backend Development > Golang > Why Is My Chaincode Build Failing with 'exec: 'gcc': executable file not found in %PATH%' on Windows and How Can I Fix It?

Why Is My Chaincode Build Failing with 'exec: 'gcc': executable file not found in %PATH%' on Windows and How Can I Fix It?

DDD
Release: 2024-12-02 09:17:10
Original
959 people have browsed it

Why Is My Chaincode Build Failing with

Resolving "exec: "gcc": executable file not found in %PATH%" Error while Building Chaincode

When attempting to build Chaincode on Windows 10, some users have encountered the error: "exec: "gcc": executable file not found in %PATH%". This issue typically stems from the absence of the necessary compilers and their libraries, and can be addressed by ensuring that these components are installed.

Solution for Ubuntu

For users running Ubuntu, resolving this issue involves installing the build-essential package. This package contains the gcc/g compilers and their accompanying libraries, which are essential for building and compiling code. To install this package, execute the following command in the terminal:

apt-get install build-essential
Copy after login

Installing this package will resolve the "executable file not found" error and allow you to build Chaincode successfully on Ubuntu.

The above is the detailed content of Why Is My Chaincode Build Failing with 'exec: 'gcc': executable file not found in %PATH%' on Windows 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template