Dear Ben Hourahine, <br><br>I have installed ifort compiler and successfully compiled dftb-plus. Thank you very, very much for your great help! :)<br><br>Best wishes!<br><br>Yours sincerely, <br>Duo Song<br><br><div class="gmail_quote">
2009/12/18 Ben Hourahine <span dir="ltr">&lt;<a href="mailto:benjamin.hourahine@strath.ac.uk">benjamin.hourahine@strath.ac.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
which fortran compiler do you have installed? The options try<br>
to use ifort by default, but cannot find this.<br>
<br>
To compile DFTB+ you need:<br>
1) A fortran compiler - ifort, gfortran or g95 are all common choices<br>
2) The lapack and blas libraries - mkl or from <a href="http://www.netlib.org" target="_blank">www.netlib.org</a> are again<br>
   the usual choices for many people.<br>
<br>
Regards<br>
<br>
Ben<br>
<div><div></div><div class="h5"><br>
Duo SONG wrote:<br>
&gt; Dear all dftb-plus users,<br>
&gt;<br>
&gt; How are you? I am a new user on dftb-plus. When compling dftb-plus, I<br>
&gt; came across a problem. The dftb-plus cannot be complied successfully.<br>
&gt; The error report, which appears after invoking make, is following (Those<br>
&gt; above the red-marked error are exactly the same as the howto says):<br>
&gt;<br>
&gt; make[1]: Entering directory `/para3/dsong/dftb+_1.0.1_src/<br>
&gt; prg_dftb/_obj_i686-linux-ifort&#39;<br>
&gt; echo &quot;&quot; &gt; _dependencies<br>
&gt; for dep in<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../lib_common/Makefile.dep<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../lib_dftb/Makefile.dep<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../lib_geoopt/Makefile.dep<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../lib_io/Makefile.dep<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../lib_math/Makefile.dep<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../lib_md/Makefile.dep<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../lib_mixer/Makefile.dep<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../lib_type/Makefile.dep<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../includes/Makefile.dep<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../ext_xmlf90/Makefile.dep<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/Makefile.dep<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../lib_math/Makefile.local; do cpp<br>
&gt; -traditional -DDEBUG=0 $dep &gt;&gt; _dependencies; done<br>
&gt; make[1]: Leaving directory<br>
&gt; `/para3/dsong/dftb+_1.0.1_src/prg_dftb/_obj_i686-linux-ifort&#39;<br>
&gt; make[1]: Entering directory<br>
&gt; `/para3/dsong/dftb+_1.0.1_src/prg_dftb/_obj_i686-linux-ifort&#39;<br>
&gt; cpp -traditional -DDEBUG=0<br>
&gt; -I/para3/dsong/dftb+_1.0.1_src/prg_dftb/../lib_common/<br>
&gt; -I/para3/dsong/dftb+_1.0.1_src/prg_dftb/../includes<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../lib_common/allocate.F90 |<br>
&gt; /para3/dsong/dftb+_1.0.1_src/prg_dftb/../utils/fpp/fpp.sh nocntln &gt;<br>
&gt; allocate.f90<br>
&gt; ifort -O2 -xW -ip -o allocate.o -c allocate.f90<br>
&gt; *make[1]: ifort: Command not found*<br>
&gt; make[1]: *** [allocate.o] Error 127<br>
&gt; rm allocate.f90<br>
&gt; make[1]: Leaving directory<br>
&gt; `/para3/dsong/dftb+_1.0.1_src/prg_dftb/_obj_i686-linux-ifort&#39;<br>
&gt; *make: *** [_obj_i686-linux-ifort] Error 2*<br>
&gt;<br>
&gt; Here is what I have done to complie dftb-plus:<br>
&gt;<br>
&gt; Firstly, I unpacked the package &quot;dftb-plus_1.0.1_src&quot;. After finding<br>
&gt; that make.i686-linux-ifort exists in the sysmakes, I copied<br>
&gt; Makefile.user.template to Makefile.user.<br>
&gt; I modified it as following:<br>
&gt;<br>
&gt; ## Set alternative path for the autotest directory<br>
&gt; #PRGDFTB_TESTDIR = $(ROOT)/../autotest<br>
&gt;<br>
&gt; ## Set alternative file containing the name of the tests to run<br>
&gt; #PRGDFTB_TESTFILE = $(PRGDFTB_TESTDIR)/tests<br>
&gt;<br>
&gt; ## Change directory, where the _obj* directory for the object files is<br>
&gt; created<br>
&gt; #OBJDIR_PARENT =<br>
&gt;<br>
&gt; ## Change suffix after &#39;_obj&#39; for the object directory name<br>
&gt; #OBJDIR_SUFFIX = _i686-linux-ifort<br>
&gt;<br>
&gt; ## Set directory, where binary should be copied when issuing &#39;make install&#39;<br>
&gt; #INSTALLDIR = .<br>
&gt;<br>
&gt;<br>
&gt; ## Uncomment to keep intermediate files in OBJDIR (for debug only!)<br>
&gt; #.PRECIOUS: %.f90 %.F %.f %.c<br>
&gt;<br>
&gt; Then I entered prg_dftb and typed &quot;make distclean&quot; and &quot;rm -rf<br>
&gt; ./_obj_i686-linux-ifort&quot; shows. Finally, I typed &quot;make&quot;, the error<br>
&gt; report presented above appears.<br>
&gt;<br>
&gt; Is there anything wrong I did to compile dftb-plus? And how can I<br>
&gt; compile it successfully? This email may be a liitle long. Thank you very<br>
&gt; much for your time reading it and thank you very much for your great<br>
&gt; help! I am grateful for any answer to it!<br>
&gt;<br>
&gt; Best wishes!<br>
&gt;<br>
&gt; Yours sincerely,<br>
&gt; Duo Song<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; SONG Duo<br>
&gt; Undergraduate Student<br>
&gt;<br>
&gt; Department of Materials Science and Engineering<br>
&gt; University of Science and Technology of China<br>
&gt;<br>
<br>
</div></div>--<br>
     Dr. B. Hourahine, SUPA, Department of Physics,<br>
   University of Strathclyde, John Anderson Building,<br>
          107 Rottenrow, Glasgow G4 0NG, UK.<br>
    +44 141 548 2325, <a href="mailto:benjamin.hourahine@strath.ac.uk">benjamin.hourahine@strath.ac.uk</a><br>
   The University of Strathclyde is a charitable body,<br>
registered in Scotland, with registration number SC015263<br>
<br>
_______________________________________________<br>
DFTB-Plus-User mailing list<br>
<a href="mailto:DFTB-Plus-User@dftb-plus.info">DFTB-Plus-User@dftb-plus.info</a><br>
<a href="http://www.dftb-plus.info/mailman/listinfo/dftb-plus-user" target="_blank">http://www.dftb-plus.info/mailman/listinfo/dftb-plus-user</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>SONG Duo<br>Undergraduate Student<br><br>Department of Materials Science and Engineering<br>University of Science and Technology of China<br>