Dear Laurence,<br>Thank you for your quick reply and kind explanation. <br>I followed your suggestions. The third suggestion resolve my problems. Thank you!<br>I tested by TiC and it works fine. The problem is there always a message "<pre>
Invalid null command.“ included.<br><br>Is there anything I can do?<br><br>Thank you!<br>regards,<br>Guo<br></pre><br><br><br><br><div class="gmail_quote">On Thu, Jun 24, 2010 at 9:32 PM, Laurence Marks <span dir="ltr"><<a href="mailto:L-marks@northwestern.edu" target="_blank">L-marks@northwestern.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
A slightly longer answer than may be needed, for completeness<br>
<br>
In some cases the location of the ifort/mkl INCLUDE directories are<br>
setup by modules that are part of your environment, but not always.<br>
The location of the include file can be specified one of three ways:<br>
<br>
a) By sourcing /opt/intel/Compiler/11.1/072/mkl/tools/environment/mklvarsem64t.sh<br>
as you do (or the appropriate version). Note that at least on one<br>
cluster I just checked the 072 release does not include the tools<br>
directory (not sure why). This is better because it sets MKLPATH as<br>
well, which is useful for static compilation.<br>
<br>
b) Manually, by doing (in bash, change for csh)<br>
export INCLUDE=/opt/intel/Compiler/11.1/072/mkl/include:$INCLUDE<br>
<br>
c) By adding a line -I/opt/intel/Compiler/11.1/072/mkl/include in the<br>
FOPT for the relevant Makefile (by hand, or can be done using<br>
siteconfig)<br>
<br>
In both cases a) and b) doing "echo $INCLUDE" will let you know that it worked.<br>
<br>
What you have done should have worked; did you remember to source<br>
.bashrc after you made the changes, or do a fresh login?<br>
<br>
2010/6/24 Donghui Guo <<a href="mailto:donghuig@gmail.com" target="_blank">donghuig@gmail.com</a>>:<br>
<div><div></div><div>> Dear Wien2kers,<br>
> I am trying to compile newest version of Wien2k_10 on Ubuntu 10.04 system. I<br>
> met the problem as "W2kinit_tmp_.F(28): error #5102: Cannot open include<br>
> file '<a href="http://mkl_vml.fi" target="_blank">mkl_vml.fi</a>'" during compiling. It happened on lapw1/2/3 programs.<br>
> Here is detail information:<br>
> 1) OS, processor, and compiler:<br>
> Ubuntu 10.04 (AMD64)<br>
> AMD Phenom (tm) II X2 545<br>
> /opt/intel/Compiler/11.1/072/bin/intel64/ifort<br>
> gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3<br>
> 2) compile specification<br>
> system: I Linux (Intel ifort 11.1 compiler + mkl )<br>
> compiler: for f90<br>
> /opt/intel/Compiler/11.1/072/bin/intel64/ifort<br>
> for C<br>
> gcc<br>
> 3) compile options<br>
> O Compiler options: -FR -mp1 -w -prec_div -pc80 -pad -ip<br>
> -DINTEL_VML -traceback<br>
> L Linker Flags: $(FOPT)<br>
> -L/opt/intel/Compiler/11.1/072/mkl/lib/em64t -lguide -lpthread<br>
> P Preprocessor flags '-DParallel'<br>
> R R_LIB (LAPACK+BLAS):<br>
> -L/opt/intel/Compiler/11.1/072/mkl/lib/em64t -lmkl_lapack -lmkl_intel_lp64<br>
> -lmkl_intel_thread -lmkl_core -openmp -lpthread -lguide<br>
> Meanwhile, I added two lines as following in ~/.bashrc file:<br>
> source /opt/intel/Compiler/11.1/072/bin/ifortvars.sh intel64<br>
> source<br>
> /opt/intel/Compiler/11.1/072/mkl/tools/environment/mklvarsem64t.sh<br>
> and added two lines as following in /etc/ld.so.conf file<br>
> /usr/lib<br>
> /usr/lib32<br>
> and loadconfig<br>
><br>
> After compiled lapw2, I got following message:<br>
><br>
> SRC_lapw0/compile.msg:W2kinit.F(28): error #5102: Cannot open include file<br>
> '<a href="http://mkl_vml.fi" target="_blank">mkl_vml.fi</a>'<br>
> SRC_lapw0/compile.msg:make[1]: *** [W2kinit.o] Error 1<br>
> SRC_lapw0/compile.msg:make: *** [seq] Error 2<br>
> SRC_lapw1/compile.msg:W2kinit_tmp_.F(28): error #5102: Cannot open include<br>
> file '<a href="http://mkl_vml.fi" target="_blank">mkl_vml.fi</a>'<br>
> SRC_lapw1/compile.msg:make[1]: *** [W2kinit.o] Error 1<br>
> SRC_lapw1/compile.msg:make: *** [real] Error 2<br>
> SRC_lapw1/compile.msg:W2kinit_tmp_.F(28): error #5102: Cannot open include<br>
> file '<a href="http://mkl_vml.fi" target="_blank">mkl_vml.fi</a>'<br>
> SRC_lapw1/compile.msg:make[1]: *** [W2kinit.o] Error 1<br>
> SRC_lapw1/compile.msg:make: *** [complex] Error 2<br>
> SRC_lapw2/compile.msg:W2kinit_tmp_.F(28): error #5102: Cannot open include<br>
> file '<a href="http://mkl_vml.fi" target="_blank">mkl_vml.fi</a>'<br>
> SRC_lapw2/compile.msg:make[1]: *** [W2kinit.o] Error 1<br>
> SRC_lapw2/compile.msg:make: *** [real] Error 2<br>
> SRC_lapw2/compile.msg:W2kinit_tmp_.F(28): error #5102: Cannot open include<br>
> file '<a href="http://mkl_vml.fi" target="_blank">mkl_vml.fi</a>'<br>
> SRC_lapw2/compile.msg:make[1]: *** [W2kinit.o] Error 1<br>
> SRC_lapw2/compile.msg:make: *** [complex] Error 2<br>
><br>
> I looked into the compile.msg and found the problem should be<br>
> "W2kinit_tmp_.F(28): error #5102: Cannot open include file '<a href="http://mkl_vml.fi" target="_blank">mkl_vml.fi</a>'<br>
> include '<a href="http://mkl_vml.fi" target="_blank">mkl_vml.fi</a>'<br>
> ---------------^<br>
> compilation aborted for W2kinit_tmp_.F (code 1)<br>
> make[1]: *** [W2kinit.o] Error 1<br>
> make[1]: Leaving directory `/home/guo/wien2k/SRC_lapw2'<br>
> make: *** [complex] Error 2"<br>
><br>
> I check the folder and the "<a href="http://mkl_vml.fi" target="_blank">mkl_vml.fi</a>" file is surely located in<br>
> "/opt/intel/Compiler/11.1/072/mkl/include".<br>
><br>
> SO, what can I do to resolve this problem? Any suggestion is welcomed.<br>
><br>
> Thank you in advance.<br>
> regards,<br>
> Guo<br>
><br>
><br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Wien mailing list<br>
> <a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank">Wien@zeus.theochem.tuwien.ac.at</a><br>
> <a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Laurence Marks<br>
Department of Materials Science and Engineering<br>
MSE Rm 2036 Cook Hall<br>
2220 N Campus Drive<br>
Northwestern University<br>
Evanston, IL 60208, USA<br>
Tel: (847) 491-3996 Fax: (847) 491-7820<br>
email: L-marks at northwestern dot edu<br>
Web: <a href="http://www.numis.northwestern.edu" target="_blank">www.numis.northwestern.edu</a><br>
Chair, Commission on Electron Crystallography of IUCR<br>
<a href="http://www.numis.northwestern.edu/" target="_blank">www.numis.northwestern.edu/</a><br>
Electron crystallography is the branch of science that uses electron<br>
scattering and imaging to study the structure of matter.<br>
_______________________________________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank">Wien@zeus.theochem.tuwien.ac.at</a><br>
<a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br>
</blockquote></div><br>