[Wien] Help: installation of Wannier90

Gavin Abo gsabo at crimson.ua.edu
Mon Mar 5 13:57:50 CET 2018


For "make" (serial wannier90.x and parallel postw90.x versions), it 
looks like you need mpi installed. So try "make wannier" instead to 
build only the serial wannier90.x.

Where did you run the "cp ./config/make.inc.ifort ./make.inc"?  Maybe it 
got executed in a different directory or something else happened, 
because the error says it cannot find the make.inc file:

../Makefile.2:5: ../../make.inc: No such file or directory

I tried it, and it seems to work fine for me:

username at computername:~/Desktop$ cd ~
username at computername:~$ wget 
http://www.wannier.org/code/wannier90-2.1.0.tar.gz
...
username at computername:~$ tar xvf wannier90-2.1.0.tar.gz
...
username at computername:~$ cd wannier90-2.1.0/
username at computername:~/wannier90-2.1.0$ cp ./config/make.inc.ifort 
./make.inc
username at computername:~/wannier90-2.1.0$ make wannier
(cd ./src/obj && make -f ../Makefile.2 serialobjs)
make[1]: Entering directory `/home/username/wannier90-2.1.0/src/obj'
ifort  -O2  -c ../constants.F90
ifort  -O2  -c ../io.F90
ifort  -O2  -c ../utility.F90
ifort  -O2  -c ../parameters.F90
ifort  -O2  -c ../ws_distance.F90
ifort  -O2  -c ../hamiltonian.F90
ifort  -O2  -c ../sitesym.F90
ifort  -O2  -c ../overlap.F90
ifort  -O2  -c ../kmesh.F90
ifort  -O2  -c ../disentangle.F90
ifort  -O2  -c ../wannierise.F90
ifort  -O2  -c ../plot.F90
ifort  -O2  -c ../transport.F90
make[1]: Leaving directory `/home/username/wannier90-2.1.0/src/obj'
(cd ./src/obj && make -f ../Makefile.2 wannier)
make[1]: Entering directory `/home/username/wannier90-2.1.0/src/obj'
ifort ../wannier_prog.F90 -O2  constants.o io.o utility.o parameters.o 
hamiltonian.o overlap.o kmesh.o disentangle.o ws_distance.o wannierise.o 
plot.o transport.o sitesym.o -L/opt/intel/mkl/lib/intel64 -lmkl_core 
-lmkl_intel_lp64 -lmkl_sequential -lpthread -o ../../wannier90.x
make[1]: Leaving directory `/home/username/wannier90-2.1.0/src/obj'

I do have the "../Makefile.2:5: ../../make.inc: No such file or 
directory" error if I intentionally remove the make.inc file created 
previously by the "cp ./config/make.inc.ifort ./make.inc" command:

username at computername:~/wannier90-2.1.0$ rm make.inc
username at computername:~/wannier90-2.1.0$ make wannier
(cd ./src/obj && make -f ../Makefile.2 serialobjs)
make[1]: Entering directory `/home/username/wannier90-2.1.0/src/obj'
../Makefile.2:5: ../../make.inc: No such file or directory
make[1]: *** No rule to make target `../../make.inc'.  Stop.
make[1]: Leaving directory `/home/username/wannier90-2.1.0/src/obj'
make: *** [serialobjs] Error 2

On 3/5/2018 3:34 AM, Jyoti Thakur wrote:
> Dear all WIEN2k users,
>
> We are trying to install Wannier90 in Wien17 version of Wien2k. We 
> have followed the steps of README.
>  In Our setup, We have ifort compiler  & used serial version of Wien2k.
> and we have also  not installed MPI.
>
>
> We followed the steps as:
>
> cp ./config/make.inc.ifort ./make.inc
>  make
>
> *But I got error as:*
>
> (cd ./src/obj && make -f ../Makefile.2 serialobjs)
> make[1]: Entering directory '/home/manish/program/wannier90-2.1.0/src/obj'
> ../Makefile.2:5: ../../make.inc: No such file or directory
> make[1]: *** No rule to make target '../../make.inc'. Stop.
> make[1]: Leaving directory '/home/manish/program/wannier90-2.1.0/src/obj'
> Makefile:16: recipe for target 'serialobjs' failed
> *make: *** [serialobjs] Error 2*
>
> Please help us to resolve this problem.
> Thanks in advance!!!!
>
>
>
>
>
>
>
> Warm Regards
> ---------------
> Jyoti Thakur
> National Post-Doctoral Fellow,
> Department of Physics & Astrophysics,
> University of Delhi
> New Delhi-110007, (New Delhi) INDIA
>
> /*always think +ve.*/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://zeus.theochem.tuwien.ac.at/pipermail/wien/attachments/20180305/e5efff4d/attachment-0001.html>


More information about the Wien mailing list