The term 'gcc' is not recognized as the name of a cmdlet, function SOLVED in Visual Studio Code
ฝัง
- เผยแพร่เมื่อ 28 ก.ย. 2024
- How to solve gcc : The term 'gcc' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again in vscode is shown
Thank you, finally a video that makes sense. VScode isn't very beginner friendly.
fr i'm about to cry
I will break my laptop
Ya really you are absolutely right
It took some time to finally have VSCode output Hello World, and this was the last thing I needed to do to make it happen. Thank you so much for the tutorial!
You're welcome!
After adding path for compiler , should've told to restart VS code. It gives error otherwise.
If this doesn't work for you, make sure the gcc file is actually in your bin folder! I had to install the gcc file first and now it works for me
gcc file ? we are adding the path in environment variable right
@@unitedtoptech6288 yeah but the path doesn't do anything if it leads to an empty folder, I had to install files to fill up the folder and make it useful
So you didn't install mingw or any compiler before?
How to install it?
I installed but it is not showing for me in bin
From sourceforge, is it working now?
why is my bin folder empty???
how to fix that?
Can you check inside some other sub folder inside mingw main folder ? , it will surely have
Thank you for making me notice that mine was empty too, it worked now!
Cool
Thank you so much sir for this lecture..this video is really helpful
And for python what i to do solve same type of problems
What problem?
when I
open the Advanced system settings and environment variables and Path and Edit I find it different from the video
What do you find?
@@unitedtoptech6288
The list seems smaller. The data is on one line
so u have user or system variables alone?
@@unitedtoptech6288 when I open the Path for editing i find all The information in one line
So what line is that? If you dont have path , add it and also the mingw location to it too like how I did it
I completed all process... tab pr bhi nhi work nhi kr raha bhai..
Are you getting the same error? check the mingw path if its correct
@@unitedtoptech6288 after 1 day automatic problum .. had solved..gcc is working... thnx ...🥰
Cool man
Thanks sir 🙏🙏
I got this problem again and again finally my problem getting solved
Thanks again
Cool
There is no path in my system variables
Try adding in user variables it will work too if you don't have multiple user accounts
Thank you for this video. Helped me loads!!
after your method I still see the previous message what I do plz help me
Can you tell what is that message?
@@unitedtoptech6288 the same message that you make video for.."the term gcc is not recognized as the name of cmdlet,,"etc
Did you check if you have added the right path? is mingw really there in the folder of that path?
The edit option is blur in my laptop
At what timestamp this comes?
@@unitedtoptech6288 my problem is solved I was doing syntax errors
Cool bro
Bro bro bro bro bro realllyyy thank you so much finally it worked after alot of problemessss 😭😭🤘🏿🤘🏿🤘🏿
Welcome 👍
Thank you so much bro 🙏
I just subscribed ur channel ❤
Welcome 👍
and if you have two hardisk store the location at your system OS hard disc.....it works
Oh thanks
Thank you man it's solved 🎉
Welcome 👍
helped , worked , thanks ♥
You're welcome!
Thank u so much sir its very helpful
Most welcome
What should I do 😭
Did you add the right path?
@@unitedtoptech6288 yaa
@@unitedtoptech6288 but ./a.exe was not working
Try just using "a" command and hit enter
Thanks for the video!!!❤❤
Glad u liked it
you got a new subscriber♥
Yay! Thank you!
Thank you very much❤
You're welcome 😊
Thank you so much!!
Thank you very much for helping a looooooooot
Welcome
Thanks bro, life saver
Happy to help
Love you man
Thank you so much
You're most welcome😊
Thanks you soo guy !!!
thanks a lot dude
Happy to help
thanks a ton bro!!!
No problem
thanks dude
No problem!
Nice video bro
Thanks for the visit
I love you
☀⭐
🥰😍😘😘
cool
Ok, So We Have to Close VS Code for implementing New Settings 👍
yeah for the terminal
Thank you❤
You're welcome 😊
I also have same problem but i didn't solve this problem actually before 1 week i am trying to start code in c language but it is not possible because of this problem
Bhai actually phle maine vs code me python ka code kar rha h matlab python language ka setup tha ab c ka setup kra but ye chal nhi rha h
Give me a solution sir pls🙏
Definitely not working
It did for all, its your problem if you can't do it properly
Thanks sir
U saved my day
Most welcome
I dont have the MinGw folder
Search for mingw in start and click open file location , if you can't find it better download it again
top programmer!!
Iam not getting gcc.exe
It is showing only gcc
at what timestamp do you get this?
Sir , again its showing the same problem 🥲 please help
Check the path and did you restart vscode?
Thanks bro ❤
Welcome 😊
I can't click on the edit option, what to do?
Edit option in environment variables?
Go about system and then system protection and then advanced where at the bottom u can see the environmental variables now u can change the path 😊
cool
@@hryt8064 thnxx 🥰
Just double click the space
Thankyou so much!! was very frustrated with these errors now i can finally begin my vs code journey.
You're welcome!
Thank you so much buddy. It was very helpful ^_^😁😁
You're welcome!
thank u so much. it worked for me. i was so worried.
You're welcome!
Thank You very much kind sir
You are very welcome
Thanks a heck lot brother
Always welcome
Thanks a lot 🙏
You're most welcome
bro thank you so much
Always welcome
thank you so much.
You're welcome!
Thank you ❤
You're welcome 😊
By the way, if this issue still persists even after editing the environment path, restart VS Code and/or restart your system. This worked for me.
Cool
It doesn't work for mee😢😢😢😢
@@unitedtoptech6288sir help
do you have mingw installed already?
@@unitedtoptech6288 yes sir
Tqss a lot sirrrr I have been breaking out my mind for this from so much time you have given me relief . Tqs sir
You're most welcome sir
I can't find the minGW folder :(
try reinstalling it
@@unitedtoptech6288 oh thanks, i'll try
cool
yes it is worked thank you so much sir for solving this problem.
Most welcome!!
Thank u so much sir. As a new user of VS code, I have suffered a lot. But after following this video, I have solved my problem.🥰🥰
Happy to help bro!!
@@unitedtoptech6288 ❤️❤️
welcome
Thankyou so much
Very helpful video
thanks
You're welcome!
9thank you so mush i really suffered to get it right
Glad it worked!!
oh fianlly, thank you fr
Happy to help
Sir I followed all steps as u said but again I got sm error please help me.😢
check the program path
i cant edit the path in the environmental variables
Are you the admin user?
Sir, Why are you telling to open file location of MINGW?🧐
Coz it is the compiler
Thank you!!!
Thank you so much sir, it helped me a lot
You are most welcome
THANKYOU!!!
WELCOME!!!
Thanks!
Thank you so much
You're most welcome
i cant install mingw cuz it said error while downloading over and over again. how to fix this?
Did you download from source forge?
@@unitedtoptech6288 yes i did, i tried 2 more times but none worked
@@unitedtoptech6288 no i didnt, i downloaded from the main page. let me try
yes but it didnt work. it said download failed while it downloading the bin.tar
i also have the log here :
install: libiconv-1.14-3-mingw32-dll-2.tar
installing libiconv-1.14-3-mingw32-dll-2.tar
install: libpthreadgc-2.10-mingw32-pre-20160821-1-dll-3.tar.xz
installing libpthreadgc-2.10-mingw32-pre-20160821-1-dll-3.tar.xz
install: mingw32-libgomp-deps-5.3.0-mingw32-dll.meta
installing mingw32-libgomp-deps-5.3.0-mingw32-dll.meta
install: libgcc-6.3.0-1-mingw32-dll-1.tar.xz
installing libgcc-6.3.0-1-mingw32-dll-1.tar.xz
install: libintl-0.18.3.2-2-mingw32-dll-8.tar.xz
installing libintl-0.18.3.2-2-mingw32-dll-8.tar.xz
install: mingwrt-5.0.2-mingw32-dll.tar.xz
installing mingwrt-5.0.2-mingw32-dll.tar.xz
install: libgmp-6.1.2-2-mingw32-dll-10.tar.xz
installing libgmp-6.1.2-2-mingw32-dll-10.tar.xz
install: libmpfr-3.1.5-2-mingw32-dll-4.tar.xz
installing libmpfr-3.1.5-2-mingw32-dll-4.tar.xz
install: libmpc-1.0.3-1-mingw32-dll-3.tar.xz
installing libmpc-1.0.3-1-mingw32-dll-3.tar.xz
install: libisl-0.18-1-mingw32-dll-15.tar.xz
installing libisl-0.18-1-mingw32-dll-15.tar.xz
install: gcc-core-4.8.2-mingw32-dev.tar.meta
installing gcc-core-4.8.2-mingw32-dev.tar.meta
install: mingw32-gcc-core-deps-6.3.0-1-mingw32-dll.meta
installing mingw32-gcc-core-deps-6.3.0-1-mingw32-dll.meta
install: libquadmath-6.3.0-1-mingw32-dll-0.tar.xz
installing libquadmath-6.3.0-1-mingw32-dll-0.tar.xz
install: libgomp-6.3.0-1-mingw32-dll-1.tar.xz
installing libgomp-6.3.0-1-mingw32-dll-1.tar.xz
install: libssp-6.3.0-1-mingw32-dll-0.tar.xz
installing libssp-6.3.0-1-mingw32-dll-0.tar.xz
install: libmingwex-5.0.2-mingw32-dll-0.tar.xz
installing libmingwex-5.0.2-mingw32-dll-0.tar.xz
install: w32api-5.0.2-mingw32-dev.tar.xz
installing w32api-5.0.2-mingw32-dev.tar.xz
install: mingwrt-5.0.2-mingw32-dev.tar.xz
installing mingwrt-5.0.2-mingw32-dev.tar.xz
install: binutils-2.28-1-mingw32-bin.tar.xz
mingw-get: *** ERROR *** required package file is not available
mingw-get: *** ERROR *** cannot install binutils-2.28-1-mingw32-bin.tar.xz
mingw-get: *** ERROR *** due to previous download failure
install: libatomic-6.3.0-1-mingw32-dll-1.tar.xz
installing libatomic-6.3.0-1-mingw32-dll-1.tar.xz
install: libz-1.2.8-1-mingw32-dll-1.tar
installing libz-1.2.8-1-mingw32-dll-1.tar
install: gdb-7.6.1-1-mingw32-bin.tar.lzma
installing gdb-7.6.1-1-mingw32-bin.tar.lzma
install: make-3.82.90-2-mingw32-cvs-20120902-bin.tar.lzma
installing make-3.82.90-2-mingw32-cvs-20120902-bin.tar.lzma
install: gcc-6.3.0-1-mingw32-lic.tar.xz
installing gcc-6.3.0-1-mingw32-lic.tar.xz
install: libstdc++-6.3.0-1-mingw32-dll-6.tar.xz
installing libstdc++-6.3.0-1-mingw32-dll-6.tar.xz
install: gcc-core-6.3.0-1-mingw32-bin.tar.xz
mingw-get: *** ERROR *** required package file is not available
mingw-get: *** ERROR *** cannot install gcc-core-6.3.0-1-mingw32-bin.tar.xz
mingw-get: *** ERROR *** due to previous download failure
install: mingw32-base-2013072200-mingw32-bin.meta
installing mingw32-base-2013072200-mingw32-bin.meta
install: gcc-c++-4.8.2-mingw32-dev.tar.meta
installing gcc-c++-4.8.2-mingw32-dev.tar.meta
install: gcc-c++-6.3.0-1-mingw32-bin.tar.xz
mingw-get: *** ERROR *** required package file is not available
mingw-get: *** ERROR *** cannot install gcc-c++-6.3.0-1-mingw32-bin.tar.xz
mingw-get: *** ERROR *** due to previous download failure
Thank you sir 🙏🏻
Welcome!!
Sir still not working i cant even run hello world i think can nver lurn cuding
😢
You can still learn through online C editors
make sure the gcc file is actually in the bin folder! in my case it wasn't, I clicked on the one file that WAS in my bin folder, which opened a window where I could install the gcc file and now it works for me
ohh thanks
edit option is disabled
Try with code runner extension
@@unitedtoptech6288 I did it by changing to admin
oh cool
Not working 😭
Did you check if you have mingw installed?
@@unitedtoptech6288 yes I check it
Working now?
Ming w illa bro!?
install it bro
This was my first time setting up a computer without a tutorial. I did all the same step even opening and closing vscode multiple times. I now know you also need to watch a tutorial video telling you to close vscode then it will work :P
Same thing is happening with me n idk what to do it's not working
@@itookallthejamsbananamilk296 Have you:
1. Added C:\MinGW\bin (or whatever your path is) to the system environment variables path?
2. Closed all terminals in VScode
3. Closed vscode
4. Restarted your computer
Also is gcc recognised in cmd/ powershell?
@@matthewjohnstone7324 yep I have done all these things still it's not working for me whenever I'm writing gcc n enter in new terminal it's showing that gcc is not recognised
Followed the entire process, yet back to square 1 for some reason :(
It just worked for me and many :))
@@unitedtoptech6288 I understand that, because everyone else is also mentioning the same process... But no idea why it is not working for me...
I'm still having problems too
(edit) I figured it out! in my case, the gcc file wasn't actually in the bin folder. there was only one file in the bin folder, so I clicked on it and it brought me to this window where I found a gcc option to install. now it works! I hope this helps if you haven't figured it out already
@@dngrjeans1113 I don't know what happened in my case, but now for some reason, it is working after I am putting the full absolute/relative path of the file...
just uninstall mingw and start from scratch
Sir, My problem is not solved 🙂
What error are you getting?
@@unitedtoptech6288 Sir, same problem he ha, or jo ape na bataya bo be keya mana,, but problem solve he nahi hue
did you add the right path in env variables?
what to do its still not working. please help me out
have you added the right path? and also restart vscode after u have added the path, can you please check that
@@unitedtoptech6288I did everything
@@unitedtoptech6288 I did everything
Okay lets try this, can you into mingw folder then bin and check if you have an application file named gcc?
@@unitedtoptech6288 yes there is a file named gcc