# Install FreeFem on cluster

**URL:** <https://community.freefem.org/t/install-freefem-on-cluster/1645>\
**Category:** General Discussion\
**Created:** [April 4, 2022, 3:54pm UTC](https://community.freefem.org/t/install-freefem-on-cluster/1645 "2022-04-04T15:54:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yhao](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@yhao](https://community.freefem.org/u/yhao)\
**Post date:** [April 4, 2022, 3:54pm UTC](https://community.freefem.org/t/install-freefem-on-cluster/1645/1 "2022-04-04T15:54:58Z")

</div>

Hi,  
I am trying to install freefem on a cluster but I always meet an error when compiling petsc. It always says there are two errors then the compilation stopped. The error message is like this:

```auto
   [gmakefile:188: arch-FreeFem/obj/vec/is/sf/impls/basic/sfpack.o] Error 1
   [/home/dong/Freefem/petsc/lib/petsc/conf/rules:56: libs] Error 2

```

I also attach the make.log file and configure.log here. Could you help me with it? Thank you!  
[configure.log](https://community.freefem.org/uploads/short-url/ql8o1vtCsTASqV2up45L7nqBywc.log) (3.5 MB)  
[make.log](https://community.freefem.org/uploads/short-url/ia5NHU82rwbvMAuObxD8fnispDb.log) (41.8 KB)

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [April 5, 2022, 4:12am UTC](https://community.freefem.org/t/install-freefem-on-cluster/1645/2 "2022-04-05T04:12:36Z")

</div>

Are you compiling on a login node or on a compute node? This kind of error happens when you are launching too many processes on login nodes, and I see PETSc is compiling the library with 59 processes, so that’s quite a lot. Could you try to add the configuration flag `--with-make-np=20`, reconfigure, and recompile?

---

<div class="post-metadata">

**Author:** ![yhao](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@yhao](https://community.freefem.org/u/yhao)\
**Post date:** [April 5, 2022, 2:12pm UTC](https://community.freefem.org/t/install-freefem-on-cluster/1645/3 "2022-04-05T14:12:08Z")

</div>

Thank you! I tried it out and it is indeed the node problem, the cluster I used by default allocates share node for computing. The error went away when I called for a complete node with `--execlusive`.
