OS X 10.7.4를 실행하는 MacBook Pro에서 GCC-4.7.0을 빌드하려고합니다.configure : error : GCC 빌드시 GMP 4.2 이상, MPFR 2.3.1+ 및 MPC 0.8.0+가 필요합니다.
:./configure --prefix=/Users/jreese/Documents/school/edinburgh/project/local/
나는 다음과 같은 작업을 시도했습니다이 오류를 제거하는 :이 오류는 다음 줄을 실행 한 후 발생
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
: 그러나,이 같은 오류가 발생하는 것을 계속하고있다
homebrew를 사용하여 gmp-5.0.4, mpc-0.21 및 mpfr-3.1.0을 다운로드했습니다. 이 시점에서 나는 GMP, MPC, 그리고 mpfr은 다음 명령의 위치를 가리 키도록 시도 :
그러나,이 같은 오류가 발생합니다. 그래서 Cellar 디렉토리의 여러 위치에 gcc를 지정하려고 시도했습니다../configure --prefix=/Users/jreese/Documents/school/edinburgh/project/local/ --with-gmp=/usr/local/Cellar/ --with-mpfr=/usr/local/Cellar/ --with-mpc=/usr/local/Cellar/
./configure --prefix=/Users/jreese/Documents/school/edinburgh/project/local/ --with-gmp=/usr/local/Cellar/gmp/ --with-mpfr=/usr/local/Cellar/mpfr --with-mpc=/usr/local/Cellar/mpc/ ./configure --prefix=/Users/jreese/Documents/school/edinburgh/project/local/ --with-gmp=/usr/local/Cellar/gmp/5.0.4/ --with-mpfr=/usr/local/Cellar/mpfr/3.1.0/ --with-mpc=/usr/local/Cellar/mpc/0.21/ ./configure --prefix=/Users/jreese/Documents/school/edinburgh/project/local/ --with-gmp=/usr/local/Cellar/gmp/5.0.4/include/ --with-mpfr=/usr/local/Cellar/mpfr/3.1.0/include/ --with-mpc=/usr/local/Cellar/mpc/0.21/share/
결국 모두 동일한 오류가 발생했습니다. 그런 다음 gcc, mpc 및 mpfr 버전을 gcc 오류 메시지 (여기에서 찾을 수 있습니다 : ftp://gcc.gnu.org/pub/gcc/infrastructure/)에서 다운로드했습니다. 소스에서 빌드하고 동일한 구성을 실행 한 후 동일한 문제가 남아 있습니다. 나는이 설치를 시도 구성은 다음과 같습니다
./configure --prefix=/Users/jreese/Documents/school/edinburgh/project/local/ ./configure --prefix=/Users/jreese/Documents/school/edinburgh/project/local/ --with-gmp=/usr/local/ --with-mpfr=/usr/local/ --with-mpc=/usr/local/ ./configure --prefix=/Users/jreese/Documents/school/edinburgh/project/local/ --with-gmp=/usr/local/include/ --with-mpfr=/usr/local/include/ --with-mpc=/usr/local/include/
그럼 내가 명시 적으로 64 비트 모드에서 실행되도록 구성을 설정하지 않은 경우 문제가 될 수 있다고 어딘가에 읽었다. 그래서 나는 'CC = gcc -m64'라는 설정을 추가하여이 모든 설정을 다시 시도했다. 그러나 이것은 아무 것도 바뀌지 않았습니다. 누구든지 아이디어가 있다면 크게 감사 할 것입니다.
오른쪽. 이것은 효과가있는 것 같습니다. 이상하게도 나는 어제이 화를 시도했다. 건배. – josh
@rubenvb이 도움말을 올바르게 구성했습니다. 그러나 fixincludes는 생성되지 않습니다. 나는 항상 실패하고 있습니다. RHEL 6에서 gcc-4.4.4를 사용하여 gcc-4.5.4를 컴파일하려고합니다. – fedvasu