We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

how to install gcc?

Hoboly
Hoboly asked
on
Medium Priority
4,192 Views
Last Modified: 2012-05-11
how to install gcc?
I got this dependencies error
but I cannot find  libmpfr.so.1 on the linux cd.


[root@ol6 Packages]# rpm -U gcc-4.4.4-13.el6.i686.rpm
warning: gcc-4.4.4-13.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
error: Failed dependencies:
        cloog-ppl >= 0.15 is needed by gcc-4.4.4-13.el6.i686
        cpp = 4.4.4-13.el6 is needed by gcc-4.4.4-13.el6.i686
[root@ol6 Packages]# rpm -U cpp-4.4.4-13.el6.i686.rpm
warning: cpp-4.4.4-13.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
error: Failed dependencies:
        libmpfr.so.1 is needed by cpp-4.4.4-13.el6.i686
[root@ol6 Packages]# rpm -U lib
[root@ol6 Packages]# rpm -U lib
[root@ol6 Packages]# rpm -U libmpf



Thanks~
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Top Expert 2011

Commented:
Assume you have DVD mounted,
As root
# vi /etc/yum.repos.d/CentOS-Media.repo
Make sure enabled is set to 1:
----------
enabled=1
---------

Use yum to install from DVD, it will take care all the dependencies.
# yum --disablerepo=\* --enablerepo=c5-media install gcc
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks all,

wesly_chen,
I ran: [root@ol6 Packages]# vi /etc/yum.repos.d/packagekit-media.repo

[InstallMedia]
name=Oracle Linux 6.0
mediaid=1296771327.38
metadata_expire=-1
gpgcheck=0
cost=500
enabled=1


[root@ol6 Packages]# yum --disablerepo=\* --enablerepo=c5-media install gcc
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with ULN.
ULN support will be disabled.


Error getting repository data for c5-media, repository not found
[root@ol6 Packages]# yum --disablerepo=\* --enablerepo=packagekit-media install
gcc
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with ULN.
ULN support will be disabled.


Error getting repository data for packagekit-media, repository not found
[root@ol6 Packages]#

Author

Commented:
[root@ol6 Packages]# find / -name repomd.xml
/media/cdrom/HighAvailability/repodata/repomd.xml
/media/cdrom/LoadBalancer/repodata/repomd.xml
/media/cdrom/ResilientStorage/repodata/repomd.xml
/media/cdrom/Server/repodata/repomd.xml
Top Expert 2011
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Excellent!!!!!!!!!!!

Thank you very much!

Author

Commented:
Excellent!!!!!!!!!!!!!!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.