Friday, September 21, 2012

Linux 64 Bit showing 32 bit

Hi All,

today we got an issue saying that, we are facing issue in installation of Oracle (INSTALLER) saying 64 bit oracle being installed on 32 bit OS. (RHEL 5.4 installed on server)

We started checking with commands after reading various stuff on Master Google. and some of the commands we tried were :-

the first command o/p given to user was 64 bit from uname -a

#uname -a
#uname -m
#file /usr/bin/file
#cat /proc/cpuinfo


THE ERROR WAS IN #GETCONF LONG_BIT, this command was showing 32 bit in o/p. later we checked from where getconf is picking up the value. we used simple command.

#find / -name getconf
 o/p came and shown us a directory where we found that default was linking to a file which is 32 bit as showing below. we unlink that file and linked he same to 64 bit.

[root@getconf]# [root getconf]# unlink default

[root getconf]# ln -s POSIX_V6_LP64_OFF64 default

[root getconf]#

[root getconf]# ls -ltr

total 84

-rwxr-xr-x 1 root root 25360 Jul 17  2009 POSIX_V6_LP64_OFF64

-rwxr-xr-x 1 root root 19388 Jul 17  2009 POSIX_V6_ILP32_OFFBIG

-rwxr-xr-x 1 root root 19388 Jul 17  2009 POSIX_V6_ILP32_OFF32

lrwxrwxrwx 1 root root    19 Sep 20 20:08 default -> POSIX_V6_LP64_OFF64

[root getconf]#

[root getconf]# getconf -a |grep -i LONG_BIT

LONG_BIT                           64

[root getconf]# pwd

/usr/libexec/getconf

[root getconf]#
After setting this user was through to next error other than this. Now we checked thoroughly that where was the exact error.
The error was that the User has installed  all GCC rpm of 32 and 64 bit as well. ao that was the reason of change in above mentioned file happened. so it is suggested to uninstall the extra gcc package for 32 bit i.e i386 from from server by carefully selecting packages  and choosing that. that is it, problem resolve the issue. please comment more in it so that more information can be gathered at one place.
============================================================

Solution came today,

I just uninstalled corrupted or improper 32 bit rpms by yum remove command and then reinstalling each rpm of 64 bit with dependency one by one. and which cause successful installation of Oracle on Liunx,

for this you just have to have list of rpm required for installation of Oracle.

No comments: