LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-06-2013, 01:38 AM   #16
inrtyx
LQ Newbie
 
Registered: Dec 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by nishantkharat View Post
#yum install gcc*

try this
Thank you. I used "rpm -q [package] --nodeps " to remove. then, used "rpm -ivh [package]" to install.
 
Old 12-06-2013, 01:39 AM   #17
inrtyx
LQ Newbie
 
Registered: Dec 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by inrtyx View Post
Thank you. I used "rpm -q [package] --nodeps " to remove. then, used "rpm -ivh [package]" to install.
sorry, rpm -e [package] --nodeps
 
Old 12-06-2013, 02:27 AM   #18
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
all this from a "maybe"
maybe ??????
uninstalling a "maybe messed up" install of gcc then reinstalling it ??? MIGHT???? fix it

linux is not windows
but

SOMETIMES it works , not always
( yum remove ProgramName -- then --- yum install ProgramName )

if gcc and ALL ( and there are A LOT OF DEPENDENCIES NEEDED !!!) the dependance's are not installed then gcc will NOT WORK

and gcc is not "just one program"
it is a collection of compiler tools ( and the compilers )

gcc
g++
gfortran
gcc-obj
gcc-gov
and so on

plus ALL the software it needs ( and it needs a lot )


from the FIRST post
it looks like there are MANY DIFFERENT versions installed -- and likely NOT installed correctly

first that file in /bin called "gcc" is only a LINK to one of those versions 3.1 3.2,and 4.4

it is likely that things are a bit MESSED UP

so lets start be uninstalling ALL the gcc development tools
then reinstall then the correct way

this might be quick and easy
OR TAKE A WEEK

start with this
this will make a list of installed rpms of the compiler

Code:
su -
rpm -qa | grep gcc > /gcclist.txt
that will make a list in a text file in the root tree "/"
to see the list in the terminal
Code:
su -
rpm -qa | grep gcc
then post it here

Last edited by John VV; 12-06-2013 at 02:35 AM.
 
  


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
Redhat issue: "bash:gcc command not found" akshit Linux - Newbie 4 02-17-2013 12:54 AM
gcc-4.5.2 - Pass 1 error -gcc command not found ?? adi_30stm Linux From Scratch 20 11-17-2011 12:23 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
bash: gcc: command not found sandbag Linux - Software 8 05-05-2005 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:32 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