shineshqw 发表于 2010-05-07 10:06

GCC升级问题

现在版本为:gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)      我从网站下下了源码编译gcc-4.5.0

执行./configure --prefix=/usr/gcc-4.5 --enable-languages=all --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/mpfr --enable-libgomp后

Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/.See also
http://gcc.gnu.org/install/prerequisites.html for additional info.If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.They may be located in separate packages.


之前先编译了mpfr-2.3.1 和 gmp-4.2.2

请大家指点下,不盛感激。

prolj 发表于 2010-05-07 10:36

本帖最后由 prolj 于 2010-05-07 10:41 编辑

mpfr-2.3.1 和 gmp-4.2.2 的 头文件 追加到路径里面,具体问题去这里问,我现在的工作重点在别的上面。

服务器: irc.ubuntu.com
房间: #hellogcc

IRC

jzhang918 发表于 2010-05-07 13:11

回复 1# shineshqw


    没有编译mpc?

aaaaa5aa 发表于 2010-05-13 22:43

不可以yum 安装么

0vk0 发表于 2010-05-15 23:18

远程用yum升级吧

EricFisher 发表于 2010-05-16 16:05

从GCC 4.5开始,除了gmp,mpfr之外,还需要安装mpc库,并用--with-mpc指定。
页: [1]
查看完整版本: GCC升级问题