Error parsing data file mpic++: Not found

Submitted by ghaffari_ali on Sun, 09/09/2012 - 09:35

Hi
I have tryed to install CFDEMcoupling and LIGGGHTS according to procidure in "githubAccess_public.pdf" . But when I check the settings by typing "cfdemSysTest" in terminal, Results printed as:

*******************
system settings:
*******************
CFDEM_VERSION=PUBLIC
couple to OF_VERSION=2.1.x

check if paths are set correctly
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /root/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /root/CFDEM/CFDEMcoupling-PUBLIC-2.1.x
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /root/CFDEM/root-PUBLIC-2.1.x
valid:yes critical:yes - $CFDEM_SRC_DIR = /root/CFDEM/CFDEMcoupling-PUBLIC-2.1.x/src/lagrangian/cfdemParticle
valid:NO critical:yes - $CFDEM_LPP_DIR = /root/LIGGGHTS/mylpp/src does not exist
valid:NO critical:no - $CFDEM_PIZZA_DIR = /root/LIGGGHTS/PIZZA/gran_pizza_17Aug10/src does not exist
valid:yes critical:no - $CFDEM_TEST_HARNESS_PATH = /root/CFDEM/root-PUBLIC-2.1.x/log/logFilesCFDEM-PUBLIC-2.1.x

library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_fedora_fpic
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-2.1.x
$LD_LIBRARY_PATH = /root/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/lib/paraview-3.12:/root/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3:/root/OpenFOAM/ThirdParty-2.1.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3:/root/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/openmpi-1.5.3/lib:/root/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/openmpi-1.5.3/lib64:/root/OpenFOAM/root-2.1.x/platforms/linux64GccDPOpt/lib:/root/OpenFOAM/site/2.1.x/platforms/linux64GccDPOpt/lib:/root/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib:/root/OpenFOAM/ThirdParty-2.1.x/platforms/linux64GccDPOpt/lib:/root/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/dummy
*******************
g++:
/usr/bin/g++
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gcc:
/usr/bin/gcc
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mpic++:
/usr/bin/mpic++
Cannot open configuration file /root/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/openmpi-1.5.3/share/openmpi/mpic++-wrapper-data.txt
Error parsing data file mpic++: Not found

just an error in mpic++!!!!!!!!. I don't know it's reason. any suggestions are appreciated.
Regards

Mallin | Sun, 09/09/2012 - 11:49

Hi, Ali
First of all, according to your pathes, you decided to install and compile as root. Well, this is usually not a good idea; you would better do it under user account.
Now, according to mpic++ problem. As you can see from the error description, compiler is looking for openMPI files in OpenFOAM diirectory. It means that OpenMPI had to be built when installind OpenFOAM, and maybe something went wrong.
From my experince, the much better option for newcomer is to install both OpenMPI and ParaView as packages, and not to compile them in OpenFOAM/ThirdParty directory.
So, try this: install OpenMPI and OpenMPI-devel packages
"sudo apt-get install libopenmpi-dev" if you use Ubuntu, or
"sudo yum install openmpi openmpi-devel" for Fedora. When installation is complete, run the command "which mpirun" and watch what it says. For some reason, on my Fedora 17 the usual PATH was not enough to run it, and I had to add "module load openmpi-x86_64" to my .bashrc file. May be you'll also have to do it
Andrew

ghaffari_ali | Sun, 09/09/2012 - 12:37

Hi Andrew
thanks for your attention and reply. I typed your recommended command:"sudo apt-get install libopenmpi-dev". But it seems that there is no problem because it's result is:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libopenmpi-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.

furthuremore there is no problem in my OpenFOAM and it works well for tutorials. is there any othere probable problem? However I'm sure that your experiance will be so helpful for me.
Regards

Mallin | Sun, 09/09/2012 - 17:36

What about "which mpirun"? If it results in something like "command not found", then OpenMPI wasn't set up correctly.

Mallin | Tue, 09/11/2012 - 08:54

Hm, it's kinda weird. Normally, there are two possible results after you enter command "which mpirun" in terminal:
a) if openMPI is set correctly, the path to openMPI is printed, something like "/usr/lib/openmpi/bin/mpirun"
b) if it's not, the massage is "no mpirun in" and the list of posiible destinations where terminal is looking for OpenMPI follows.
So, try again
(as a clarification, open terminal, enter
which mpirun
press enter)
Andrew

alice's picture

alice | Mon, 09/17/2012 - 13:38

Hello,
no message means that the word "mpirun" is in your case not referring to any command or executable, meaning no symbolic link of that name exists. (Just an example: If you e.g. enter "which mkdir" you should receive "/bin/mkdir" as response, i.e. the absolute path of the command "mkdir") . mpirun is located in the ThirdParty of OpenFOAM, so are you sure that you built the mpi-stuff there?
Cheers,
Alice

ghaffari_ali | Mon, 09/17/2012 - 16:07

Hi Alice
thanks for your reply. I could solve this problem by executing ALLMAKE file in ThirdParty top directory.
Regards

Ali