title: BLAS, ATLAS, LAPACK Shared library minimal example
body: <p>I installed atlas, blas and lapack x86_64 packages via </p>
  
  <pre><code>yum install atlas.x86_64 blas.x86_64 lapack.x86_64
  </code></pre>
  
  <p>on a Redhat 6.6 (ii) distro which installs a shared library but am having problems compiling and linking. For example, if I try to compile the minimal working example:</p>
  
  <pre><code>program main
    print *, 'hello world'
  end program main
  </code></pre>
  
  <p>using </p>
  
  <pre><code>gfortran -L. main.f90 -llapack -lblas -o main
  </code></pre>
  
  <p>the compiler doesn't find the libraries and I get the error message:</p>
  
  <pre><code>/usr/bin/ld: cannot find -llapack
  collect2: ld returned 1 exit status 
  </code></pre>
  
  <p>I'm relatively new to fortran and linux so I'm probably missing something obvious. I'm lost hours on compiling the libraries from source unsuccessfully too. </p>
  
  <p>Pointers much appreciated. </p>