install gcc 4.7 on openSUSE

ftp://gcc.gnu.org/pub/gcc/infrastructure/

下载并依次安装gmp mpfr,  mpc


下载并安装gcc 4.7


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


Indeed, adding the MPFR and GPM lib directories to LD_LIBRARY_PATH solves the
problem.  For some reason I thought configure would handle this for me since I
gave it --with-gmp and --with-mpfr settings.  Would have been nice if configure
tested for this and given a helpful error.  In any event I'll close this out as
an invalid bug report.
需要安装gmp与mpfr
并且需要在.bash_profile(一般在/root目录下)配置LD_LIBRARY_PATH,把GMP与MPFR对应的lib配置上
如:LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpfr/2.4.0/lib:/usr/local/gmp/4.2.2/lib
export LD_LIBRARY_PATH
一定要重启生效或者使用 source /root/.bash_profile

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值