"No rule to make target 'N', stop"

629 views
Skip to first unread message

Ebad

unread,
Jan 10, 2020, 11:50:55 AM1/10/20
to cp2k
Hello everyone,

During building cp2k (while installing) I have given following command in terminal:

> make -j N ARCH=Linux-x86-64-gfortran VERSION="sopt popt ssmp psmp"

which returned:

No rule to make target 'N', stop.


I have installed so far:
toolchain, gfortan, blas, lapack, python like the instructions provided in website.

Your suggestions would be highly helpful for me.
Screenshot from 2020-01-09 00-36-05.png

Krack Matthias (PSI)

unread,
Jan 10, 2020, 11:55:33 AM1/10/20
to cp...@googlegroups.com

Hi

 

You have to specify for N the number of available CPU cores, e.g. “ make –j 4 ARCH=…” if you want to run make in parallel using 4 cores.

 

Matthias

--  
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/ed81e2d8-de89-404b-8983-b8cf04465bd0%40googlegroups.com.

Zubair Al Ebad

unread,
Jan 10, 2020, 5:01:40 PM1/10/20
to cp...@googlegroups.com
Hello Matthias, thanks for you help. after giving the CPU core number, i got this. can you give me a solution for this?? will be very grateful....
Screenshot from 2020-01-11 03-56-57.png

Krack Matthias (PSI)

unread,
Jan 10, 2020, 5:52:10 PM1/10/20
to cp...@googlegroups.com

Hi

 

Did you run the make command in the folder cp2k where the CP2K makefile is located?

 

Matthias

Zubair Al Ebad

unread,
Jan 10, 2020, 6:36:02 PM1/10/20
to cp...@googlegroups.com
hello again Matthias....
no i didn't do that actually. but after doing so, this error is showing-
Screenshot from 2020-01-11 05-33-08.png

Zubair Al Ebad

unread,
Jan 10, 2020, 6:43:37 PM1/10/20
to cp...@googlegroups.com
if you don't understand from the screenshot, would you please give me some time?? i'm a undergrad student and i need to run cp2k for my thesis. Being a newbie, i'm facing trouble at every step you see. I will be very much grateful if you can give me some time on TeamViewer.
I know i'm maybe asking for too much, but this will be very helpful.....!!

and thanks for all these things!! :)

Krack Matthias (PSI)

unread,
Jan 11, 2020, 10:57:39 AM1/11/20
to cp...@googlegroups.com

Hi

 

If you want to install cp2k using the toolchain, then just follow the instructions printed by the toolchain installer script after its successful completion. The arch files generated by the toolchain installer are named “local” (ARCH=local) and these should be used with the toolchain.

If you want to use the Linux-x86-64-gfortran arch file then you should define the path variables therein properly, i.e. the paths should point to the libs required to build cp2k. In that case you have to build these libs yourself somewhere or you have to collect them from a toolchain installation, but in that case, it is better to use the local arch files.

It seems you are using cp2k-6.1. Note, the latest cp2k release is 7.1.

 

Matthias

 

Von: cp...@googlegroups.com <cp...@googlegroups.com> Im Auftrag von Zubair Al Ebad
Gesendet: Samstag, 11. Januar 2020 00:43
An: cp...@googlegroups.com
Betreff: Re: [CP2K:12766] "No rule to make target 'N', stop"

 

if you don't understand from the screenshot, would you please give me some time?? i'm a undergrad student and i need to run cp2k for my thesis. Being a newbie, i'm facing trouble at every step you see. I will be very much grateful if you can give me some time on TeamViewer.

I know i'm maybe asking for too much, but this will be very helpful.....!!

 

and thanks for all these things!! :)

 

 

On Sat, Jan 11, 2020 at 5:35 AM Zubair Al Ebad <zubair....@gmail.com> wrote:

hello again Matthias....

no i didn't do that actually. but after doing so, this error is showing-

Reply all
Reply to author
Forward
0 new messages