21 April, 2008

Installing Oracle 11g on Gentoo

This weekend, I managed to setup Oracle 11g r1 on my little Gentoo box. Basically, installation is roughly the same as other distros (like RHEL). However, the following extra steps is needed:
  1. Before the installation (pre-install prep), create a symlink for libstc++.so.6
      root> ln -s `gcc-config -L`/libstdc++.so.6 /usr/lib
    
  2. During installation, at the 'Linking executable' steps, you will encounter an error which is something like "Failed to link sqlplus binary". At this moment, update a make file included config:
      root> cd $ORACLE_HOME
      root> sed -ie 's/$/ -lrt/' lib/sysliblist
    
    After edited the file, click 'Retry' the installation should completed without any other problem.
    When installation completed successfully, you should remove the libstdc++ symlink.
  3. After the installation, create the rc scripts to manage the Oracle instance (as well as the listener and EM as well).
    While the rc scripts from Oracle administrator guide is not usable on Gentoo (as Gentoo has its own rc system), some Gentoo users have contributed their rc script which can be found on Gentoo Wiki.
NOTE: The step 1 and 2 is found from Gentoo Forum. However, the thread have some non-mandatory information, which is not relevant IMO.

2 comments:

Anton Kovalenko said...

Thanks a lot!
I was stuck at this linking point.
You comments and help was great and useful!

upen said...

This is great info. Could you please tell me, what -lrt means, here itself, so that I don't have to go back to 'man' . Thanks much!!