I found the problem myself. I had to select the correct compiler. I was using the default one and that was giving me trouble. I am now able to run LAPACK library. I am so happy to find the document showing me the steps and this community.