Thursday, November 12, 2009

Qt installing panic on linux : ( gcc : command not found ) error




In My OOP course, I was assigned to implement a simlpe painter . Java and C++ was allowed to do that , but I perefered C++ . I tried to install Qt creator on My new KUbuntu ...... but it was like a horrible panic for me ......
I spent 6 days trying to do that.. but finally I managed to install ....
First of all see this link to setup your Qt creator on linux ..
after that , if you tried to run your fist program using Qt ... and you can't do that because of this error:

gcc : commant not found

or
g++: command not found

those two errors are refering to that you have a problem with your C++ compiler on linux .. it may be not installed or it may be an old version ....
here you are my partner in hell ......:D:D
The solution for this is to opner your terminal and just type that two commands before running your program ..
1-

sudo apt-get update

2 -

sudo apt-get install build-essential

then you can re-install your Qt creator following the previous link ... and it will run in a proper way in sha2 ALLAH...
I hope that it was helpful .... and good luck