简体   繁体   中英

Installing GFortran on Mavericks

I have succeeded with installing numpy and now I am trying to install scipy on Mavericks. The requirement is GFortran but when I am trying to install it, I get a message: "Unapproved caller. SecurityAgent may only be invoked by Apple software."

Does anyone know how I can fix this issue?

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

I was able to get around this by using the installer command instead of the 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

Another solution might be to use the brew/fink/macports package. I'm using this package instead of eg brew install gcc because (when R is compiling fortran code), I'm getting:

FATAL:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM