Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rpm based installation of IBM Db2 version 7.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
rieger
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2002
Posts: 136
Location: The Netherlands

PostPosted: Tue Mar 09, 2004 10:51 am    Post subject: rpm based installation of IBM Db2 version 7.2 Reply with quote

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
View user's profile Send private message
vki
n00b
n00b


Joined: 09 Dec 2004
Posts: 1

PostPosted: Thu Dec 09, 2004 3:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
teewurstmann
n00b
n00b


Joined: 10 May 2004
Posts: 8

PostPosted: Fri Mar 11, 2005 10:24 am    Post subject: Reply with quote

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:

Code:
cd opt


and copy everything to /opt:

Code:
cp -R IBM /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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum