LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command not found (https://www.linuxquestions.org/questions/linux-newbie-8/command-not-found-809315/)

spider99 05-21-2010 10:22 AM

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-

Quote:

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?

vinaytp 05-21-2010 10:29 AM

Hi,

You need to install g++ compliler.

colucix 05-21-2010 10:29 AM

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.

pixellany 05-21-2010 10:31 AM

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.

Potatos 05-21-2010 10:38 AM

For CentOS I had a similar problem solved by running

Quote:

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

Edit: Noticed i'm repeating colucix!


All times are GMT -5. The time now is 04:32 AM.