I installed LAPACK on Ubuntu by following the instructions
sudo apt-get install liblapack-dev
this way I can find /usr/lib/libblas/libblas.a and /usr/lib/lapack/liblapack.a and then check it in randomsys1 using the randomsys1 example .
gfortran -llapack -lblas randomsys1.f90 gfortran -llapack -L/usr/lib/lapack -lblas -L/usr/lib/libblas randomsys1.f90
but I got the following errors ( dgesv is a LAPACK procedure):
/tmp/ccnzuuiY.o: In function `MAIN__': randomsys1.f90:(.text+0xb): undefined reference to `init_random_seed_' randomsys1.f90:(.text+0x3c2): undefined reference to `dgesv_' collect2: ld returned 1 exit status
Is there anything wrong with installing LAPACK? Thank you very much!
source share