Category Archives: linux

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

forgot root password? – give this a try



ade:[ xxx_standalone ] $ sudo passwd

Password:

Changing password for user root.

New UNIX password:

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

ade:[ xxx_standalone ] $ su

Password:

[root@xxx_machine]#