2016-11-17 250 views
1

我遇到的主要問題是我已經安裝了MPC,MPFR,GMP等依賴項,使用自制軟件。然後我試着安裝i386-elf-gcc無法安裝gcc(i386-elf-gcc)

首先我點擊brew tap altkatz/homebrew-gcc_cross_compilers然後brew install i386-elf-gcc,肯定發生了一些錯誤。

configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. 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.

其實我已經安裝了MPC等與自制,這些事情就位於/usr/local/Cellar

然後我brew install i386-elf-gcc --with-mpc=/usr/local/Cellar/mpc/0.27/bin --with-gmp=/usr/local/Cellar/gmp/6.0.0a/lib --with-mpfr=/usr/local/Cellar/mpfr/3.1.3/lib

最後我得到這個

configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify their locations. 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.

沒有改變...

Cou這裏有人幫我嗎?請.....

只想沖泡安裝I386-ELF-GCC

但是感謝大家看這個問題,謝謝

回答

0

首先,我用brew tap altkatz/homebrew-gcc_cross_compilers,但沒有奏效。

然後我用MacPort這樣,它的工作:

$ port search i386-elf-gcc

$ sudo port install i386-elf-gcc

此安裝i386-elf-gcc @4.7.2成功對我來說。

但是,我在MacPort或HomeBrew中找不到i386-elf-gdb。所以我下載了gdb的源文件並更改了配置文件(./configure文件),然後makemake install,現在就可以了。

詳情: https://icoderme.wordpress.com/2010/05/05/install-i386-elf-gdb-on-mac-os-x/