Error: cannot compute suffix of object files: cannot compile

Original address: http://dtbuluo.com/blog/archives/383

When installing gcc-4.7.0 make under CentOS 6.5, the following error will be prompted:

configure: error: cannot compute suffix of object files: cannot compile

See article: http://dtbuluo.com/blog/archives/381

The solution is:

Add the following in / etc / Profile:

export LD_ LIBRARY_ PATH=$LD_ LIBRARY_ PATH:/usr/local/mpc-0.9/lib:/usr/local/gmp-5.0.1/lib:/usr/local/mpfr-3.1.0/lib

one

export 

LD_ LIBRARY_ PATH=$LD_ LIBRARY_ PATH:

/usr/local/mpc-0

.9

/lib

:

/usr/local/gmp-5

.0.1

/lib

:

/usr/local/mpfr-3

.1.0

/lib

As shown in the figure:

one

source 

/etc/profile

Reload the configuration file.

Read More: