2016-12-15 44 views
0

我試圖通過mac端口安裝地圖集,因爲它似乎幾乎不可能手動編譯。所以,我得到這個問題,我不知道解決它。請幫助。而且,如何切換到gcc而不是clang構建端口?從mac端口編譯的地圖集

$ 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端口圖譜返回:阿特拉斯無法檢測到任何Fortran編譯器如果你真的不需要的Fortran接口。要編譯,請使用+ nofortran選項,否則在構建Atlas之前安裝Fortran編譯器(例如gcc4X)。「

因此,無論 'sudo的港口安裝atlas + nofortan' 或 'sudo的港口安裝atlas + gcc48'(例如,或者挑自己喜歡的GCC)。這也將使用選定的gcc編譯地圖集。某些端口(特別是那些可能爲特定編譯器提供大量管道的端口)將使用+ gccNN變體來使用特定的編譯器。

您將需要「sudo的港口清潔地圖集」第一無論哪種方式,你正在改變變異的選擇。

編輯:一定要做'sudo port selfupdate'以及;我不確定是什麼導致gcc48安裝中的錯誤;希望自動更新可以解決這個問題;偶然,您還沒有升級MP安裝之間的操作系統,是嗎?