# Trouble installing FreeFEM on CentOS 7

**URL:** <https://community.freefem.org/t/trouble-installing-freefem-on-centos-7/2273>\
**Category:** FreeFEM installation\
**Created:** [February 9, 2023, 10:21pm UTC](https://community.freefem.org/t/trouble-installing-freefem-on-centos-7/2273 "2023-02-09T22:21:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![apoorv](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@apoorv](https://community.freefem.org/u/apoorv)\
**Post date:** [February 9, 2023, 10:21pm UTC](https://community.freefem.org/t/trouble-installing-freefem-on-centos-7/2273/1 "2023-02-09T22:21:49Z")

</div>

Hi,

I’m trying to compile and install FreeFEM++ on a remote centOS 7-based cluster. I am following the instructions from ([this page](https://doc.freefem.org/introduction/installation.html#compiling-source-code)) under the “compilation on Ubuntu” section.

Following this, at step 4, I get the following message

 ![Warnigns at step 4](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/2/274daff38895e5404dfe64815b4b3589540a3611.png)

Following this, when I proceed to step 5, I get

 ![Errors at Step 5](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/7/7257b14bb16f9d7ee0c8b68ab97fb40ee85e0f53.png)

and at step 6, with `make petsc-slepc`

 ![Errors at step 6](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/0/09b9aa5ccad5ac64886ad4180dccda843701fab3.png)

Kindly help me in fixing this.

Thanks

---

<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:** [February 10, 2023, 6:37am UTC](https://community.freefem.org/t/trouble-installing-freefem-on-centos-7/2273/2 "2023-02-10T06:37:11Z")

</div>

There is a problem with your firewall.

```auto
$ rm -rf 3rdparty/ff-petsc/petsc-3.*
$ cd 3rdparty/pkg
$ rm -rf petsc*tar.gz
$ wget https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.18.2.tar.gz
$ cd ../ff-petsc
$ make petsc-slepc

```

If the `wget` command does not work, download the `.tar.gz` by hand.

---

<div class="post-metadata">

**Author:** ![apoorv](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@apoorv](https://community.freefem.org/u/apoorv)\
**Post date:** [February 12, 2023, 9:39pm UTC](https://community.freefem.org/t/trouble-installing-freefem-on-centos-7/2273/3 "2023-02-12T21:39:32Z")

</div>

Hi, Thank you for your response. I had to manually download`.tar.gz` and I was able to proceed. However, moving forward, on executing `make petsc-slepc` command, I encounter the following error

 ![make petsc-slepc error](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/1/19e6b6cd14fc10bad6d3b7002d8c084c018cdbba.png)

I tried looking up the problem on the FAQ-PETSc page but was not able to identify the exact problem. If you have any pointers on this, that’ll be of great help.

Thanks

---

<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:** [February 13, 2023, 5:13am UTC](https://community.freefem.org/t/trouble-installing-freefem-on-centos-7/2273/4 "2023-02-13T05:13:59Z")

</div>

It appears your MPI installation is broken. Can you run a single non-PETSc program with it? See also [New MPI error with Intel 2019.1, unable to run MPI hello world - Intel Communities](https://community.intel.com/t5/Intel-oneAPI-HPC-Toolkit/New-MPI-error-with-Intel-2019-1-unable-to-run-MPI-hello-world/td-p/1158382)

---

<div class="post-metadata">

**Author:** ![apoorv](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@apoorv](https://community.freefem.org/u/apoorv)\
**Post date:** [February 14, 2023, 3:40am UTC](https://community.freefem.org/t/trouble-installing-freefem-on-centos-7/2273/5 "2023-02-14T03:40:41Z")

</div>

I see. I’ll try to get in touch with the admin to see what can be done. Thank you very much for your quick response.
