LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-26-2011, 09:55 AM   #1
katussa10
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
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?
 
Old 10-26-2011, 10:23 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by katussa10 View Post
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
 
Old 10-26-2011, 10:25 AM   #3
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
What does yum search gcc return? Have you registered your server on rhn?
 
1 members found this post helpful.
Old 10-26-2011, 12:09 PM   #4
katussa10
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rch View Post
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 View Post
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.
 
Old 10-26-2011, 01:16 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by katussa10 View Post
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?
 
1 members found this post helpful.
Old 10-26-2011, 01:23 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,093

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
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
 
1 members found this post helpful.
  


Reply


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
[SOLVED] MM Beta: "Error 5: Input/Output Error" when installing from a live USB Kenny_Strawn Ubuntu 17 09-07-2010 08:56 PM
error while installing unixODBC-2.2.14 on AIX 5.3 -configure: error: C compiler canno sriram_nittala AIX 0 01-20-2010 03:18 AM
error when installing gift: error: cannot compute sizeof (short), 77 v1pEr Linux - Software 5 11-04-2004 02:43 AM
Error installing Alsa (Error copying pcm_lib.c) Doleo Linux - Software 1 02-25-2004 10:53 AM
ERROR running make when installing Nvidia drivers (syntax error) randyriver10 Linux - Software 5 02-21-2004 04:51 PM


All times are GMT -5. The time now is 02:38 PM.

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