macos - ./configure 并在 macOS 上提出问题
问题描述
我正在尝试获得QuantumEspresso
我下载了它,进入文件夹并尝试使用
./configure
但得到了错误
(base) localhost:q-e myname$ ./configure
checking build system type... x86_64-apple-darwin18.6.0
checking ARCH... mac686
checking setting AR... ... /anaconda3/bin/x86_64-apple-darwin13.4.0-ar
checking setting ARFLAGS... ... ruv
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgfortran... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking for nagfor... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking whether the Fortran compiler works... no
configure: error: in `/Users/myname/Documents/QuantumEspresso/new_folder/q-e':
configure: error: Fortran compiler cannot create executables
See `config.log' for more details
显然,我没有像gfortran这样的部分。我在哪里可以得到 MAC 的那些缺失部分?
解决方案
- 安装 Homebrew 包管理器。
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 使用 Homebrew 安装
gcc
(包括gfortran
)
brew install gcc
推荐阅读
- sql - ORA-00907 缺少右括号
- javascript - 在 v-if 语句中使用三元表达式会在 Vue JS 中出错
- java - CachePut如何获取返回值和Id?
- cakephp - 烘烤模型或其他东西时,Twig 崩溃
- javascript - Ajax 在 fastcomet 主机上发送超过 1MB 的文本
- django - TypeError:serve() 得到了一个意外的关键字参数“ducomment_root”
- xml - XSLT:使用输入 XML 中的唯一且已排序的日期创建新的 XML 节点
- c# - 如何调试通过 IIS 部署的 MVC5 库
- visual-studio-code - 如何为 Vscode 制作一个插件来更改文件类型的颜色?
- c - 将 ARCH 变量设置为“x86_64”的交叉编译内核版本 4.16.3 会引发错误缺少分隔符 -- Make