Package Management/YUM Repository(s)

Latest response

Good morning,

 

We're experiencing a 'strange' issue after installing RHEL 6 from the DVD media. It appears that there's two (2) different repository listings for a great deal of the installed packages. However, there are issues showing up such as :

 

==================================================

 

php: /usr/lib/libxml2.so.2: no version information available (required by php)

php: /usr/lib/libxml2.so.2: no version information available (required by php)

php: /usr/lib/libxml2.so.2: no version information available (required by php)

php: /usr/lib/libxml2.so.2: no version information available (required by php)

php: /usr/lib/libxml2.so.2: no version information available (required by php)

 

Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/xmlreader.so' - /usr/lib64/php/modules/xmlreader.so: symbol xmlTextReaderSetup, version LIBXML2_2.6.28 not defined in file libxml2.so.2 with link time reference in Unknown on line 0

 

Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/xsl.so' - /usr/lib64/libxslt.so.1: symbol xmlXPathCompiledEvalToBoolean, version LIBXML2_2.6.27 not defined in file libxml2.so.2 with link time reference in Unknown on line 0

==================================================

 

I check the `libxml2` installation:

 

==================================================

[root@someserver /etc]$> yum info libxml2

 

Loaded plugins: refresh-packagekit, rhnplugin
Installed Packages
Name       : libxml2
Arch       : x86_64
Version    : 2.7.6
Release    : 1.el6
Size       : 1.7 M
Repo       : installed
From repo  : anaconda-RedHatEnterpriseLinux-201009221801.x86_64
Summary    : Library providing XML and HTML support
URL        : http://xmlsoft.org/
License    : MIT
Description: This library allows to manipulate XML files. It includes support
           : to read, modify and write XML and HTML files. There is DTDs support
           : this includes parsing and validation even with complex DtDs, either
           : at parse time or later once the document has been modified. The output
           : can be a simple SAX stream or and in-memory DOM like representations.
           : In this case one can use the built-in XPath and XPointer implementation
           : to select subnodes or ranges. A flexible Input/Output mechanism is
           : available, with existing HTTP and FTP modules and combined to an
           : URI library.
 
Available Packages
Name       : libxml2
Arch       : i686
Version    : 2.7.6
Release    : 1.el6
Size       : 794 k
Repo       : rhel-x86_64-server-6
Summary    : Library providing XML and HTML support
License    : MIT
Description: This library allows to manipulate XML files. It includes support
           : to read, modify and write XML and HTML files. There is DTDs support
           : this includes parsing and validation even with complex DtDs, either
           : at parse time or later once the document has been modified. The output
           : can be a simple SAX stream or and in-memory DOM like representations.
           : In this case one can use the built-in XPath and XPointer implementation
           : to select subnodes or ranges. A flexible Input/Output mechanism is
           : available, with existing HTTP and FTP modules and combined to an
           : URI library.
Loaded plugins: refresh-packagekit, rhnplugin
Installed Packages
Name       : libxml2
Arch       : x86_64
Version    : 2.7.6
Release    : 1.el6
Size       : 1.7 M
Repo       : installed
From repo  : anaconda-RedHatEnterpriseLinux-201009221801.x86_64
Summary    : Library providing XML and HTML support
URL        : http://xmlsoft.org/
License    : MIT
Description: This library allows to manipulate XML files. It includes support
           : to read, modify and write XML and HTML files. There is DTDs support
           : this includes parsing and validation even with complex DtDs, either
           : at parse time or later once the document has been modified. The output
           : can be a simple SAX stream or and in-memory DOM like representations.
           : In this case one can use the built-in XPath and XPointer implementation
           : to select subnodes or ranges. A flexible Input/Output mechanism is
           : available, with existing HTTP and FTP modules and combined to an
           : URI library.
 
Available Packages
Name       : libxml2
Arch       : i686
Version    : 2.7.6
Release    : 1.el6
Size       : 794 k
Repo       : rhel-x86_64-server-6
Summary    : Library providing XML and HTML support
License    : MIT
Description: This library allows to manipulate XML files. It includes support
           : to read, modify and write XML and HTML files. There is DTDs support
           : this includes parsing and validation even with complex DtDs, either
           : at parse time or later once the document has been modified. The output
           : can be a simple SAX stream or and in-memory DOM like representations.
           : In this case one can use the built-in XPath and XPointer implementation
           : to select subnodes or ranges. A flexible Input/Output mechanism is
           : available, with existing HTTP and FTP modules and combined to an
           : URI library.
Loaded plugins: refresh-packagekit, rhnplugin
Installed Packages
Name       : libxml2
Arch       : x86_64
Version    : 2.7.6
Release    : 1.el6
Size       : 1.7 M
Repo       : installed
From repo  : anaconda-RedHatEnterpriseLinux-201009221801.x86_64
Summary    : Library providing XML and HTML support
URL        : http://xmlsoft.org/
License    : MIT
Description: This library allows to manipulate XML files. It includes support
           : to read, modify and write XML and HTML files. There is DTDs support
           : this includes parsing and validation even with complex DtDs, either
           : at parse time or later once the document has been modified. The output
           : can be a simple SAX stream or and in-memory DOM like representations.
           : In this case one can use the built-in XPath and XPointer implementation
           : to select subnodes or ranges. A flexible Input/Output mechanism is
           : available, with existing HTTP and FTP modules and combined to an
           : URI library.
 
