View previous topic :: View next topic |
Author |
Message |
rieger Tux's lil' helper
Joined: 14 Jun 2002 Posts: 136 Location: The Netherlands
|
Posted: Tue Mar 09, 2004 10:51 am Post subject: rpm based installation of IBM Db2 version 7.2 |
|
|
running the install script or manually trying to unpack the rpms, I get:
installing via
rpm --install --nodeps db2XYZ.rpm
results in:
rpmdb: /var/lib/rpm/Packages: unsupported hash version: 8
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
I have a /var/lib/rpm/Packages.
I tried rpm --rebuild, fails with almost same error message
when starting install via ./db2_install,
I get the almost the same error except the last line now reads
RPM does not seem to be installed. Exiting...
I have RPM installed... _________________ haree |
|
Back to top |
|
|
vki n00b
Joined: 09 Dec 2004 Posts: 1
|
Posted: Thu Dec 09, 2004 3:11 pm Post subject: |
|
|
Hello,
Try this: copy the CD on the hard disk.
Edit the db2_install script
Replace rpm -ivh with rpm --nodeps -ivh
Comment the line rpm -qa|grep rpm
It will install the rpm files.
Also check this site:
http://www-106.ibm.com/developerworks/db2/library/techarticle/dm-0403wright/
I'm personnalyy stuck further. I created the instance users etc., but db2icrt (to create the instance) doesn't work because there are failed dependencies.
When I try to install without the --nodeps it complanis about sh and ksh missing...Any idea? I guess I have to include sh and ksh in the rpm packages library. But I don't want to install those via rpm since they're already installed via emerge... |
|
Back to top |
|
|
teewurstmann n00b
Joined: 10 May 2004 Posts: 8
|
Posted: Fri Mar 11, 2005 10:24 am Post subject: |
|
|
Ok, I had the same problem.
You have to do this:
use rpm2targz to unpack the messsage files (found in /db2/linux on the folders you copied from the CD):
Code: | rpm2targz IBM_db2msen81-8.1.0-0.i386.rpm |
Then unpack the tar file:
Code: | gunzip IBM_db2msen81-8.1.0-0.i386.tar.gz
tar -xvf IBM_db2msen81-8.1.0-0.i386.tar |
Then you should have an opt directory, created right where you unpacked the stuff.
change into that opt directory:
and copy everything to /opt:
Now you are able to run the db2icrt script:
Code: | /opt/IBM/db2/V8.1/instance/db2icrt |
Hope that helps!
- twm. |
|
Back to top |
|
|
|