LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-10-2015, 03:44 AM   #1
sanjay090587@gmail.com
LQ Newbie
 
Registered: Dec 2015
Posts: 9

Rep: Reputation: Disabled
what are the dependencie is requried to install gcc in redhat 6.1


what are the dependecies file requried to install gcc in redhat 6.1, these dependecies file already present in system. if present the how activate and no then what are those ?????
what is the best gcc software to install on redhat 6.1 ?????
 
Old 12-10-2015, 04:00 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
yum install gcc.

And yum upgrade so that you get from RHEL6.1 to RHEL6.7. If you have a support contract. If not, use Centos instead.

EDIT: Perhaps you have trouble installing gcc because you have no support contract. If so, you can convert your system to Centos without much trouble; find a cookbook on the internet (I don't know it by heart but did it once with ease and with success).

Last edited by berndbausch; 12-10-2015 at 04:07 AM.
 
Old 12-10-2015, 04:29 AM   #3
sanjay090587@gmail.com
LQ Newbie
 
Registered: Dec 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
when i am using the command:

yum install gcc.

then it showing "package not found"
 
Old 12-10-2015, 04:56 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
What if you do yum search gcc?
And which repository are you using?
 
Old 12-10-2015, 08:51 AM   #5
sanjay090587@gmail.com
LQ Newbie
 
Registered: Dec 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
What if you do yum search gcc?
And which repository are you using?
output of command: yum search gcc


Loaded plugins: product_id, subscription-manager
updating red hat repositories.

libgcc.i86 : gcc version 4.4 shared support library
libgomp.i86 : gcc openMP v3.0 shared support library

Name and summary match only, use "search all" for everything
====================================================================


Repositories:
[root@localhoat etc]# cat yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releserver
keepcache=1
debuglevel=2
logfile=/var/log/yum.lob
exactarch=1
obsolectes=1
gpgcheck=1
plugins=1
installonly_limit=3


[root@localhoat yum.repos.d]# cat redhat.repo
#
# red hat repositories
#Managed by (rhsm) subscription-manager

[root@localhoat yum.repos.d]# cat rhel-source.repo
[rhel-source]
name= Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releaserver/en/os/SRPMS/
enabled=0
gpgcheck=1;
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[rhel-source-beta]
name= Red Hat Enterprise Linux $releasever Beta - $bas earch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/enterprise/$releaserver/en/os/SRPMS/
enabled=0
gpgcheck=1;
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm -gpg/RPM-GPG-KEY-redhat-release

Now chage is requried to install gcc ??????
 
Old 12-10-2015, 09:19 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by sanjay090587@gmail.com View Post
output of command: yum search gcc

Loaded plugins: product_id, subscription-manager
updating red hat repositories.

libgcc.i86 : gcc version 4.4 shared support library
libgomp.i86 : gcc openMP v3.0 shared support library

Name and summary match only, use "search all" for everything
====================================================================


Repositories:
[root@localhoat etc]# cat yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releserver
keepcache=1
debuglevel=2
logfile=/var/log/yum.lob
exactarch=1
obsolectes=1
gpgcheck=1
plugins=1
installonly_limit=3


[root@localhoat yum.repos.d]# cat redhat.repo
#
# red hat repositories
#Managed by (rhsm) subscription-manager

[root@localhoat yum.repos.d]# cat rhel-source.repo
[rhel-source]
name= Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releaserver/en/os/SRPMS/
enabled=0
gpgcheck=1;
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[rhel-source-beta]
name= Red Hat Enterprise Linux $releasever Beta - $bas earch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/enterprise/$releaserver/en/os/SRPMS/
enabled=0
gpgcheck=1;
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm -gpg/RPM-GPG-KEY-redhat-release

Now chage is requried to install gcc ??????
Changing GCC without a VERY GOOD REASON, against what is in the repositories, is risky.

Since you're under support with Red Hat, the simplest thing you can do is to call Red Hat support, and they can assist you.
 
Old 12-10-2015, 10:33 AM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
If redhat.repo were really managed by subscription manager, you wouldn't be on RHEL 6.1 anymore. So I doubt that you have a contract, and it looks like you have no binary repositories configured.

Thus yum doesn't find gcc.

Again my suggestion: Switch to Centos, update to 6.7.
If I am wrong and you do have a contract, upgrade to RHEL6.7 as soon as you can. Then you will alao have an up to date version of gcc.
 
Old 12-10-2015, 11:28 AM   #8
sanjay090587@gmail.com
LQ Newbie
 
Registered: Dec 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
If redhat.repo were really managed by subscription manager, you wouldn't be on RHEL 6.1 anymore. So I doubt that you have a contract, and it looks like you have no binary repositories configured.

Thus yum doesn't find gcc.

Again my suggestion: Switch to Centos, update to 6.7.
If I am wrong and you do have a contract, upgrade to RHEL6.7 as soon as you can. Then you will alao have an up to date version of gcc.
which red hat version need to install, no any problem occur???
 
Old 12-10-2015, 04:18 PM   #9
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
6.7 or 7.1. In other words, the latest.
 
Old 12-10-2015, 09:53 PM   #10
sanjay090587@gmail.com
LQ Newbie
 
Registered: Dec 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
can i download some gcc version and installed ????
 
Old 12-10-2015, 09:58 PM   #11
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by sanjay090587@gmail.com View Post
can i download some gcc version and installed ????
Yes.

However you won't know whether it is compatible with your operating system. See also TB0ne's remark on this page.

And you will probably have to install a bunch of dependencies. yum would do that for you automatically.

Frankly, you will have much less hassle if you update to RHEL 6.7 or 7.1. If you can't do that for lack of contract, you will still have much less hassle converting your RHEL system to Centos and updating to Centos 6.7 or 7.1.

Last edited by berndbausch; 12-10-2015 at 10:03 PM.
 
Old 12-10-2015, 10:29 PM   #12
sanjay090587@gmail.com
LQ Newbie
 
Registered: Dec 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
what is the sense of "contract" in linux ??????
 
Old 12-10-2015, 10:47 PM   #13
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
RHEL really is not a free operating system
to install software and SECURITY UPDATES you need to buy the REQUIRED support contract
https://www.redhat.com/wapps/store/allProducts.html

normally ( if a server is not set to require a MANUAL upgrade ) running a update would have upgraded 6.1 to 6.2 then to 6.3 and to the current 6.7

and normally software is installed using yum and the redhat software repos ( that you get access to with the paid for license )

now for installing gcc you normally install the software group "Development Tools"
or
do to a bit of odd luck there happens to be a second way
Code:
su -
yum install gcc-c++
and that will also install the needed dependencies

BUT

you need a registered and paid for install first

redhat also has there own development tools

"Developer Toolset"

https://access.redhat.com/documentat...t-Install.html

Last edited by John VV; 12-10-2015 at 10:52 PM.
 
Old 12-10-2015, 10:55 PM   #14
sanjay090587@gmail.com
LQ Newbie
 
Registered: Dec 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
so i will change the RHEL 6.1 to REHL 7.1 beta version.

So Any Kind of problem will occur releted to dependencies and software ????

The gcc-c++ will work ???

this is the beta version of any problem in future ?????
 
Old 12-10-2015, 11:25 PM   #15
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by sanjay090587@gmail.com View Post
so i will change the RHEL 6.1 to REHL 7.1 beta version.

So Any Kind of problem will occur releted to dependencies and software ????

The gcc-c++ will work ???

this is the beta version of any problem in future ?????
Why beta? RHEL 7.1 is released and fully supported.
Once you run a supported version of RHEL and have correct repositories set up, you can yum install gcc. You then have a working compiler.

I don't know what you mean by the last remark. Apart from bugs, you won't have problems if you use supported operating system versions.
 
  


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
How to install gcc 4.2 on Ubuntu 12.04 or RedHat 5 galfly Linux - Software 9 03-13-2013 05:15 AM
[SOLVED] Problem to install spice3, ncurses (libtinfo.so.5) is requried anujkaushal Linux - Software 6 09-02-2011 04:29 AM
Redhat install gcc miamagoo Linux - Newbie 1 07-06-2010 12:56 PM
help requried in installing broadcom BCM5782 gigaethernet driver on redhat 9 sasank Linux - Networking 0 08-31-2004 04:49 AM
redhat installation did not install gcc centr0 Linux - General 11 02-28-2003 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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