LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing gcc help (https://www.linuxquestions.org/questions/linux-newbie-8/installing-gcc-help-189532/)

aaronruss 06-04-2004 12:16 AM

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?

Dark_Helmet 06-04-2004 01:28 PM

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.

darthtux 06-04-2004 01:56 PM

It may be looking for the development package
libxml2-dev

aaronruss 06-04-2004 10:46 PM

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?

Dark_Helmet 06-04-2004 11:12 PM

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.

aaronruss 06-05-2004 01:29 AM

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?


All times are GMT -5. The time now is 03:54 PM.