다음은 glibc 2.2.x 이상을 사용하는 RedHat 7.x 버전에서
오라클 8i 즉 오라클 8.1.x 버전을 셋업하는 방법입니다.
오라클이 glibc 2.1 에서 호환성을 보장하나봅니다.
그래서 컴파일러, 로더 등을 glibc 2.1 용으로 바꾸고
몇 개 라이브러리를 감추고
오라클을 인스톨합니다.
그리고 바꾼 것을 되돌려 놓으면 감쪽같이 셋업이 되네요.
이제 더이상 삽질마시고 이렇게 설치하시면 되겠습니다.
어서 가져왔드라........................
kernel.org 에서 가져왔습니다.
----------------- 다음 ---------------------------------------------
Oracle 8i is not compile/link time compatible with glibc 2.2. It
requires the glibc 2.1 compatibility SDK, i386-glibc-2.1-linux.tar.gz,
to install under systems based on glibc 2.2, like RedHat 7.0. The
following steps work for me
1. Make gcc, cc and ld from the glibc 2.1 SDK available for the Oracle
installer:
cd /
tar xfz ..../i386-glibc-2.1-linux.tar.gz
2. Hide gcc, cc and ld under /usr/bin so that the Oracle installer
won't pick it up by accident with
# gcc ...
# cc ...
# ld ...
Do
cd /usr/bin
mkdir saved
mv gcc cc ld saved
ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-gcc gcc
ln -s gcc cc
ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-ld ld
3. Hide libc.so, libdl.so, libm.so and libpthread.so under /usr/lib so
that the Oracle installer won't pick it up by accident
# gcc -L/usr/lib ...
since -L/usr/lib tells gcc to search /usr/lib first. Neither -L/usr/lib
nor -L/lib are needed under Linux. Do
cd /usr/lib
mkdir saved
mv libc.so libdl.so libm.so libpthread.so saved
mv libc.a libdl.a libm.a libpthread.a saved
4. Install Oracle 8i:
./runInstaller
5. Restore /usr/bin:
cd /usr/bin
rm -f gcc cc ld
cd /usr/bin/saved
mv * ..
cd ..
rm -rf saved
6. Restore /usr/lib:
cd /usr/lib/saved
mv * ..
cd ..
rm -rf saved
Comments on Oracle installation:
1. -L/lib and -L/usr/lib should be removed for Linux. They are not
necessary under Linux and may cause problems for the glibc 2.1 SDK.
2. /lib:/usr/lib should be removed from -Wl,-rpath for Linux. They are
not necessary under Linux and may cause problems for the glibc 2.1 SDK.