[編譯] GMP & MPFR required

看板b96902HW作者 (小熊)時間14年前 (2010/02/25 20:31), 編輯推噓2(204)
留言6則, 3人參與, 最新討論串1/2 (看更多)
我在裝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.137

02/25 20:56, , 1F
下載回來的 GMP, MPFR, MPC 都是原始碼,還必需再編譯
02/25 20:56, 1F

02/25 20:57, , 2F
一樣是用 ./configure, make, make install 的指令。
02/25 20:57, 2F

02/25 20:57, , 3F
我剛才看了一下,Cygwin 好像有現成的 library 可以裝,
02/25 20:57, 3F

02/25 20:58, , 4F
不過我沒有試過,你可以試試看。
02/25 20:58, 4F

02/25 22:59, , 5F
感謝~已解決
02/25 22:59, 5F

03/02 18:45, , 6F
請問一下 ./configure 指令後 該接什麼?
03/02 18:45, 6F
文章代碼(AID): #1BXcsZMr (b96902HW)
文章代碼(AID): #1BXcsZMr (b96902HW)