LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-04-2012, 02:43 AM   #1
aktamilbe
LQ Newbie
 
Registered: Apr 2012
Location: Chennai
Posts: 1

Rep: Reputation: Disabled
In Cent os:C++ compiler cannot create executbles


What is the reason for the error "C++ compiler cannot create executables"?Even though I have gcc and g++...?Please help me in this issue.?Currently I am working on rpm build in Centos....!
 
Old 04-04-2012, 03:43 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Either a package or some files are missing /// corrupt.

Please try this : # yum reinstall \
cpp gcc libgcc gcc-c++ glibc-devel glibc-common glibc-headers kernel-headers

.
 
1 members found this post helpful.
Old 04-04-2012, 05:01 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
without knowing what you did it is basically impossible to say
a few guesses

1)you did not issue the correct commands ?
the fix ??? unknown

2)you did not install the required prerequisites to build the software ?
the fix ??? unknown

3)you did not install the full gcc tool chain ?
for that
Code:
su -
yum groupinstall "Development Tools" "Development Libraries"
double check the spelling from the grouplist
Code:
yum grouplist

as to this ????
Code:
I am working on rpm build in Centos....!
?? what ???

use yum to install rpmbuild
 
Old 04-04-2012, 06:07 AM   #4
AJ2012
LQ Newbie
 
Registered: Apr 2012
Location: Bangalore, India
Posts: 4

Rep: Reputation: Disabled
Download and Install mingw compiler package
 
Old 04-04-2012, 06:35 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by AJ2012 View Post
Download and Install mingw compiler package
This does not help the OP, as MinGW is for Windows.
 
Old 04-04-2012, 07:08 AM   #6
AJ2012
LQ Newbie
 
Registered: Apr 2012
Location: Bangalore, India
Posts: 4

Rep: Reputation: Disabled
Which version of centos u are using.
You probably need to install the updated g++ package from 5.2 onwards
 
Old 04-04-2012, 08:10 AM   #7
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by aktamilbe View Post
What is the reason for the error "C++ compiler cannot create executables"?Even though I have gcc and g++...?
Meaningful use of g++ requires more packages installed than just gcc/g++. I don't know the correct list of such packages, but knudfl's list in post #2 of this thread looks very plausible. Section (3) of JohnVV's post #3 also looks somewhat plausible.

The rest of the help you have gotten so far doesn't look very helpful to me. I'm posting mainly to help you focus on the constructive earlier replies rather than get lost in the rest.
 
  


Reply



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
checking for C compiler default output... configure: error: C compiler cannot create clubbing80s Linux - Software 3 07-05-2010 08:17 PM
[SOLVED] C compiler cannot create executables mlangdn Slackware 15 04-16-2010 09:23 PM
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
C compiler cannot create executables martincho Linux - Software 3 10-01-2004 07:04 PM
C compiler cannot create executables chrismiceli Linux - General 2 05-11-2003 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 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
Open Source Consulting | Domain Registration