Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-21-2010, 10:22 AM   #1
LQ Newbie
Registered: May 2010
Posts: 19

Rep: Reputation: 0
Command not found

I'm trying to install a GUI program but need QT, so when i try and install it by doing configure this error pops up-

Creating qmake. Please wait...
g++ -c -o project.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/usr/local/qt/include/qmake -I/usr/local/qt/include -I/usr/local/qt/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/local/qt/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP project.cpp
gmake: g++: Command not found
gmake: *** [project.o] Error 127
qmake failed to build. Aborting.
Am i missing a package that i need to install for this?
Old 05-21-2010, 10:29 AM   #2
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55

You need to install g++ compliler.
Old 05-21-2010, 10:29 AM   #3
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Yes. That one providing the GNU C++ compiler (g++). Which linux distribution are you running on? If it's CentOS, you should install the package gcc-c++ or the whole "Development Tools" group.
Old 05-21-2010, 10:31 AM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
What are you trying to install?

Before trying to compile a program, always check first with your package manager to see if it's there.

The error message says that it cannot find the "g++" command. Do you have gcc installed on your system? Look in /usr/bin for "gcc" or "g++"

On my system, it appears that g++ gets installed as part of the gcc package.
Old 05-21-2010, 10:38 AM   #5
LQ Newbie
Registered: Apr 2010
Distribution: Fedora 13
Posts: 20

Rep: Reputation: 1
For CentOS I had a similar problem solved by running

yum install gcc-c++
This should install the required gcc package.

Edit: Noticed i'm repeating colucix!

Last edited by Potatos; 05-21-2010 at 10:40 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setup command not found in Ubuntu 10.04 Command Prompt vinaytp Ubuntu 2 05-06-2010 01:10 PM
Shell: command not found / Runs fine with "Run command" badbunny Linux - Newbie 1 01-22-2007 01:21 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
Command not found kloss *BSD 12 05-15-2005 06:31 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration