作者JingXD (@O@)
看板b96902HW
标题Re: [编译] GMP & MPFR required
时间Thu Feb 25 21:16:53 2010
这个问题应该大家都会遇到
把这两个library 抓下来以後灌在装 GCC source code 的资料夹里面 就可以make了
在老师的教学里 装CODE的资料夹是gcc-4.4.3/src/ 不是gcc-4.4.3
错误讯息里面说加上 --with-gmp --with-mpfr 指令就可以自己specify路径
不过我不知道为什麽我用不出来 = =
※ 引述《woptspencil (小熊)》之铭言:
: 我在装gcc的时候,一切都还算顺利,直到这行的时候:
: ../src/configure --prefix=欧美嘎/gcc-4.4.3/install --enable -languages=c
: 执行玩之後跑出来的结果
: 上面版本检查什麽的还没什麽问题
: 但是最下面出现了这个
: configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
: Try the --with-gmp and/or --with-mpfr options to specify their locations.
: Copies of these libraries' source code 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 and/or MPFR 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.
: 意思是我要去装GMP跟MPFR这两个library吗?
: 是不是只要把library抓下来之後把路径指定给它就好了咧?
: 有请高手解惑= =||
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.244.131
※ 编辑: JingXD 来自: 140.112.244.131 (02/25 21:17)
1F:推 LoganChien:你要先编译 GMP、MPFR 二个函式库。你从 GNU ftp 下载 02/26 01:14
2F:→ LoganChien:的压缩档只是 source code。解压缩之後,也是用 02/26 01:15
3F:→ LoganChien:./configure --prefix=$OMEGA; make; make install 02/26 01:16
4F:→ LoganChien:去 build 这二个函式库。然後之後如果要使用 --with-xx 02/26 01:17
5F:→ LoganChien:在 configure 的时候就加上 --with-xxx=$OMEGA 02/26 01:18
6F:→ JingXD:喔喔 谢谢^^" 可是我只是解压缩就可以用了欸 = = 02/26 09:46
7F:推 woptspencil:我也是解压缩就可以用了说 02/26 14:26
8F:→ JingXD:我刚发现 应该是make GCC的时候 如果这两个lib没有make 02/26 17:55
9F:→ JingXD:那系统就会帮忙make了 02/26 17:55
10F:推 Thompson:所以只需要将二个函式库的原始码放入src资料夹? 03/02 17:52
11F:推 pishen:资料夹的名字要是src/gmp/ src/mpfr/ 03/02 19:19
12F:→ JingXD:YES! 03/02 20:49