brew install i386-elf-gcc和错误:包含冲突的版本递归依赖

时间:2017-08-19 10:21:00

标签: macos toolchain i386

brew install i386-elf-gcc

==>从altkatz / gcc_cross_compilers安装i386-elf-gcc 错误:altkatz / gcc_cross_compilers / i386-elf-gcc包含冲突的版本递归依赖项:   gmp,gmp @ 4,mpfr,mpfr @ 2,libmpc,libmpc @0.8

使用brew deps --tree altkatz/gcc_cross_compilers/i386-elf-gcc查看这些内容。

debs树看起来像:

altkatz/gcc_cross_compilers/i386-elf-gcc
├── gmp
├── libmpc
│   ├── gmp
│   └── mpfr
│       └── gmp
├── mpfr
│   └── gmp
└── i386-elf-binutils

安装gmp @ 4,mpfr @ 2,libmpc @ 0.8,gcc49后,错误没有改变。

1 个答案:

答案 0 :(得分:0)

我使用MacPorts安装它,它对我有用:

sudo port install i386-elf-binutils
sudo port install i386-elf-gcc

cd /opt/local/bin
sudo ln -s i386-elf-gcc i386-elf-gcc-4.7.2