Friday, April 25, 2008

Build lapack with gfortran

Procedures to build lapack for a Linux x86_64 system with gfortran

  1. download the source package from netlib.org: lapack.tgz
  2. in a working directory, use "tar zxvf lapack.tgz" to unpack.
  3. "cd lapack-3.1.1"
  4. "cp INSTALL/make.inc.LINUX ./make.inc"
  5. edit the file make.inc, change the compiler g77 to gfortran
  6. "make blaslib"
  7. "make lib"
  8. if you want to compile and run the rest routines, run "make all"
  9. copy the generated library files *.a into a directory where you keep lib files, for instance $(HOME)/lib

No comments: