LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2004, 12:16 AM   #1
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Rep: Reputation: 15
installing gcc help


I am trying to install gcc on my fedora core 1 system and I get a error unlocatable package libxml2 but when using the command rpm -q --all | grep libml2 I get the following

[root@server root]# rpm -q --all | grep libxml2
libxml2-2.6.6-3
libxml2-python-2.6.6-3
[root@server root]#

so if libxml2-2.6.6-3 is installed why will gcc not install?

Here is what I get when trying to install the Development Tools from the Fedora Core 1 CD

Package not found unlocatable package libxml2 required by libxml2-python-2.6.6-3

I dont get it I cant install the Development Tools because the package cant be found but its installed.

What do I need to do to get the Package Manger to find it?
 
Old 06-04-2004, 01:28 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
The only thing I could think to try is rebuilding your rpm database:
rpm --rebuilddb

I don't use rpms now (if I can avoid it), but remember a long while back that a package got "lost" and rpm would say that it was either installed or not present (depending on which answer would cause me the most grief). Rebuilding the database semed to clear it up, but that was many moons ago.
 
Old 06-04-2004, 01:56 PM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
It may be looking for the development package
libxml2-dev
 
Old 06-04-2004, 10:46 PM   #4
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Original Poster
Rep: Reputation: 15
Unhappy

I tried to rebuild it and I get the same thing when installing the development tools. I also tried to install the libxml2-dev and could not install due to the following

[root@server RPMS]# rpm -i libxml2-devel-2.5.11-1.i386.rpm
error: Failed dependencies:
libxml2 = 2.5.11 is needed by libxml2-devel-2.5.11-1
zlib-devel is needed by libxml2-devel-2.5.11-1
[root@server RPMS]#

here is my query after rebuilding

[root@server RPMS]# rpm -q --all | grep libxml
perl-libxml-perl-0.07-28
perl-libxml-enno-1.02-29
libxml-1.8.17-9
libxml2-2.6.6-3
libxml2-python-2.6.6-3
[root@server RPMS]#

libxml2 is there but a newer version. got any other ideals?

Last edited by aaronruss; 06-04-2004 at 10:48 PM.
 
Old 06-04-2004, 11:12 PM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
You ought to have matching version numbers between libxml2 and libxml2-devel or as close as you can at least. I quick search on google turned up this:
rpmfind.net - libxml2

They don't have patch level 3, but the devel and base packages ought to be compatible. Give it a try.
 
Old 06-05-2004, 01:29 AM   #6
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Original Poster
Rep: Reputation: 15
I had to get another package first the version is different on the zlib-devel package. I hope that don't matter to much.

[root@server aaron]# rpm -i libxml2-devel-2.6.6-3.i386.rpm
error: Failed dependencies:
zlib-devel is needed by libxml2-devel-2.6.6-3

[root@server aaron]# rpm -q --all | grep zlib-devel
zlib-devel-1.2.0.7-2
[root@server aaron]#

OK i installed the same version of libxml2-devel as the others

[root@server aaron]# rpm -q --all | grep libxml2
libxml2-devel-2.6.6-3
libxml2-2.6.6-3
libxml2-python-2.6.6-3
[root@server aaron]#

After all that I put my fedora core 1 CD in and installed the development tools from the package manager.

It Worked! the Development tools installed all is well

I have had this problem with other packages now I see that the libxml2 and libxml2-devel packages have to be the same version. I do have some questions about this.

1) what is libxml2 and libxml2-devel and how do thay effect each other do other packages with same first names follow this version issue.

2) I think this all started from updating libxml2 because I think I remember it being one of the red hat updates. So if red hat is only updating the libxml2 package and not the libxml2-devel package and the two need to be of the same version. How do we summit this information that they are getting the package versions out of sync with there update service?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need help on installing GCC. Jonka Linux - Software 2 11-12-2003 04:12 PM
Installing gcc 3.3 Shienarier Linux - Software 6 06-08-2003 11:25 AM
Installing GCC sovietpower Linux - Newbie 1 06-01-2003 05:28 PM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 05:28 AM
Installing gcc-2.95.3 X11 Linux - Software 2 04-26-2002 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration