Error installing Oracle database 10.2.0.5.0

During the installation of Oracle Database 10.2.0.3.0 and later the upgrade to 10.2.0.5.0 you may encounter the following errors when installing it on the latest version of Oracle Enterprise Linux 5.5 x64.

INFO:  - Linking liborasdkbase
INFO: /u00/oracle/product/10.2.0/db/bin/genorasdksh -base
INFO: $Id: genorasdksh.sh 02-mar-2005.16:22:46 mchengjr Exp $
INFO: Generating BASE ORASDK library...
INFO: Creating /u00/oracle/product/10.2.0/db/lib/liborasdkbase.so.10.2
INFO: gcc: /usr/lib64/libstdc++.so.5: No such file or directory
INFO: /u00/oracle/product/10.2.0/db/bin/genorasdksh: Failed to link liborasdkbase.so.10.2
INFO: make: *** [liborasdkbase] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'all_no_orcl' of makefile '/u00/oracle/product/10.2.0/db/rdbms/lib/ins_rdbms.mk'. See '/u00/oracle/oraInventory/logs/installActions2011-01-28_04-54-06PM.log' for details.

Simply to solve by linking the new lib to the old name:

cd /usr/lib64
ln -s libstdc++.so.6.0.8 libstdc++.so.5

The other error you might encounter:

INFO: /u00/oracle/product/10.2.0/db/ctx/lib/libwv_core.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.2'
/u00/oracle/product/10.2.0/db/ctx/lib//libsc_fa.so: undefined reference to `__gxx_personality_v0@CXXABI_1.2'
/u00/oracle/product/10.2.0/db/ctx/lib/libwv_core.so: undefined reference to `
INFO: vtable for __cxxabiv1::__class_type_info@GLIBCPP_3.2'
/u00/oracle/product/10.2.0/db/ctx/lib/libwv_core.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@GLIBCPP_3.2'
/u00/oracle/product/10.2.0/db/ctx/lib/libwv_core.so: undefined reference to `std::ios_base::Init::Init()@GLIBCPP_3.2'
/u00/oracle/product/10.2.0/db/ctx/lib/libwv_core.so: undefined reference to `std::ios_base::Init::~Init()@GLIBCPP_3.2'
/u00/oracle/product/10.2.0/db/ctx/lib/libwv_core.so: undefined reference to `operator d
INFO: elete(void*)@GLIBCPP_3.2'
collect2: ld returned 1 exit status
INFO: make: *** [ctxhx] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'install' of makefile '/u00/oracle/product/10.2.0/db/ctx/lib/ins_ctx.mk'. See '/u00/oracle/oraInventory/logs/installActions2011-01-28_05-16-06PM.log' for details.
Exception Severity: 1

Solve it with:

yum install compat-libstdc++-33.x86_64 -y