LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error installing g++ (https://www.linuxquestions.org/questions/linux-newbie-8/error-installing-g-910284/)

katussa10 10-26-2011 09:55 AM

Error installing g++
 
I was trying to install a software on redhat linux and got the following error message.

DEPDIR=.deps depmode=none /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I../ -c -o FullPairwiseAlign.o `test -f './pairwise/FullPairwiseAlign.cpp' || echo './'`./pairwise/FullPairwiseAlign.cpp
../depcomp: line 571: exec: g++: not found

I tried "yum install gcc-c++" and got the following error:

No package gcc-c++ available.
Nothing to do

I also tried yum update, but the same results.
Can anyone help me?

Tinkster 10-26-2011 10:23 AM

Quote:

Originally Posted by katussa10 (Post 4508916)
I was trying to install a software on redhat linux and got the following error message.

DEPDIR=.deps depmode=none /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I../ -c -o FullPairwiseAlign.o `test -f './pairwise/FullPairwiseAlign.cpp' || echo './'`./pairwise/FullPairwiseAlign.cpp
../depcomp: line 571: exec: g++: not found

I tried "yum install gcc-c++" and got the following error:

No package gcc-c++ available.
Nothing to do

I also tried yum update, but the same results.
Can anyone help me?



Hi, welcome to LQ!

See the difference between the two highlights (in colour) above?
That's your problem.


Cheers,
Tink

rch 10-26-2011 10:25 AM

What does yum search gcc return? Have you registered your server on rhn?

katussa10 10-26-2011 12:09 PM

Quote:

Originally Posted by rch (Post 4508944)
What does yum search gcc return? Have you registered your server on rhn?

I have registered our server on rhn.
here is the output for yum search:
compat-glibc.i386 : Compatibility C library
compat-glibc.x86_64 : Compatibility C library
compat-gcc-34.x86_64 : Compatibility GNU Compiler Collection
compat-gcc-34-c++.x86_64 : C++ support for compatibility compiler
compat-gcc-34-g77.x86_64 : Fortran 77 support for compatibility compiler
compat-libgcc-296.i386 : Compatibility 2.96-RH libgcc library
compat-libstdc++-296.i386 : Compatibility 2.96-RH standard C++ libraries
compat-libstdc++-33.i386 : Compatibility standard C++ libraries
compat-libstdc++-33.x86_64 : Compatibility standard C++ libraries
cpp.x86_64 : The C Preprocessor.
dwarves.x86_64 : Debugging Information Manipulation Tools
gcc.x86_64 : Various compilers (C, C++, Objective-C, Java, ...)
gccxml.x86_64 : XML output extension to GCC
ghdl.x86_64 : A VHDL simulator, using the GCC technology
lib3ds.i386 : 3D Studio file format library
lib3ds.x86_64 : 3D Studio file format library
libgcc.i386 : GCC version 4.1 shared support library
libgcc.x86_64 : GCC version 4.1 shared support library
libgcj.i386 : Java runtime library for gcc
libgcj.x86_64 : Java runtime library for gcc
libgfortran.x86_64 : Fortran 95 runtime
libgnat.i386 : GNU Ada 95 runtime shared libraries
libgnat.x86_64 : GNU Ada 95 runtime shared libraries
libgomp.i386 : GCC OpenMP 2.5 shared support library
libgomp.x86_64 : GCC OpenMP 2.5 shared support library
libmudflap.i386 : GCC mudflap shared support library
libmudflap.x86_64 : GCC mudflap shared support library
libstdc++.i386 : GNU Standard C++ Library
libstdc++.x86_64 : GNU Standard C++ Library
libtermcap.i386 : A basic system library for accessing the termcap database.
libtermcap.x86_64 : A basic system library for accessing the termcap database.
makedepf90.x86_64 : Create Makefile dependency list for Fortran source files
mingw32-gcc.x86_64 : MinGW Windows cross-compiler (GCC) for C
mingw32-gcc-c++.x86_64 : MinGW Windows cross-compiler for C++
python-zope-interface.x86_64 : Zope interfaces package

---------- Post added 10-26-11 at 01:10 PM ----------

Quote:

Originally Posted by Tinkster (Post 4508943)
Hi, welcome to LQ!

See the difference between the two highlights (in colour) above?
That's your problem.


Cheers,
Tink

Actually, I tried both, but it was the same results.

Tinkster 10-26-2011 01:16 PM

Quote:

Originally Posted by katussa10 (Post 4509017)
I have registered our server on rhn.
here is the output for yum search:
compat-glibc.i386 : Compatibility C library
compat-glibc.x86_64 : Compatibility C library
compat-gcc-34.x86_64 : Compatibility GNU Compiler Collection
compat-gcc-34-c++.x86_64 : C++ support for compatibility compiler
compat-gcc-34-g77.x86_64 : Fortran 77 support for compatibility compiler
compat-libgcc-296.i386 : Compatibility 2.96-RH libgcc library
compat-libstdc++-296.i386 : Compatibility 2.96-RH standard C++ libraries
compat-libstdc++-33.i386 : Compatibility standard C++ libraries
compat-libstdc++-33.x86_64 : Compatibility standard C++ libraries
cpp.x86_64 : The C Preprocessor.
dwarves.x86_64 : Debugging Information Manipulation Tools
gcc.x86_64 : Various compilers (C, C++, Objective-C, Java, ...)
gccxml.x86_64 : XML output extension to GCC
ghdl.x86_64 : A VHDL simulator, using the GCC technology
lib3ds.i386 : 3D Studio file format library
lib3ds.x86_64 : 3D Studio file format library
libgcc.i386 : GCC version 4.1 shared support library
libgcc.x86_64 : GCC version 4.1 shared support library
libgcj.i386 : Java runtime library for gcc
libgcj.x86_64 : Java runtime library for gcc
libgfortran.x86_64 : Fortran 95 runtime
libgnat.i386 : GNU Ada 95 runtime shared libraries
libgnat.x86_64 : GNU Ada 95 runtime shared libraries
libgomp.i386 : GCC OpenMP 2.5 shared support library
libgomp.x86_64 : GCC OpenMP 2.5 shared support library
libmudflap.i386 : GCC mudflap shared support library
libmudflap.x86_64 : GCC mudflap shared support library
libstdc++.i386 : GNU Standard C++ Library
libstdc++.x86_64 : GNU Standard C++ Library
libtermcap.i386 : A basic system library for accessing the termcap database.
libtermcap.x86_64 : A basic system library for accessing the termcap database.
makedepf90.x86_64 : Create Makefile dependency list for Fortran source files
mingw32-gcc.x86_64 : MinGW Windows cross-compiler (GCC) for C
mingw32-gcc-c++.x86_64 : MinGW Windows cross-compiler for C++
python-zope-interface.x86_64 : Zope interfaces package

---------- Post added 10-26-11 at 01:10 PM ----------



Actually, I tried both, but it was the same results.

Looking at that list above: is the "gcc" package installed as a whole?

John VV 10-26-2011 01:23 PM

you might want to install the whole tool chain
Code:

su -
yum groupinstall "Development Tools" "Development Libraries"

you can see the software groups from this
Code:

su -
yum grouplist



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