rpm package install error.

Support for the other architectures (X86_64, IA-64, and PowerPC)
Post Reply
Staffan
Posts: 2
Joined: 2011/03/07 18:04:57

rpm package install error.

Post by Staffan » 2011/03/07 20:32:33

I am trying to install a special monitoring application on a 64-bit CentOS 5.5. The app is a 32-bit app and to check wether it would work, I setup a blank laptop. The response to a "uname -a" is:

[staffan@CentOS ~]$ uname -a
Linux CentOS 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

The app install and works as expected. I now try to install the same app on another system. This system comes preinstalled (with the same CentOS version) and is configured for a special purpose. Installing my monitor-app (it is an rpm-package) gives the following error:

rpm -i ulrm-12.0.uis.08.i386.rpm
error: Failed dependencies:
libxml2.so.2 is needed by ulrm-12.0-uis.08.i386

I have tried to copy the 32-bit version of the library from the running system to the failing one (/usr/lib) and run "ldconfig" afterwords, but the installation still fails.

Have I forgotten something or is it possible to prohibit 32-bit libraries to be used on the server?

Need some help here!
Staffan

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

rpm package install error.

Post by gerald_clark » 2011/03/07 20:59:03

Welcome to CentOS.
New users need to read:
http://www.centos.org/modules/newbb/viewforum.php?forum=47

installing random RPMs is not supported.
You can use yum to find what package ( if any ) supplies the missing dependency.


[root@gclark ~]# yum provides \*/libxml2.so.2
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirror.fdcservers.net
* base: mirror.ubiquityservers.com
* extras: pubmirrors.reflected.net
* updates: centos.mirrors.tds.net
addons | 951 B 00:00
base | 2.1 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Excluding Packages from CentOS-5 - Updates
Finished
libxml2-2.6.26-2.1.2.8.i386 : Library providing XML and HTML support
Repo : base
Matched from:
Filename : /usr/lib/libxml2.so.2



libxml2-2.6.26-2.1.2.8.el5_5.1.i386 : Library providing XML and HTML support
Repo : updates
Matched from:
Filename : /usr/lib/libxml2.so.2



So it looks like you should run:
yum install libxml2

User avatar
AlanBartlett
Forum Moderator
Posts: 9319
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: rpm package install error.

Post by AlanBartlett » 2011/03/07 21:45:42

I guess that this is a case where running the following would have resolved the issue --

[code]
[b]yum localinstall ulrm-12.0.uis.08.i386.rpm[/b]
[/code]
;-)

Staffan
Posts: 2
Joined: 2011/03/07 18:04:57

Re: rpm package install error.

Post by Staffan » 2011/04/11 18:27:13

Thanks for the quick response, guys. The server is burried in the middle of nowhere and today is the first time I've had a chance to visit the site, hence the slow response on my part.

I have read a bit of the "yum" usage and as I understand, ONE of my problems is that the server has no access to internet which means I have to manually bring any missing package to the server and install it by hand. Currently, there are no packages installed using "yum" and there are no configured repositories. I need to keep the serverchanges to a minimum to keep the server characteristics. I have added the output from a manual execution of the commandlines "PRGBASE" and the first two "PRGPKGS" from the suggested "getinfo.sh" script.

I hope this info gives a more conclusive picture of the state of my server.

2.6.18-53.1.19.el5 x86_64 x86_64
enterprise-release-5-0.0.7
enterprise-release-notes-5Server-8
Enterprise Linux Enterprise Linux Server release 5.1 (Carthage)
Disabled

yum-3.0.1-5.el5
rpm-4.4.2-47.el5.0.1
python-2.4.3-19.el5
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

Loading "installonlyn" plugin

usage: yum [options]

options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins

If it is at all possible, I would appreciate some help on how to locally install any missing packages (there may be more than the one already seen).

Regards,
Staffan

User avatar
TrevorH
Forum Moderator
Posts: 23034
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: rpm package install error.

Post by TrevorH » 2011/04/11 18:52:47

If this server is buried away without access to the internet then it is presumably still running the same version of all the packages that it was when the install was run. If this is so then one option would be to take a copy of the install DVD with you (or loopback mount the .iso image if that was copied to the server at install time) and then use the c5-media repo that's referenced from /etc/yum.repos.d/CentOS-Media.repo. e.g.

[code]
yum --disablerepo=\* --enablerepo=c5-media localinstall thispackage thatpackage
[/code]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: rpm package install error.

Post by pschaff » 2011/04/11 19:47:05

[quote]
Staffan wrote:
...
2.6.18-53.1.19.el5 x86_64 x86_64
enterprise-release-5-0.0.7
enterprise-release-notes-5Server-8
Enterprise Linux Enterprise Linux Server release 5.1 (Carthage)[/quote]
That is not CentOS - looks like it may be Oracle Enterprise Linux. In any case the kernel version is ancient 5.1 series (but not the original) and thus buggy and insecure, and likely other packages are as well.

[code]
Release Initial kernel Release Date
5.0 2.6.18-8.el5 2007-04-12
5.1 2.6.18-53.el5 2007-12-02
5.2 2.6.18-92.el5 2008-06-24
5.3 2.6.18-128.el5 2009-03-31
5.4 2.6.18-164.el5 2009-10-21
5.5 2.6.18-194.el5 2010-05-14
5.6 2.6.18-238.el5 2011-04-08[/code]
[/quote]
If you want it to be running CentOS, then I would remove enterprise-release, enterprise-release-notes-5Server, and redhat-logos (or whatever they call their *-logos) packages and install centos-release, centos-release-notes, and redhat-logos from 5.6 DVD media with rpm. See the Wiki [url=http://wiki.centos.org/HowTos/MigrationGuide]HowTos/MigrationGuide[/url] for background.

You should then be able to use the DVD media to update with a sequence similar to that described in the [url=http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6]release notes[/url] [code]
yum --disablerepo=\* --enablerepo=c5-media clean all
yum --disablerepo=\* --enablerepo=c5-media update glibc\*
yum --disablerepo=\* --enablerepo=c5-media update yum\* rpm\* pyth\*
yum --disablerepo=\* --enablerepo=c5-media clean all
yum --disablerepo=\* --enablerepo=c5-media update mkinitrd nash
yum --disablerepo=\* --enablerepo=c5-media update selinux\*
yum --disablerepo=\* --enablerepo=c5-media update
shutdown -r now
[/code]
You might then want to follow [url=http://wiki.centos.org/TipsAndTricks/CreatingUpdateMedia]TipsAndTricks/CreatingUpdateMedia[/url] to get subsequent updates.

At that point you should be ready to follow Trevor's suggestion.

Post Reply