CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] OpenFOAM 5 source pack installation on Ubuntu 16.04

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2018, 22:35
Default OpenFOAM 5 source pack installation on Ubuntu 16.04
  #1
New Member
 
jingjing cao
Join Date: Dec 2013
Posts: 15
Rep Power: 12
CjjJoy is on a distinguished road
Hello FOAMers,
I tried to install the source pack in the first place ,but failed. Later I used the method in the following link, and it worked out.
https://openfoam.org/download/5-0-ubuntu/

Now I try to change the cloud type from reactingCloud to sprayCloud in the reactingParcelFilmFoam to build a new solver, following errors appeared,there error messages appeared before in the source pack installation:

-lm -o /opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/sprayFilmFoam
/opt/openfoam5/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_comm_null'
/opt/openfoam5/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_group_null'
/opt/openfoam5/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_byte'
/opt/openfoam5/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_double'
/opt/openfoam5/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_op_min'
/opt/openfoam5/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_comm_world'
/opt/openfoam5/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `ompi_mpi_op_sum'
collect2: error: ld returned 1 exit status
/opt/openfoam5/wmake/makefiles/general:140: recipe for target '/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/sprayFilmFoam' failed
make: *** [/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/sprayFilmFoam] Error 1

Could anyone help me with this? Thank you very much.
CjjJoy is offline   Reply With Quote

Old   January 4, 2018, 19:06
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I suspect that the problem has to do with the default version of MPI that is defined in your Ubuntu installation. That would also explain why you were not able to install from source code.

In order to have the correct MPI version being used for the Deb package of OpenFOAM, run the following command:
Code:
sudo update-alternatives --set mpi /usr/lib/openmpi/include
The command above is from one of the solutions given in the "Installation Problems" section on that page: https://openfoam.org/download/5-0-ub...ation-problems
__________________
wyldckat is offline   Reply With Quote

Old   January 5, 2018, 06:16
Default
  #3
New Member
 
jingjing cao
Join Date: Dec 2013
Posts: 15
Rep Power: 12
CjjJoy is on a distinguished road
Thanks Bruno, based on the suggestion on the website
I check whether MPICH is installed by
Code:
 sudo update-alternatives --list mpi
and it returns:
Code:
/usr/include/mpich
/usr/lib/openmpi/include
if I use
Code:
sudo update-alternatives --set mpi /usr/lib/openmpi/include
still get the same results, and the solver still can not be correct complied.
Do you have any more suggetion?


Quote:
Originally Posted by wyldckat View Post
Quick answer: I suspect that the problem has to do with the default version of MPI that is defined in your Ubuntu installation. That would also explain why you were not able to install from source code.

In order to have the correct MPI version being used for the Deb package of OpenFOAM, run the following command:
Code:
sudo update-alternatives --set mpi /usr/lib/openmpi/include
The command above is from one of the solutions given in the "Installation Problems" section on that page: https://openfoam.org/download/5-0-ub...ation-problems
CjjJoy is offline   Reply With Quote

Old   January 5, 2018, 09:37
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I forgot to mention that it would be preferable to start a new terminal after that, so that it would refresh the shell environment. Don't forget to activate OpenFOAM's shell environment as well, in case it's not done automatically:
Code:
source /opt/openfoam5/etc/bashrc
You can check which MPI version you have currently loaded in by running:
Code:
mpirun --version
readlink -f $(which mpirun)
The second command will try to should where exactly mpirun is installed.

This is so that we can confirm if the correct version and location is being used.
wyldckat is offline   Reply With Quote

Old   January 8, 2018, 21:07
Default
  #5
New Member
 
jingjing cao
Join Date: Dec 2013
Posts: 15
Rep Power: 12
CjjJoy is on a distinguished road
Thanks, Bruno

Based on your suggestion, I opened a new terminal, sourced the $FOAM_ETC/bashrc and type the following

Code:
mpirun --version
mpirun (Open MPI) 1.10.2
Code:
readlink -f $(which mpirun)
/usr/bin/orterun
Code:
which mpirun
/usr/bin/mpirun
I am a little confused about the different results between readlink -f $(which mpirun) and
which mpirun. Is this corrected installed or not? If not, how to point to the right folder?

and then I type
Code:
 sudo update-alternatives --list mpi
and it returns:
Code:
/usr/include/mpich
/usr/lib/openmpi/include
sudo update-alternatives --set mpi /usr/lib/openmpi/include
then I open a new terminal, source the $FOAM_ETC/bashrc file, the application still can not be compiled.

Any idea about this?



Quote:
Originally Posted by wyldckat View Post
Quick answer: I forgot to mention that it would be preferable to start a new terminal after that, so that it would refresh the shell environment. Don't forget to activate OpenFOAM's shell environment as well, in case it's not done automatically:
Code:
source /opt/openfoam5/etc/bashrc
You can check which MPI version you have currently loaded in by running:
Code:
mpirun --version
readlink -f $(which mpirun)
The second command will try to should where exactly mpirun is installed.

This is so that we can confirm if the correct version and location is being used.
CjjJoy is offline   Reply With Quote

Old   January 9, 2018, 17:57
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
  1. "orterun" is one of the names used by Open-MPI, while "mpirun" is a more common name among MPI toolboxes.
  2. "readlink" is telling us that "mpirun" is just a symbolic link to "orterun".
  3. When in doubt, use the full list command "ls -l", like this:
    Code:
    ls -l $(which mpirun)
  4. I need to see the complete output for when you try to build the custom solver. You can send the complete output by running the following command within the source code folder for that solver:
    Code:
    wmake > log.make 2>&1
    1. You may want to edit the file "log.make" and search+replace any sensitive information names.
    2. Then you can compress the file by running:
      Code:
      gzip < log.make > log.make.gz
    3. Then attach the file "log.make.gz" to your next post.
    Hopefully having this complete output will tell us the whole story of what and where it's looking for the MPI library that is missing.
wyldckat is offline   Reply With Quote

Old   January 10, 2018, 06:02
Default
  #7
New Member
 
jingjing cao
Join Date: Dec 2013
Posts: 15
Rep Power: 12
CjjJoy is on a distinguished road
Thanks Bruno,
Code:
 ls -l $(which mpirun)
lrwxrwxrwx 1 root root 24 4月   5  2017 /usr/bin/mpirun -> /etc/alternatives/mpirun
Attached is the log file you mentioned, hope it could help out.


Quote:
Originally Posted by wyldckat View Post
Quick answers:
  1. "orterun" is one of the names used by Open-MPI, while "mpirun" is a more common name among MPI toolboxes.
  2. "readlink" is telling us that "mpirun" is just a symbolic link to "orterun".
  3. When in doubt, use the full list command "ls -l", like this:
    Code:
    ls -l $(which mpirun)
  4. I need to see the complete output for when you try to build the custom solver. You can send the complete output by running the following command within the source code folder for that solver:
    Code:
    wmake > log.make 2>&1
    1. You may want to edit the file "log.make" and search+replace any sensitive information names.
    2. Then you can compress the file by running:
      Code:
      gzip < log.make > log.make.gz
    3. Then attach the file "log.make.gz" to your next post.
    Hopefully having this complete output will tell us the whole story of what and where it's looking for the MPI library that is missing.
Attached Files
File Type: gz log.make.gz (857 Bytes, 4 views)
CjjJoy is offline   Reply With Quote

Old   January 14, 2018, 13:11
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I've finally managed to take a quick look into this. Something seems to be misplaced in your Ubuntu and/or OpenFOAM installation.
Hopefully the following commands will help us diagnose the issue further:
  1. The following commands should help confirm if the correct environment path is being used:
    Code:
    echo $FOAM_MPI
    echo $MPI_ARCH_PATH
  2. This command should help diagnose if all of the correct libraries are available for "libPstream.so":
    Code:
    ldd $FOAM_LIBBIN/openmpi-system/libPstream.so
    It should give the following output:
    Code:
        linux-vdso.so.1 =>  (0x00007ffe67f0c000)
        libmpi.so.12 => /usr/lib/libmpi.so.12 (0x00007f93cbe72000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f93cbaea000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f93cb7da000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f93cb5c2000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f93cb3a2000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f93cafd2000)
        libibverbs.so.1 => /usr/lib/libibverbs.so.1 (0x00007f93cadc2000)
        libopen-rte.so.12 => /usr/lib/libopen-rte.so.12 (0x00007f93cab42000)
        libopen-pal.so.13 => /usr/lib/libopen-pal.so.13 (0x00007f93ca8a2000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f93cc35a000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f93ca69a000)
        libhwloc.so.5 => /usr/lib/x86_64-linux-gnu/libhwloc.so.5 (0x00007f93ca45a000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f93ca252000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f93ca04a000)
        libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f93c9e3a000)
        libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f93c9c2a000)
  3. It's possible that GNU LD Gold is being used by default, which would explain the problem, so please run the following commands to see which one it's using by default:
    Code:
    ls -l /usr/bin/ld*
    ls -l /usr/bin/x86_64-linux-gnu-ld*
wyldckat is offline   Reply With Quote

Old   January 15, 2018, 06:04
Default
  #9
New Member
 
jingjing cao
Join Date: Dec 2013
Posts: 15
Rep Power: 12
CjjJoy is on a distinguished road
Hello, Bruno
Thank you very much for your time and help on fixing this problem.
It seems the libPsteam.so is not corrected installed.
Code:
echo $FOAM_MPI
openmpi-system

echo $MPI_ARCH_PATH
/usr/lib/openmpi
Code:
ldd $FOAM_LIBBIN/openmpi-system/libPsteam.so
ldd: /opt/openfoam5/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPsteam.so: No such file or directory
Code:
 ls -l /usr/bin/ld*
lrwxrwxrwx 1 root root   19 8月   7  2016 /usr/bin/ld -> x86_64-linux-gnu-ld
lrwxrwxrwx 1 root root   23 8月   7  2016 /usr/bin/ld.bfd -> x86_64-linux-gnu-ld.bfd
-rwxr-xr-x 1 root root 5420 6月  17  2017 /usr/bin/ldd
lrwxrwxrwx 1 root root   24 8月   7  2016 /usr/bin/ld.gold -> x86_64-linux-gnu-ld.gold
Code:
 ls -l /usr/bin/x86_64-linux-gnu-ld*
lrwxrwxrwx 1 root root       6 8月   7  2016 /usr/bin/x86_64-linux-gnu-ld -> ld.bfd
-rwxr-xr-x 1 root root 1220040 8月   7  2016 /usr/bin/x86_64-linux-gnu-ld.bfd
-rwxr-xr-x 1 root root 2912776 8月   7  2016 /usr/bin/x86_64-linux-gnu-ld.gold
Do you know how to fix this?

Thank you very much.
CjjJoy is offline   Reply With Quote

Old   January 15, 2018, 06:09
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick note: There is an 'r' missing when you wrote "libPsteam", it should be "libPstream", like this:
Code:
ldd $FOAM_LIBBIN/openmpi-system/libPstream.so
wyldckat is offline   Reply With Quote

Old   January 16, 2018, 03:55
Default
  #11
New Member
 
jingjing cao
Join Date: Dec 2013
Posts: 15
Rep Power: 12
CjjJoy is on a distinguished road
sorry about that, the actual results should be

Code:
	linux-vdso.so.1 =>  (0x00007ffda3176000)
	libmpi.so.12 => /usr/lib/libmpi.so.12 (0x00007fda2f930000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fda2f5ae000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fda2f2a5000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fda2f08f000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fda2ee72000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fda2eaa8000)
	libibverbs.so.1 => /usr/lib/libibverbs.so.1 (0x00007fda2e899000)
	libopen-rte.so.12 => /usr/lib/libopen-rte.so.12 (0x00007fda2e61f000)
	libopen-pal.so.13 => /usr/lib/libopen-pal.so.13 (0x00007fda2e382000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fda2fe16000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fda2e17e000)
	libhwloc.so.5 => /usr/lib/x86_64-linux-gnu/libhwloc.so.5 (0x00007fda2df44000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fda2dd3c000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fda2db39000)
	libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007fda2d92e000)
	libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007fda2d724000)
It seems to be the same with your results.Do you have any idea?


Quote:
Originally Posted by wyldckat View Post
Quick note: There is an 'r' missing when you wrote "libPsteam", it should be "libPstream", like this:
Code:
ldd $FOAM_LIBBIN/openmpi-system/libPstream.so
CjjJoy is offline   Reply With Quote

Old   March 4, 2018, 16:36
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
My apologies, but I haven't had time to look into this since we last exchanged messages.
Have you managed to solve this problem?
wyldckat is offline   Reply With Quote

Old   June 1, 2018, 08:18
Default
  #13
New Member
 
Abilash Ananthula
Join Date: Sep 2017
Posts: 9
Rep Power: 9
abilash is on a distinguished road
Hello Bruno,


I am facing the similar problem in 'libPstream.so' related to mpi. Will you please let me know the solution for it. Thanks.
abilash is offline   Reply With Quote

Old   June 1, 2018, 14:57
Default
  #14
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by abilash View Post
I am facing the similar problem in 'libPstream.so' related to mpi. Will you please let me know the solution for it. Thanks.
Quick request: Please provide more details, namely:
  1. Which Linux Distribution you are using?
  2. Which OpenFOAM version you are using?
  3. Which installation instructions did you follow?
__________________
wyldckat is offline   Reply With Quote

Old   June 1, 2018, 16:35
Default
  #15
New Member
 
Abilash Ananthula
Join Date: Sep 2017
Posts: 9
Rep Power: 9
abilash is on a distinguished road
Hi Bruno,



Thanks for the reply. I am installing OpenFoam 4.1 on Ubuntu 16.04 following the instructions at https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04


My HPC system is shared by other users and has MPI installations like MPICH, along with open mpi.
abilash is offline   Reply With Quote

Old   June 1, 2018, 17:39
Default
  #16
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Abilash,

I was too much in a hurry and forgot to ask: Please provide the complete output that gave you the message about "libPstream.so".

Quote:
Originally Posted by abilash View Post
My HPC system is shared by other users and has MPI installations like MPICH, along with open mpi.
This raises another question: How are you choosing which MPI toolbox to use, if there are several installed?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 1, 2018, 23:37
Default
  #17
New Member
 
Abilash Ananthula
Join Date: Sep 2017
Posts: 9
Rep Power: 9
abilash is on a distinguished road
Bruno,


Please find the attached log file generated. I am using the following symbolic links described in the installation procedure to link open mpi to OpenFoam.


ln -s /usr/bin/mpicc.openmpi OpenFOAM-4.1/bin/mpicc
ln -s /usr/bin/mpirun.openmpi OpenFOAM-4.1/bin/mpirun

I checked the commands that were mentioned in the post to verify the proper implementation of MPI and the output seemed to be okay.

Code:
root@admin-pc:~# of41
root@admin-pc:~# echo $WM_MPLIB
SYSTEMOPENMPI
root@admin-pc:~# echo $MPI_ARCH_PATH
/usr/lib/openmpi
root@admin-pc:~# ls -l $(which mpirun)
lrwxrwxrwx 1 root root 23 May 31 12:32 /home/administrator/OpenFOAM/OpenFOAM-4.1/bin/mpirun -> /usr/bin/mpirun.openmpi
root@admin-pc:~# ldd $FOAM_LIBBIN/openmpi-system/libPstream.so
    linux-vdso.so.1 =>  (0x00007fff3c76d000)
    libmpi.so.12 => /usr/local/lib/libmpi.so.12 (0x00007fdd97dfa000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fdd97a78000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fdd9776f000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fdd97559000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fdd9733c000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdd96f72000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fdd96d6a000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fdd9849e000)
Attached Files
File Type: gz log.make.tar.gz (9.4 KB, 1 views)
abilash is offline   Reply With Quote

Old   June 5, 2018, 07:02
Default
  #18
New Member
 
Abilash Ananthula
Join Date: Sep 2017
Posts: 9
Rep Power: 9
abilash is on a distinguished road
Hi Bruno,

Please let me know if it is possible to solve this installation problem.


Thanks

Abilash
abilash is offline   Reply With Quote

Old   June 5, 2018, 10:48
Default
  #19
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer:

Quote:
Originally Posted by abilash View Post

Code:
root@admin-pc:~# ls -l $(which mpirun)
lrwxrwxrwx 1 root root 23 May 31 12:32 /home/administrator/OpenFOAM/OpenFOAM-4.1/bin/mpirun -> /usr/bin/mpirun.openmpi
root@admin-pc:~# ldd $FOAM_LIBBIN/openmpi-system/libPstream.so
    linux-vdso.so.1 =>  (0x00007fff3c76d000)
    libmpi.so.12 => /usr/local/lib/libmpi.so.12 (0x00007fdd97dfa000)
The last line here implies that the MPI toolbox being used is not the system's own OpenMPI toolbox. This is why you are having problems compiling anything else.


There are two possible approaches that I can't go into much detail:
  1. First approach is to remove the symbolic links:
    Code:
    rm OpenFOAM-4.1/bin/mpicc OpenFOAM-4.1/bin/mpirun
    then start a new terminal, run of41 to activate the OpenFOAM 4.1 shell environment, then rebuild the "Pstream" folder:
    Code:
    foam
    wclean all src/Pstream
    wmake all src/Pstream
    and hope it works. This is assuming that some version of Open-MPI is also the toolbox installed at "/usr/local", for which you should double-check by running on this new terminal:
    Code:
    which mpirun
    mpirun --version
    which mpiexec
    mpiexec --version
  2. The second approach is to remove any entries with "/usr/local" from the environment variables "PATH" and "LD_LIBRARY_PATH", then check what the "ldd" check gives you:
    Code:
    ldd $FOAM_LIBBIN/openmpi-system/libPstream.so
    although this may still require you to rebuild the "Pstream" folder.
__________________
wyldckat is offline   Reply With Quote

Old   June 5, 2018, 12:15
Default
  #20
New Member
 
Abilash Ananthula
Join Date: Sep 2017
Posts: 9
Rep Power: 9
abilash is on a distinguished road
Hi Bruno,


Thanks for the help. After following the steps, I am having this output. Although the I am successful in rebuilding the "Pstream" folder, I suppose the installation is incomplete as it is showing error when I tried to activate the OpenFoam shell environment with "of41".


Code:
root@admin-pc:~/OpenFOAM/OpenFOAM-4.1# of41
gcc: error: unrecognized command line option ‘--showme:link’
root@admin-pc:~/OpenFOAM/OpenFOAM-4.1# foam
root@admin-pc:~/OpenFOAM/OpenFOAM-4.1# wclean all src/Pstream
wclean src/Pstream
./dummy
wclean ./dummy
/home/administrator/OpenFOAM/OpenFOAM-4.1/src/Pstream/dummy
./mpi
wclean ./mpi
/home/administrator/OpenFOAM/OpenFOAM-4.1/src/Pstream/mpi
root@admin-pc:~/OpenFOAM/OpenFOAM-4.1# wmake all src/Pstream
+ wmake libso dummy
/home/administrator/OpenFOAM/OpenFOAM-4.1/src/Pstream/dummy
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file UOPwrite.C
Making dependency list for source file UIPread.C
Making dependency list for source file UPstream.C
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100  -IlnInclude -I. -I/home/administrator/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/administrator/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c UPstream.C -o /home/administrator/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/src/Pstream/dummy/UPstream.o
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100  -IlnInclude -I. -I/home/administrator/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/administrator/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c UIPread.C -o /home/administrator/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/src/Pstream/dummy/UIPread.o
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100  -IlnInclude -I. -I/home/administrator/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/administrator/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c UOPwrite.C -o /home/administrator/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/src/Pstream/dummy/UOPwrite.o
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100  -IlnInclude -I. -I/home/administrator/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/administrator/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed /home/administrator/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/src/Pstream/dummy/UPstream.o /home/administrator/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/src/Pstream/dummy/UIPread.o /home/administrator/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/src/Pstream/dummy/UOPwrite.o -L/home/administrator/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/lib \
      -o /home/administrator/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/lib/dummy/libPstream.so
'/home/administrator/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/lib/dummy/libPstream.so' is up to date.
+ set +x
wmake libso mpi
/home/administrator/OpenFOAM/OpenFOAM-4.1/src/Pstream/mpi
wmakeLnInclude: linking include files to ./lnInclude
'/home/administrator/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/lib/openmpi-system/libPstream.so' is up to date.
Checking the version of Open-MPI toolbox resulted in following output.


Code:
root@admin-pc:~/OpenFOAM/OpenFOAM-4.1# which mpirun
/usr/local/bin/mpirun
root@admin-pc:~/OpenFOAM/OpenFOAM-4.1# mpirun --version
HYDRA build details:
    Version:                                 3.2
    Release Date:                            Wed Nov 11 22:06:48 CST 2015
    CC:                              gcc    
    CXX:                             g++    
    F77:                             gfortran   
    F90:                             gfortran   
    Configure options:                       '--disable-option-checking' '--prefix=NONE' '--cache-file=/dev/null' '--srcdir=.' 'CC=gcc' 'CFLAGS= -O2' 'LDFLAGS=' 'LIBS=-lpthread ' 'CPPFLAGS= -I/home/administrator/Downloads/libraries/mpich-3.2/src/mpl/include -I/home/administrator/Downloads/libraries/mpich-3.2/src/mpl/include -I/home/administrator/Downloads/libraries/mpich-3.2/src/openpa/src -I/home/administrator/Downloads/libraries/mpich-3.2/src/openpa/src -D_REENTRANT -I/home/administrator/Downloads/libraries/mpich-3.2/src/mpi/romio/include'
    Process Manager:                         pmi
    Launchers available:                     ssh rsh fork slurm ll lsf sge manual persist
    Topology libraries available:            hwloc
    Resource management kernels available:   user slurm ll lsf sge pbs cobalt
    Checkpointing libraries available:       
    Demux engines available:                 poll select
root@admin-pc:~/OpenFOAM/OpenFOAM-4.1# which mpiexec
/usr/local/bin/mpiexec
root@admin-pc:~/OpenFOAM/OpenFOAM-4.1# mpiexec --version
HYDRA build details:
    Version:                                 3.2
    Release Date:                            Wed Nov 11 22:06:48 CST 2015
    CC:                              gcc    
    CXX:                             g++    
    F77:                             gfortran   
    F90:                             gfortran   
    Configure options:                       '--disable-option-checking' '--prefix=NONE' '--cache-file=/dev/null' '--srcdir=.' 'CC=gcc' 'CFLAGS= -O2' 'LDFLAGS=' 'LIBS=-lpthread ' 'CPPFLAGS= -I/home/administrator/Downloads/libraries/mpich-3.2/src/mpl/include -I/home/administrator/Downloads/libraries/mpich-3.2/src/mpl/include -I/home/administrator/Downloads/libraries/mpich-3.2/src/openpa/src -I/home/administrator/Downloads/libraries/mpich-3.2/src/openpa/src -D_REENTRANT -I/home/administrator/Downloads/libraries/mpich-3.2/src/mpi/romio/include'
    Process Manager:                         pmi
    Launchers available:                     ssh rsh fork slurm ll lsf sge manual persist
    Topology libraries available:            hwloc
    Resource management kernels available:   user slurm ll lsf sge pbs cobalt
    Checkpointing libraries available:       
    Demux engines available:                 poll select
In the new terminal I tried to see if the installation is complete, the following is the output. Please let me know if there is any solution for this.


Code:
administrator@admin-pc:~$ of41
gcc: error: unrecognized command line option ‘--showme:link’
administrator@admin-pc:~$ blockMesh
blockMesh: command not found


Thanks


Abilash
abilash is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 17:18
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux Indrajit OpenFOAM Installation 1 April 1, 2012 05:39


All times are GMT -4. The time now is 20:19.