Create vasp base directory and makefile.include

Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
shehnaz
Newbie
Newbie
Posts: 5
Joined: Wed Jun 19, 2024 3:37 pm

Create vasp base directory and makefile.include

#1 Post by shehnaz » Fri Jun 21, 2024 9:56 am

Dear VASP Team,

I am following steps on VASP Wiki to install VASP on Windows subsystem Ubuntu 22.04. I have successfully installed compilers by using the code
'sudo apt install rsync make build-essential g++ gfortran libopenblas-dev libopenmpi-dev libscalapack-openmpi-dev libfftw3-dev libhdf5-openmpi-dev'
After downloading source code and extracting file using 7-zip, I have used mkdir to make directory but when I use 'cp arch/makefile.include.gnu_omp makefile.include'; terminal is not processing and showing that
cp: missing destination file operand after 'arch/makefile.include.linux.intel'
Try 'cp --help' for more information.

Please help me how to handle this. I have attached the screenshot. Also please tell me that in the Arch folder, there are many makefile.include files e.g gnu, intel. etc. Should I have to include all or just one?

Thank you very much.

Best regards,
Hafiz
You do not have the required permissions to view the files attached to this post.

pedro_melo
Global Moderator
Global Moderator
Posts: 149
Joined: Thu Nov 03, 2022 1:03 pm

Re: Create vasp base directory and makefile.include

#2 Post by pedro_melo » Mon Jun 24, 2024 9:46 am

Dear shehnaz,

You have to add a target to where the file is going to be copied. An example is

Code: Select all

$ cp arch/makefile.include.gnu makefile.include
So the syntax is

Code: Select all

$ cp file_to_copy file_copy
"$ cp file_to_copy file_copy", where

Code: Select all

file_to_copy
is the path to the file you want to copy, and

Code: Select all

file_copy
is the path to where you want it to be copied. If you search for "terminal cp command" you can find several pages that can help you learning about how cp and other command line instructions work.

Kind regards,
Pedro

shehnaz
Newbie
Newbie
Posts: 5
Joined: Wed Jun 19, 2024 3:37 pm

Re: Create vasp base directory and makefile.include

#3 Post by shehnaz » Tue Jun 25, 2024 9:22 pm

Dear Pedro,

Thank you very much.

Best regards,
Hafiz

Post Reply