Re: Summary: IBM DB2 installation on Woody

2003-08-23 Thread Bob Proulx
Holger Marzen wrote:
> Some notes for the installation of IBM DB2 v7.1 on Debian Woody
> Holger Marzen, 2003-08-21

Thanks for sharing your notes.  I think that cross distribution
compatibility is one of the important areas for Debian to concentrate
on.

I have some of the same issues you have with libraries.  But I solved
it somewhat differently.

> - make the usual symlinks for "incompatible" RedHat-software:
>   cd /usr/lib
>   ln -s /lib/libncurses.so.5 libncurses.so.4

Instead of doing this I used alien to convert the Red Hat versions of
that library to deb format and then installed the deb.  For this
library alien does a perfect job of it.

And the benefit is that you now have a deb you can install on future
systems that need it.  I keep a local repository with all of the fluff
that needs to be installed on my machines without needing to gather
them from all over.  I create a meta package which I call rh62-compat
which depends upon these libraries.

>   ln -s libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.1-1.so.2

This one does have a debian equivalent.  This is currently only in
'woody' and has been removed from 'testing' and 'unstable'.

  apt-get install libstdc++2.9-glibc2.1

How does one find these packages?  The Debian package can search the
repositories.  Put the name of the file in that you want to look for
the package that contains it.  So for the above you will find it in
stable but not in testing or unstable.  I now have a cached local
copy.

  http://www.debian.org/distrib/packages

If a library needed for Red Hat compatibility ever truly went away
from Debian then I would use alien to convert the rpm over to deb and
install the deb for the reasons stated above.

> To run the control center (db2cc) you have to install java (I used the
> recent sdk from Sun), make the appropriate symlink /usr/bin/java
> (on my machine /usr/bin/java -> /opt/j2sdk_nb/j2sdk1.4.2/bin/java).

Note that Blackdown Java is often installed by many Debian users and
it installs an 'alternative' as /usr/bin/java.  Not having tested it
but I would guess that Blackdown's version of Java would handle the
IBM scripts.  In any case, it is useful to know that there may be an
conflict on the /usr/bin/java if one tried to install both.

Bob


pgp0.pgp
Description: PGP signature


Re: Summary: IBM DB2 installation on Woody

2003-08-21 Thread Holger Marzen
On Thu, 21 Aug 2003, Colin Watson wrote:

> On Thu, Aug 21, 2003 at 11:31:49AM +0200, Holger Marzen wrote:
> > install rpm
> > - apt-get install rpm
> > - mkdir /var/lib/rpm
> > - rpm --initdb
>
> Oof! Isn't it possible to use alien rather than trying to hack rpm to
> install RPM packages on Debian (which is usually dangerous)?

DB2 is installed using an IBM-supplied installer, called db2setup. This
installer runs rpm, so it's much simpler to use db2setup than figuring
out which rpm package is what component.

-- 
PGP/GPG Key-ID:
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0xB5A1AFE1


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: FYI: IBM DB2 installation on Woody

2003-08-21 Thread John Stevenson


I succeeded today in installing IBM DB2 7.1 on Debian Woody. Since I

have found many unanswered questions in the WWW I think that somebody
might be interested.
Regards
Holger
   

Are you going to provide us with any more details of what you did? 
Problems that you came accross and solved?  It would be appreciated.

Thanks
Johnny.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Summary: IBM DB2 installation on Woody

2003-08-21 Thread Colin Watson
On Thu, Aug 21, 2003 at 11:31:49AM +0200, Holger Marzen wrote:
> install rpm
> - apt-get install rpm
> - mkdir /var/lib/rpm
> - rpm --initdb

Oof! Isn't it possible to use alien rather than trying to hack rpm to
install RPM packages on Debian (which is usually dangerous)?

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Summary: IBM DB2 installation on Woody

2003-08-21 Thread Holger Marzen
Some notes for the installation of IBM DB2 v7.1 on Debian Woody
Holger Marzen, 2003-08-21

install pdksh
- apt-get install pdksh
- cd /bin
- ln -s /usr/bin/ksh .

install rpm
- apt-get install rpm
- mkdir /var/lib/rpm
- rpm --initdb

  Without "mkdir /var/lib/rpm" rpm will complain about errors with
  db3-access. Very confusing.

- Create /bin/rpm by a executable shell script that inserts "--nodeps"
  after(!) "-ivh" that's used by the db2 installer. Else we can't
  install because of the missing rpm-dependencies.

  #!/bin/sh
  ARGS=`echo "$*" | sed 's/-ivh /-ivh --nodeps /'`
  /usr/bin/rpm $ARGS

- make the usual symlinks for "incompatible" RedHat-software:
  cd /usr/lib
  ln -s /lib/libncurses.so.5 libncurses.so.4
  ln -s libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.1-1.so.2

Now you should be able to mount the db2 installation media and run
./db2setup.

To run the control center (db2cc) you have to install java (I used the
recent sdk from Sun), make the appropriate symlink /usr/bin/java
(on my machine /usr/bin/java -> /opt/j2sdk_nb/j2sdk1.4.2/bin/java). Then
fix the broken installtion by doing a
"ln -s /usr/IBMdb2/V7.1/cc ." in /home/db2inst1/sqllib.
Now we only have to change the shell script
/home/db2inst1/sqllib/bin/db2cc and delete "-nojit" from the JRE_OPTIONS
variable (recent java comlains) and replace "jre $JRE_OPTIONS -cp
$JRE_CLASSPATH CC $@" by "java $JRE_OPTIONS -cp $JRE_CLASSPATH CC $@".

Have fun!
Holger


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: FYI: IBM DB2 installation on Woody

