帮忙看看gcc 4.6.3 安装错误

软件和网站开发以及相关技术探讨
回复
intenvec
帖子: 1
注册时间: 2012-03-15 22:24

帮忙看看gcc 4.6.3 安装错误

#1

帖子 intenvec » 2012-03-15 22:45

安装gcc 4.6.3 在ubuntu 12 上。

运行 apt-get install build-essential 后提示

Depends: g++(>=4: 4.4.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

于是下载 gcc-4.6.4.tar.bz2 安装, 在预装了 gmp mpfr mpc 后,使用 configure
../gcc-4.6.3/configure --prefix=/usr/gcc-4.6.3 --enable-threads=posix --disable-checking --disable-multilib --enable-languages=c,c++ --with-gmp=/usr/gmp-4.3.2 --with-mpfr=/usr/mpfr-2.4.2 --with-mpc=/usr/mpc-0.8.1
运行OK.

然后运行 sudo make
得到一个error
checking for suffix of object files... configure: error: in '/usr/src/gcc_build/i686-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files : cannot compile

请谁帮忙指出问题出在哪里?
回复