installing g++ in RHEL 5.4
I needed to install in g++. So I tried with yum and failed.
Code:
[root@mesozoic ~]# yum install gcc g++ gcc-c++ Code:
[root@mesozoic ~]# yum repolist Code:
[root@mesozoic ~]# yum search g++ TIA, |
I don't have one to test but maybe you're missing the 'workstation' sub-channel of RHEL Desktop ...
hth |
Thanks a lot, kbp!
Yes, changing the subscription channel worked. But now when I tried yum, it gave me dependency errors: Code:
[root@mesozoic ~]# yum install gcc-c++ How do I sort this version issue? Any idea, please? TIA |
I'm not sure .. maybe try removing gcc-objc then installing gcc-g++ ..
Just a thought, how did you change the subscription channel ? ... |
Sorry, just noticed the version difference that you mentioned, can you uninstall gcc and friends then just install gcc-c++, this should pull in the correct version of the dependencies
|
there is the "groupinstall" - " Development Tools" that should have been used to install gcc and all the tools needed
then the "groupinstall" - " Development Librarys" for the devel rpms for a list run Code:
su - Code:
yum --help |
1 Attachment(s)
Quote:
Quote:
On changing subscription channel: I logged in to my rhn.redhat.com account and chose my system. In the system page, there was a link for alter channel subscriptions which gives available channels. Quote:
|
From the error message I posted on third post of this thread, as far as I understand, instead of 4.1.2-46 version it is going to update 4.1.2-48 version of gcc-c++.
What is confusing me is that the dependency error starts with Code:
Package gcc-c++.x86_64 0:4.1.2-48.el5 set to be updated |
well seeing as you are using RHEL 5.4
Then you ARE paying for tech support and access to the RHN call red hat -- that is one of the reasons you ARE paying for the license , right . Quote:
please post the output of Code:
yum repolist all |
Quote:
On the issue: I finally got g++ installed by using gcc-c++4.1.2-46 rpm from rpm.pbone.net. And it is working. But still the same dependency issue is still there, and if I want to do <yum update> it exists giving same error (missing dependency for gcc-c++4.1.2-48). Here is the output of <yum repolist all> Code:
[root@mesozoic ~]# yum repolist all |
@John VV
thanks so much for this. Do have a great day!! Please where is the best resource for learning c++ on fedora 15. thanks |
All times are GMT -5. The time now is 06:47 AM. |