我正在尝试通过mac端口安装atlas,因为手动编译似乎几乎是不可能的。所以,我明白了这个问题,但我不知道如何解决它。请帮帮忙。还有,我怎么才能换成gcc,而不是轰轰烈烈地建港口呢?
$ 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"发布于 2016-12-16 03:09:25
你的答案基本上就在你的问题中:
错误:端口地图集的org.macports.configure返回: atlas无法检测到任何fortran编译器。如果您确实不需要构建fortran接口,请使用+nofortran选项,否则在生成Atlas之前安装一个fortran编译器(如gcc4X)。
所以要么'sudo port install atlas +nofortan‘,要么'sudo port install atlas +gcc48’(例如,或者选择你最喜欢的GCC)。这也将使用选定的gcc来编写地图集。一些端口(特别是那些可能有很多用于特定编译器的管道的端口)将有+gccNN变体可用于使用特定编译器。
当你改变变量选择时,你首先需要'sudo port clean atlas‘这两种方式中的任何一种。
编辑:一定要做一个'sudo port selfupdate‘;我不确定是什么导致了你的gcc48安装错误;希望selfupdate能解决这个问题;你不会碰巧在MP安装之间升级了操作系统吧?
https://stackoverflow.com/questions/41157557
复制相似问题