Skip to content

Installation Guide

Zhang Xianyi edited this page Apr 14, 2015 · 30 revisions

Quick Installation

Linux

Just type make to compile the library.

Note

  • OpenBLAS doesn't support g77. Please use gfortran or other Fortran compilers. e.g. make FC=gfortran.

Windows

In order to build OpenBLAS on Windows you will need:

Simply download, unzip, add to the PATH environment variable and follow the usual instructions here.

Note: don't be alarmed if you see the lib command fail. This is optional and only needed if you would like to dynamically link OpenBLAS from within Visual Studio. For further details see this page.

Mac OSX

If your CPU is Sandy Bridge, please use Clang version 3.1 and above. The Clang 3.0 will generate the wrong AVX binary code of OpenBLAS.

FreeBSD

You will need to install the following tools from the FreeBSD ports tree:

  • lang/gcc [1]
  • lang/perl5.12
  • ftp/curl
  • devel/gmake
  • devel/patch

To compile run the command:

$ gmake CC=gcc46 FC=gfortran46

Note that you need to build with GNU make and manually specify the compiler, otherwhise gcc 4.2 from the base system would be used.

[1]: Removal of Fortran from the FreeBSD base system