Compile LIGGGHTS failed

Submitted by pipegaldames on Mon, 02/24/2014 - 20:05

Hi everyone,

I tried the installation of new version CFDEMcoupling 2.6.0 released, and when I try to compile LIGGGHTS with "cfdemCompLIG", appears next message:

The Open MPI wrapper compiler was unable to find the specified compiler
no in your PATH.

Note that this compiler was either specified at configure time or in
one of several possible environment variables.

--------------------------------

Finally appears error messages and the compilation failed. Any help for fix this problem?

Regards,
Felipe.

pipegaldames | Tue, 02/25/2014 - 05:30

Yes, I installed g++.

g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.

pipegaldames | Tue, 02/25/2014 - 17:12

When I type "mpic++" in console the same message appears:

The Open MPI wrapper compiler was unable to find the specified compiler
no in your PATH.

Note that this compiler was either specified at configure time or in
one of several possible environment variables.

Any help ?

Regards

pipegaldames | Tue, 02/25/2014 - 19:25

I modified in archive bashrc inside OpenFOAM/OpenFOAM-2.3.x/etc the next line:

"export WM_MPLIB=OPENMPI " by this

export WM_MPLIB=MPI

With this change, the compilation of LIGGGHTS works correctly.

Now my problem is for compile CFDEM through comand "cfdemCompCFDEM", in the end of console appears the next:

/home/pipegaldames/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/lnInclude/cfdemCloud.H:73:7: error: forward declaration of ‘struct Foam::meshMotionModel’
make: *** [Make/linux64GccDPOpt/cfdemPostproc.o] Error 1
Note: the list of utilities compiled might be incomplete.
please check /home/pipegaldames/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/utilities for more utilities available

------------------------

What can be problem? . Any help is appreciated.
Regards,
Felipe

eddie | Wed, 03/30/2016 - 21:22

I had this problem before. it seems openmpi's mpicxx is disabled when compiling this package.
I made following changes, and the problem was gone.

go to $WM_THIRD_PARTY_DIR and find Allwmake.
locate "OPENMPI" and find the line with "./configure --prefix=.....--disable-mpi-cxx ..."
apparently, mpicxx is not complied.
make changes to "--enable-mpi-cxx" or simply remove it.

then, run "./Allwmake", if openmpi is successfully installed, then that problem should be gone.

Research Assistant,
Mechanical and Aerospace Engineering,
University of Missouri - Columbia, USA

RjwV | Fri, 03/14/2014 - 15:04

I believe you are using OpenFOAM version 2.3.0?

CFDEM is only compatible with OpenFOAM 2.2.1 and earlier versions as far as I know. I think it's best if you install the OF version I just mentioned or an older one if you prefer, and try the procedure again. It should work then.

Kind regards.

pipegaldames | Sun, 03/23/2014 - 00:17

Very Thanks, I tried with OpenFOAM version 2.3.0 , then using 2.2.1 version compilation works fine.

Regards

cgoniva's picture

cgoniva | Wed, 08/20/2014 - 10:05

Dear cfdsam,

I usually follow this procedure:
Install OpenFOAM(R) 2.3.x (the github version), using the SYSTEMMPI setting in OpenFOAM(R)'s .../etc/bashrc

then compile CFDEM(R)coupling and check with cfdemSysTest if all necessary mpi libraries (e.g. mpic++) are available

All programs, OpenFOAM(R), LIGGGHTS(R) and CFDEM(R)coupling are then compiled with the same mpi, which is crutual.

Cheers,
Chris