Solving gcc in linux64 – -static-libgcc-B/usr/lib/gcc/i386-redhat-linux6E/4.4.0


Recently i wanted to install php and apache on Oracle Enterprise linus which was upgraded to linux64.

When I tried the solution given in

http://www.lamphowto.com/

http://wiki.apache.org/tomcat/UsingPhp

http://dan.drydog.com/apache2php.html

I keep getting the following error when I

make
or
make install

the error is like

#> gcc
gcc.orig: unrecognized option '-static-libgcc-B/usr/lib/gcc/i386-redhat-linux6E/4.4.0'
gcc.orig: no input files

This clearly proves that there is a problem in the linux64
I tried all possible tricks on earth but could get away with it.
Finally i tried the following and it worked..

#> which gcc
#> /usr/bin/gcc
#> ls /usr/bin/gcc*
#> gcc gcc34 gcc41 gccmakedep gcc44 gcc.orig
#> mv /usr/bin/gcc /usr/bin/gcc_old
#> mv /usr/bin/gcc34 /usr/bin/gcc
#> gcc: no input files

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s