2016-12-15 6 views
0

수동으로 컴파일하는 것이 거의 불가능한 것처럼 보이기 때문에 Mac 포트를 통해 atlas를 설치하려고합니다. 그래서이 문제가 생겼고 해결할 생각이 없습니다. 도와주세요. 그리고 포트를 구축하는 대신 gcc로 어떻게 전환 할 수 있습니까?Mac에서 Atlas 컴파일

$ sudo port install atlas 
Password: 
---> Configuring atlas 
Selected C compiler: /usr/bin/clang 
Error: org.macports.configure for port atlas returned: Atlas could not detect any fortran compiler. If you really don’t need the fortran interface to be built, please use the +nofortran option, else install a fortran compiler (e.g. gcc4X) before building Atlas. 
Please see the log file for port atlas for details: 
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_atlas/atlas/main.log 
To report a bug, follow the instructions in the guide: 
    http://guide.macports.org/#project.tickets 
Error: Processing of port atlas failed 
~ sudo port install gcc48 
Error: Unable to open port: can't set "compiler.blacklist": couldn't determine build number of compiler "llvm-gcc-4.2" 

답변

0

당신의 대답은 귀하의 질문에 본질적 :

"오류 : 포트 아틀라스에 대한 org.macports.configure 반환 : 아틀라스 어떤 포트란 컴파일러를 감지 할 수있는 당신이 정말로 포트란 인터페이스를 필요로하지 않는 경우. Atlas를 만들기 전에 + nofortran 옵션을 사용하고, 그렇지 않으면 fortran 컴파일러 (예 : gcc4X)를 설치하십시오. "

그래서 'sudo port install atlas + nofortan'또는 'sudo port install atlas + gcc48'(예를 들어, 좋아하는 GCC를 선택하십시오). 또한 컴파일 링 아틀라스에 선택된 gcc를 사용합니다. 일부 포트 (특히 특정 컴파일러 용 튜빙이 많은 포트)에는 특정 컴파일러를 사용할 수있는 + gccNN 변형이 있습니다.

변형 선택을 변경하는 중 먼저 '포트 클린 아틀라스'를해야합니다.

편집 : 'sudo port selfupdate'도해야합니다. gcc48 설치시 오류의 원인을 잘 모르겠습니다. 잘하면 selfupdate 그 해결; 우연히 MP 설치간에 운영 체제를 업그레이드하지 않았습니까?