Wednesday, January 20, 2010

Oracle 10G R2 on Ubuntu 9.10 (ins_rdbms.mk link error)

Installing Oracle 10G release 2 on Ubuntu 9.10 (Karmic Koala) is pretty much the same as installing on 8.04, except for the extra packages needed. In this entry, I used
apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm libstdc++5
Problem with 9.10 is: libstdc++5 has been fased out and superseeded with libstdc++6.
When you try to install nevertheless, you'll get:
Package libstdc++5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libstdc++5 has no installation candidate

Trying to go along with the installation will get you:

Error in invoking target 'all_no_orcl' of makefile 'ins_rdbms.mk'.

Workaround

The solution is simple: create a link to the V6 library:

sudo ln -s /usr/lib/libstdc++.so.6.0.13 /usr/lib/libstdc++.so.5

Fast!

I am, by the way, impressed about the speed of this install. I have the impression, this ext4 filesystsem is a lot faster than the 2-disk lvm I had on CentOS.

4 comments:

arya said...

Thank you broo, i just got this error when i install Oracle 10gR2 on ubuntu 9.10

when i continue, it was installed nicely. but when i restart the computer, the instance failed to run.crospo

Maxo said...

Thanks. I am reinstalling 10G on our integration box with Ubuntu 10.04. I'm not sure why I got this on the second install, and not the initial install, but after doing as instructed the install went smoothly.

Rarite said...

not working on Ubuntu Server 12.04

Frank said...

I would not have expected to run that on 12.04, actually.
Ubuntu just changes too much between releases.
I assume you're on 12.04 LTS? Did you try 11G rel 2, instead of this, rather archaic version?