在小牛队上安装GFortran



我已经成功安装了numpy,现在我正试图在Mavericks上安装scipy。要求是GFortran,但当我尝试安装它时,我收到一条消息:"未批准的呼叫者。SecurityAgent只能由苹果软件调用。"

有人知道我该怎么解决这个问题吗?

重新启动计算机已解决该问题。

我可以通过使用installer命令而不是gui 来解决这个问题

 ## SETUP
  # get pacakge
wget http://coudert.name/software/gfortran-4.9.0-Mavericks.dmg
  # mount
hdiutil attach gfortran-4.9.0-Mavericks.dmg
  # issue with clicking desktop icon then pkg icon
  # "Unapproved caller. SecurityAgent may only be invoked by Apple software"
## INSTALL    
sudo installer -pkg /Volumes/gfortran-4.9.0-Mavericks/gfortran.pkg -target /
## test install
which gfortran
/usr/local/bin/gfortran

另一种解决方案可能是使用brew/fink/macports包。我使用这个包而不是brew install gcc,因为(当R编译fortran代码时),我得到的是:

致命:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchains/usr/bin/../libexec/as/x86_64/as:我不懂'm'标志!

最新更新