“GCC is not recognized as an internal or external command” error occurs when the MinGW installation folder is not included in the PATH Environment Variable on your Windows computer. So, simply adding that folder to the Path will fix this error and then, you can run GCC from the command prompt. Let’s discuss how to fix the error by adding the MinGW installation folder to the PATH using GUI.
To fix ‘GCC is not recognized as an internal or external command’ error
The first thing we need to do is confirm whether this error occurs due to the missing MinGW installation folder in the Path environment variable or not. In order to do so, simply launch a Command Prompt window on your PC and run the command – Set Path.
Have a look at the output in which the Path should include the MinGW folder. If you don’t find it, then it’s clear why the error is being triggered. As we now know the cause of this error, we need to now edit the Environment Variable Path.
The Path Environment variable value can be changed or edited by opening the Environment Variables console on your PC. And then, we need to look for the Path inside the System Variables section. Follow the steps below –
Step 1
On your Windows computer, there will be a search box that sits right next to the Start button on the taskbar. Simply, click on that search bar and start typing environment variables.
Step 2
Now, as you type, the search suggestions will start to pop-up from which you need to select the Edit the system environment variables option.
Step 3
The System Properties window will now be opened. Make sure the Advanced tab is opened or else, click on that tab to open that section. Then, click on the Environment Variables button that will be at the bottom of the window.
Step 4
The Environment Variables window will be launched in which you need to have a look at the System Variables section. Now, scroll down until you find the Path variable and its value.
Step 5
Then, select Path and click on the edit button. The Edit Environment window will now be opened. Now, select the path that you have seen when you executed the Set Path command in CMD and click on the Edit button.
Step 6
Now, type “;c:\MinGW\bin” at the end of the selected Path value and click Ok in order to edit the Path.
These are all the steps that should be followed in order to fix the “GCC is not recognized as an internal or external error command” error in the Command Prompt. I hope this worked for you too. If you still have doubts regarding resolving this error, feel free to post a question here at FAQwalla.
Top Categories
[Solved] gcc is not recognized as an internal or external command operable program or batch file
- Category: Information Technology
- Sub Category: Web Development
2078 Views
No Likes
No Dislikes
gcc is not recognized as an internal or external command operable program or batch file and the term 'gcc' is not recognized as the name of a cmdlet function script file or operable program are few common error people using gnu gcc compiler encounter while using C compiler to compile their c files.
gcc is not recognized as an internal or external command operable program or batch file and the term 'gcc' is not recognized as the name of a cmdlet function script file or operable program are few common error people using gnu gcc compiler encounter while using C compiler to compile their c files. In this video I will not only solve this issue for you but explain you the reason for the same and how to avoid it in the future! ►Click here to subscribe - //www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww Best Hindi Videos For Learning Programming: ►Learn Python In One Video - //www.youtube.com/watch?v=qHJjMvHLJdg ►Learn JavaScript in One Video - //www.youtube.com/watch?v=onbBV0uFVpo ►Learn PHP In One Video - //www.youtube.com/watch?v=xW7ro3lwaCI ►Machine Learning Using Python - //www.youtube.com/playlist?list=PLu0W_9lII9ai6fAMHp-acBmJONT7Y4BSG ►Creating & Hosting A Website (Tech Blog) Using Python - //www.youtube.com/playlist?list=PLu0W_9lII9agAiWp6Y41ueUKx1VcTRxmf ►Advanced Python Tutorials - //www.youtube.com/playlist?list=PLu0W_9lII9aiJWQ7VhY712fuimEpQZYp4 ►Object Oriented Programming In Python - //www.youtube.com/playlist?list=PLu0W_9lII9ahfRrhFcoB-4lpp9YaBmdCP ►Python Data Science and Big Data Tutorials - //www.youtube.com/playlist?list=PLu0W_9lII9agK8pojo23OHiNz3Jm6VQCH Follow Me On Social Media ►Website (created using Flask) - //www.codewithharry.com ►Facebook - //www.facebook.com/CodeWithHarry ►Instagram (Guaranteed Replies :)) - //www.instagram.com/haris_magical/ ►Personal Facebook A/c - //www.facebook.com/geekyharis Twitter - //twitter.com/Haris_Is_Here