Ok, That’s not only for the OTD. Basically you won’t be able to link anything because you are missing basic packages in the OS.
If you are using Linux, try to install the packages below:
libstdc++-devel-3.4.3-22.1
glibc-devel-2.5-58
libaio-devel-0.3.106
If you are using Solaris, try to install the GCC(See my example below):
I would like to remember you that all these packages are described by the installation guides. 😉
For the OTD you can check here: http://docs.oracle.com/middleware/12212/otd/install/GUID-B5C151EC-DEAD-462C-B6AB-8B7FB2B95A19.htm#OTINS1104
Cheers!