Results 1 to 6 of 6
I've been working to get gcc up and running on a new install of Fedora 13. glibc-devel had dependencies upon installation where it required glibc and glibc-common, both 2.12.1-3. No ...
- 10-26-2010 #1Just Joined!
- Join Date
- Oct 2010
- Posts
- 11
Circular dependencies
I've been working to get gcc up and running on a new install of Fedora 13. glibc-devel had dependencies upon installation where it required glibc and glibc-common, both 2.12.1-3. No problem, found both at rpm dot pbone dot net. However, when I try to install the following circular dependency results... it doesn't matter the order of install. Any suggestions? Thank you!
Code:[root AT localhost gcc_install]# rpm -ivh glibc-common-2.12.1-3.x86_64 .rpm error: Failed dependencies: glibc = 2.12.1-3 is needed by glibc-common-2.12.1-3.x86_64 [root AT localhost gcc_install]# rpm -ivh glibc-2.12.1-3.x86_64 .rpm error: Failed dependencies: glibc-common = 2.12.1-3 is needed by glibc-2.12.1-3.x86_64 [root AT localhost gcc_install]#
- 10-26-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Why not install with yum? It will resolve and install dependencies in the correct order. Installing current RedHat or Fedora software packages with rpm is likely to encounter this problem.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 10-26-2010 #3Just Joined!
- Join Date
- Oct 2010
- Posts
- 11
No yum
I would dearly love to install with yum. However, this problem manifests as I go down the rabbit-hole. This is a new Fedora 13 install on a Dell N7010 and there is no working Ethernet or wireless drivers. These driver installs require gcc. Using yum doesn't work, it gives an error saying it can't get to the mirror sites (probably because the computer has no connectivity):
Code:[root AT localhost gcc_install]# yum install gcc g++ gdb make Loaded plugins: presto, refresh-packagekit http : / /download.fedoraproject.org/pub/fedora/linux/releases/13/Everything/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again [root AT localhost gcc_install]#
- 10-26-2010 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
You can install these RPM's with yum, attached to the network or not. You can install all of them in one pass, as in: yum install *.rpm
It will look at the rpm files and determine of all the dependencies are either covered by the rpms being installed, or by packages installed already on the system. You might want to check out the yum man page to look at the options, such as "don't look at external repositories"...Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 10-26-2010 #5Just Joined!
- Join Date
- Oct 2010
- Posts
- 11
Awesome!!!
Thanks Rubberman!!!
I had no idea yum could be used that way... am beyond Linux newbie stage, at that "know just enough to be dangerous" stage. For those like me, here is how to do the command for a yum localinstall from multiple .rpms that need dependencies resolved. Note the --disablerepo=* which avoids repomd.xml errors:
Code:[root AT localhost gcc_install]# yum localinstall --disablerepo=* glibc-common-2.12.1-3.x86_64.rpm glibc-2.12.1-3.x86_64.rpm Loaded plugins: presto, refresh-packagekit Setting up Local Package Process Examining glibc-common-2.12.1-3.x86_64.rpm: glibc-common-2.12.1-3.x86_64 Marking glibc-common-2.12.1-3.x86_64.rpm as an update to glibc-common-2.12-1.x86_64 Examining glibc-2.12.1-3.x86_64.rpm: glibc-2.12.1-3.x86_64 Marking glibc-2.12.1-3.x86_64.rpm as an update to glibc-2.12-1.x86_64 Resolving Dependencies --> Running transaction check ---> Package glibc.x86_64 0:2.12.1-3 set to be updated ---> Package glibc-common.x86_64 0:2.12.1-3 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================== Updating: glibc x86_64 2.12.1-3 /glibc-2.12.1-3.x86_64 12 M glibc-common x86_64 2.12.1-3 /glibc-common-2.12.1-3.x86_64 107 M Transaction Summary ================================================================================================================================== Install 0 Package(s) Upgrade 2 Package(s) Total size: 119 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Updating : glibc-2.12.1-3.x86_64 1/4 Updating : glibc-common-2.12.1-3.x86_64 2/4 Cleanup : glibc-2.12-1.x86_64 3/4 Cleanup : glibc-common-2.12-1.x86_64 4/4 Updated: glibc.x86_64 0:2.12.1-3 glibc-common.x86_64 0:2.12.1-3 Complete! [root AT localhost gcc_install]#
Last edited by Nanoscienceguy; 10-26-2010 at 08:24 PM. Reason: make more readable
- 10-26-2010 #6Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Glad you got it sorted out, and good idea to expand the lesson for others in your situations! You get an 'attaboy from me for that, which is why I pointed you to the yum man page. It's part of the old saying about teaching them how to fish!
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote