0

Trying to install fftw to use GADGET2, and after running the following command:

./configure --enable-mpi --enable-type-prefix --enable-float

I get the message:

checking for mpicc... mpicc
checking for MPI_Init... no
checking for MPI_Init in -lmpi... no
checking for MPI_Init in -lmpich... no
configure: error: couldn't find mpi library for --enable-mpi

Now I have installed openMPI already, so it seems to be the case that it just can't find it. There was a similar question posted a while ago with different mpi software. I think the problem is that my openMPI and other compilers might be in different folders? This brings me to a more general question (I have tried googling this but can't find anything that explains it well):

If I extract a tar and use ./configure without any prefix, where will the program install to? And is this is an issue that my openMPI has for some reason installed to a different place?

Thanks!

edit: found a solution for this from this question, where just running

sudo ldconfig

seemed to fix it and now it compiles fine.

Plaetean
  • 163
  • 2
  • 12

0 Answers0