2003-08-20 Thread Ron Johnson
On Wed, 2003-08-20 at 11:20, Holger Marzen wrote:
> I succeeded today in installing IBM DB2 7.1 on Debian Woody. Since I
> have found many unanswered questions in the WWW I think that somebody
> might be interested.

Could you write up a little HOWTO or "lessons learned", and post
it here?

-- 
-
Ron Johnson, Jr. [EMAIL PROTECTED]
Jefferson, LA USA

Some former UNSCOM officials are alarmed, however. Terry Taylor, 
a British senior UNSCOM inspector from 1993 to 1997, says the 
figure of 95 percent disarmament is "complete nonsense because 
inspectors never learned what 100 percent was. UNSCOM found a 
great deal and destroyed a great deal, but we knew [Iraq's] work 
was continuing while we were there, and I'm sure it continues," 
says Mr. Taylor, now head of the Washington 
http://www.csmonitor.com/2002/0829/p01s03-wosc.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



FYI: IBM DB2 installation on Woody

2003-08-20 Thread Holger Marzen
I succeeded today in installing IBM DB2 7.1 on Debian Woody. Since I
have found many unanswered questions in the WWW I think that somebody
might be interested.

Regards
Holger

-- 
PGP/GPG Key-ID:
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0xB5A1AFE1


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [Fwd: db2 installation]

2000-02-08 Thread Vincent Morlot
I have found From Jani Laakso<[EMAIL PROTECTED]> in
comp.databases.ibm-db2
and i have test it successfully

Packages as rpm, pdksh, ncompress are needed

ldd must exist (/usr/bin/ldd)

use alien to convert .rpm in .deb
alien --to-deb --scripts *.rpm

install .deb packages
dpkg -i *.deb

make some symbolic links for db2setup
ln -s /usr/bin/ksh /bin/ksh
ln -s /usr/bin/awk /bin/awk
ln -s /usr/bin/basename /bin/basename
ln -s /usr/bin/compress /bin/compress
ln -s /usr/bin/touch /bin/touch

fool db2setup with this script (located in /bin/rpm)

rpm --rebuiddb (to avoid possible warnings in db2setup),
ignore errors.
./db2setup

check /etc/inittab 
db:234:once:/etc/rc.db2 > /dev/console 2>&1 # autostart DB2
Services

You can start manually your example instance by :
su db2inst1 
. ~/sqllib/db2profile
db2start


I have made some changes from this :
First I create a script named rpm (just save binary rpm)
script rpm
#!/bin/sh
case "$1" in
-qa)
dpkg -l
;;
esac
case "$2" in
/mnt/cdrom/db2/db2adt61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2adt61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2adts61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2adts61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2clic61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2clic61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2cliv61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cliv61_6.1.0-1_i386.deb
/mnt/206/db2das61_6.1.0-1_i386.deb
/mnt/206/db2rte61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2cnvc61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cnvc61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2cnvj61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cnvj61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2cnvk61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cnvk61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2cnvt61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cnvt61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2conn61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2conn61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2crte61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2crte61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2cucs61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cucs61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2das61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2das61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2elic61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2elic61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2engn61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2engn61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2hten61-6.1.0-0.i386.rpm)
dpkg -i /mnt/206/db2hten61_6.1.0-1_i386.deb
;;
/mnt/cdrom/db2/db2htfr61-6.1.0-0.i386.rpm)
dpkg -i /mnt/206/db2htfr61_6.1.0-1_i386.deb
;;
/mnt/cdrom/db2/db2jdbc61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2jdbc61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2msfr61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2msfr61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2repl61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2repl61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2rte61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2rte61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2smpl61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2smpl61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2wcc61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2wcc61_6.1.0-1_i386.deb
;;  
/mnt/cdrom/db2/db2whfr61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2whfr61_6.1.0-1_i386.deb
;;
/mnt/cdrom/db2/db2wlic61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2wlic61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2adt61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2adt61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2adts61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2adts61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2clic61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2clic61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2cliv61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cliv61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2cnvc61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cnvc61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2cnvj61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cnvj61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2cnvk61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cnvk61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2cnvt61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cnvt61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2conn61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2conn61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2crte61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2crte61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2cucs61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2cucs61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2das61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2das61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2elic61-6.1.0-0.i386.rpm) 
dpkg -i /mnt/206/db2elic61_6.1.0-1_i386.deb
;;  
db2/linux/linux/db2engn61-6.1.0-0.i386.rpm) 
dpkg -i /

Re: db2 installation

2000-02-01 Thread hypnos
On Mon, 31 Jan 2000, Shane Wegner wrote:

> Hi all,
> 
> I was just looking at IBM's DB2 package and would like to install it on
> Debian.  However, it looks like it is going to use rpm to install the
> packages and as I understand it, you can't do that on Debian.  Does anyone
> know of a db2 installer Debian package or how I can patch db2setup and
> db2_install so that they use alien to convert the rpm files to deb and then
> install them that way.

You can use `alien`, which will convert an .rpm to a
.deb, which you then can install with `dpkg -i file.deb`.

--
hypnos  



db2 installation

2000-01-31 Thread Shane Wegner
Hi all,

I was just looking at IBM's DB2 package and would like to install it on
Debian.  However, it looks like it is going to use rpm to install the
packages and as I understand it, you can't do that on Debian.  Does anyone
know of a db2 installer Debian package or how I can patch db2setup and
db2_install so that they use alien to convert the rpm files to deb and then
install them that way.

If anyone has any experience with this, your suggestions would be greatly
appreciated.

Regards,
Shane

-- 
Shane Wegner: [EMAIL PROTECTED]
Personal website: http://www.cm.nu/~shane   Fax: (604) 930-0529
PGP: keyid:   2048/1C0FFA59 ICQ UIN: 12
 Fingerprint: C6 5F B3 85 0B 11 30 F3
  52 89 0C 6C 49 08 94 7B