Available Packages
Name       : libxml2
Arch       : i686
Version    : 2.7.6
Release    : 1.el6
Size       : 794 k
Repo       : rhel-x86_64-server-6
Summary    : Library providing XML and HTML support
License    : MIT
Description: This library allows to manipulate XML files. It includes support
           : to read, modify and write XML and HTML files. There is DTDs support
           : this includes parsing and validation even with complex DtDs, either
           : at parse time or later once the document has been modified. The output
           : can be a simple SAX stream or and in-memory DOM like representations.
           : In this case one can use the built-in XPath and XPointer implementation
           : to select subnodes or ranges. A flexible Input/Output mechanism is
           : available, with existing HTTP and FTP modules and combined to an
           : URI library.

==================================================

 

The issue here (it appears) is the repository : rhel-x86_64-server-6 vs anaconda-RedHatEnterpriseLinux-201009221801.x86_64...

 

I don't have a single clue as to 'how' this may have occurred during the installation, as I didn't execute or monitor the process. My question would be, is there any way that I can correct this with having to reimage the whole damn system (again!)? Can any/all of the packages pointing to the `anaconda-RedHatEnterpriseLinux-201009221801.x86_64` install to use the RHN Support repository (`rhel-x86_64-server-6`)? I have the feeling this is most likely a) something that I'm not alone in seeing and b) corrected by some process and/or command(s) that are just not apparent to me at this point in time...

 

Any/all input is greatly appreciated, and please let me know if I've not included anything relevant to the issues here that would help out.  Thanx SO MUCH in advance for the assistance!!!

Responses

Hi Michael,

Can you check whether there is a repo file corresponding to anaconda-RedHatEnterpriseLinux-201009221801.x86_64 configured in /etc/yum.repos.d/*.repo?  If so, you can try disabling it (set enabled=0 in the .repo file) and see if that resolves your yum issue.

 

Regarding the php issue, are you using the php package from the Red Hat channel/media, or did you install php from somewhere else (such as the upstream version)?

 

Regards,
John Ruemker, RHCA

Red Hat Technical Account Manager

Online User Groups Moderator

Hey John... thank you so much for the quick, courteous reply!

 

1) There aren't any repository entries defined in the `/etc/yum.repos.d/` directory. It's pretty much a bare-bones installation at this point - installed and initial YUM update executed. Again, I wasn't personally involved in imaging this server or monitoring the installation, so I have no idea what took place during the actual installation of the operating system proper...

 

2) Forgive me here - I'm sure you could see, I don't have a definitive answer regarding what PHP package was installed or where it came from - whether it was installed from a selection, compiled/built post install, etal. I'm still trying to determine that myself from the players that were involved...

 

This gives me a bit more to go on, it appears the next thing for me to investigate would be the PHP package/installation from #2 above; maybe that will give me enuff info to make 'heads or tails' out of what's taking place here...

 

I get this when checking the PHP version from the CLI:

 

[root2@igilnx03 /home/root3]$> php -v
php: /usr/lib/libxml2.so.2: no version information available (required by php)
php: /usr/lib/libxml2.so.2: no version information available (required by php)
php: /usr/lib/libxml2.so.2: no version information available (required by php)
php: /usr/lib/libxml2.so.2: no version information available (required by php)
php: /usr/lib/libxml2.so.2: no version information available (required by php)
 
Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/xmlreader.so' - /usr/lib64/php/modules/xmlreader.so: symbol xmlTextReaderSetup, version LIBXML2_2.6.28 not defined in file libxml2.so.2 with link time reference in Unknown on line 0
 
Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/xsl.so' - /usr/lib64/libxslt.so.1: symbol xmlXPathCompiledEvalToBoolean, version LIBXML2_2.6.27 not defined in file libxml2.so.2 with link time reference in Unknown on line 0
PHP 5.3.2 (cli) (built: Jan 19 2011 08:08:58)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
 

 

Perhaps that was a bit more helpfull - thanx again, John... anything else you may add is certainly much appreciated as well!

 

Kindest regards!

Are you using a Red Hat Network Satellite, or connecting directly to RHN?  You can check by seeing if serverURL in /etc/sysconfig/rhn/up2date points to https://xmlrpc.rhn.redhat.com/XMLRPC or to a different location. 

The reason I ask is that the only way I can figure your system is showing this alternate repository without having a repo configured in /etc/yum.repos.d/ is that you are registered to a custom channel on your Red Hat Network Satellite.  Channels from RHN and RHNS do not use /etc/yum.repos.d/ repositories, and instead are accessed via the yum-rhn-plugin.  Knowing whether your system is pointing to RHN or a custom location will tell us where this channel might be coming from.

 

Regarding php version, you can run:

 

  # rpm -q php

 

The current version offered by Red Hat in RHEL 6 is php-5.3.2-6.el6[.0_1], and so if your differs from this (or the command doesn't return a result), it means you obtained php from somewhere else.  This would be relevant because that version may depend on a different version of libxml2 than what we offer, resulting in the errors you are seeing.   If you are using the RHEL 6 version, we'll need to do some further investigation to determine the cause of your error.  

 

Regards,

John Ruemker, RHCA
Red Hat Technical Account Manager

Online User Groups Moderator