# call FORTRAN in SAGE (openSuSE 12.3)

I want to call files written in FORTRAN, because several powerful matrix computation packages are only available in FORTRAN.

I have found two websites:

From the notebook the magic %fortran will automatically compile any fortran code in a cell and all the subroutines will become callable functions (though the names will be converted to lowercase.) magic %fortran

F2PY is now part of NumPy. All the development and maintenance of F2PY is carried out under NumPy SVN tree. See F2PY for more information. If you need F2PY with Numeric or Numarray array support then you must use the F2PY version found below. F2PY

However,

sage: %fortran
ERROR: Line magic function %fortran not found.


Should I install any additional package?

Ops, perhaps I should have installed FORTRAN Compiler firstly...

Shown in YaST (openSuSE 12.3),

gcc-fortran, gcc47-fortran, gdb, libgfortran3, libquropdate1, libquadmath0


are installed.