Hi, I had the same problem. I think if u put it in /usr/local/lib, when u installed meep by "sudo ....", it already has some other version or something. I am not sure. Anyway, I installed BLAS and lapack on my desktop by myself, instead of "sudo.....".
This is my memo when i installed lapack. U need to change some file before "make". I do not remember exactly but I am sure you will figure it out. --------------------------------------- PLAT = lib # For gfortran compiler: SECOND and DSECND will use a call to the INTERNAL FUNCTION ETIME TIMER = INT_ETIME BLASLIB = /home/huangbin/Desktop/BLAS/libblas.a LAPACKLIB = $(PLAT)lapack.a TMGLIB = $(PLAT)tmglib.a EIGSRCLIB = $(PLAT)eigsrc.a LINSRCLIB = $(PLAT)linsrc.a dont add $(MAKE) by single, complex, or whatever --------------------------------------- When you configure MEEP, do ./configure --prefix=/home/huangbin/Desktop/meep-1.1.1_v1 --with-lapack="/home/huangbin/Desktop/lapack-3.2.1/liblapack.a" I hope this helps. Best Regards, Bin Huang (Bryan) MIT Graduate Student '10 Computation for Design and Optimization (+65)98947649 ________________________________________ From: 朱孔涛 [pku.kt...@gmail.com] Sent: Tuesday, November 09, 2010 9:50 AM To: Bin Huang Subject: Re: [Meep-discuss] meep installation Hi Bin, I have checked the libblas.a and liblapack.a respectively,using ar -t libblas.a. I find that libblas.a contains sgemm.o and liblapack.a contains cheev.o. Then i type: ./configure --with-blas=/usr/local/lib/libblas.a --with-lapack=/usr/local/lib/liblapack.a it says: checking for sgemm_ in /usr/local/lib/libblas.a... yes checking for cheev_ in /usr/local/lib/liblapack.a... no checking for cheev_... no checking for cheev_ in -llapack... no checking for cheev_ in -llapack_rs6k... no configure: error: LAPACK library not found Do you have any idea about this,please tell me. I would be very appreciate. Best regards. Zhu Kongtao 2010/11/9, 朱孔涛 <pku.kt...@gmail.com>: > Hi Bin, > Thanks for your answer. I have met another problem in installing harminv. > I have installed BLAS and LAPACK, and put them both in /usr/local/lib. > If i type: ls /usr/local/lib > i get libblas.a liblapack.a > But when i install harminv and type ./configure > it says: > checking for sgemm_ in -lblas... yes > checking for dgemm_ in -ldgemm... no > checking for sgemm_ in -lcxml... no > checking for sgemm_ in -ldxml... no > checking for sgemm_ in -lscs... no > checking for sgemm_ in -lcomplib.sgimath... no > checking for sgemm_ in -lblas... (cached) yes > checking for sgemm_ in -lessl... no > checking for sgemm_ in -lblas... (cached) yes > checking for cheev_... no > checking for cheev_ in -llapack... no > checking for cheev_ in -llapack_rs6k... no > configure: error: LAPACK library not found > > I don't understand why it can find blas but can't find lapack?And i > have changed the liblapack.a to some other precompiled lapack > libraries.I have tried a lot,and it still can't find the lapack > library. > Best regards. > > 2010/11/8, Bin Huang <b...@mit.edu>: >> Hi Kongtao, >> >> Yes I think you should. The auto installation of your OS isn't good >> enough >> to develop your own C++ programs. >> >> After you install meep by yourself, put test.cpp under meep-1.1.1/tests/. >> Follow the commands at the end of meep C++ tutorial. >> >> Best Regards, >> Bin Huang (Bryan) >> MIT Graduate Student '10 >> Computation for Design and Optimization >> (+65)98947649 >> ________________________________________ >> From: 朱孔涛 [pku.kt...@gmail.com] >> Sent: Monday, November 08, 2010 9:57 AM >> To: Bin Huang >> Subject: Re: [Meep-discuss] meep installation >> >> hi,thanks for your answers.There is something i don't understand.I >> have already intalled meep using: sudo apt-get install meep h5utils. >> And i can use meep to run the *.ctl files. >> But if i use g++ >> e.g. g++ `pkg-config --cflags meep` test.cpp -o test `pkg-config --libs >> meep` >> it says i should add the directory containing "meep.pc" >> and it also can't find meep.hpp >> Should i install meep again using meep-1.1.1.tar.gz? >> Thanks. >> >> >> 2010/11/6, Bin Huang <b...@mit.edu>: >>> Hi Kongtao, >>> >>> did you make sure that when you install meep, the hdf lib is included? >>> This >>> is what I needed to do. (I am running ubuntu.) >>> >>> env >>> LDFLAGS="-L/home/huangbin/Desktop/harminv/lib:/usr/lib:/usr/local/lib:/home/huangbin/Desktop/lib" >>> env >>> CPPFLAGS="-I/home/huangbin/Desktop/harminv/include:/usr/include:/usr/local/include:/home/huangbin/Desktop/include" >>> >>> My hdf is installed on Desktop. So /home/huangbin/Desktop/lib and >>> /home/huangbin/Desktop/include is where the hdf lib and header files >>> are. >>> >>> Best Regards, >>> Bin Huang (Bryan) >>> MIT Graduate Student '10 >>> Computation for Design and Optimization >>> (+65)98947649 >> >> >> -- >> Zhu Kongtao > > > -- > Zhu Kongtao > -- Zhu Kongtao _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss