CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM installation on Fedora 18 (http://www.cfd-online.com/Forums/openfoam-installation/113721-openfoam-installation-fedora-18-a.html)

sd55 February 25, 2013 13:49

OpenFOAM installation on Fedora 18
 
Has anyone installed OpenFOAM on Fedora 18. I am getting ERROR message: libmpi.so.1: cannot open object file: No such file or directory. :-(

wyldckat February 25, 2013 18:16

Greetings Suhdakar and welcome to the forum!

You didn't mention which installation instructions you've followed. Have you tried these? http://openfoamwiki.net/index.php/In...M-2.1.1/Fedora

Best regards,
Bruno

sd55 February 27, 2013 12:06

Thanks a lot. I had a jolly good OpenFOAM working in Fedora 17. The I decided to switch over on Fedora 18. During re-load it did not work ! :-( Now instead of x86_64 versions of RPM files I have i-686 versions of every thing. OpenFOAM is OK with x86_64 but to my guess not with Fedora - 18, i-686 kinf of stuff.

wyldckat February 27, 2013 13:54

Have you tried the instructions from the previous link?

sd55 March 29, 2013 05:50

I am facing the same issue, with Fedora 18. It says unable to open modulefile for openmpi-i686. ... and mpicc command not found. :-(

wyldckat March 29, 2013 06:18

Quote:

Originally Posted by sd55 (Post 417144)
I am facing the same issue, with Fedora 18. It says unable to open modulefile for openmpi-i686. ... and mpicc command not found. :-(

Try this:
Code:

module load mpi/openmpi-i386
It's documented here: http://openfoamwiki.net/index.php/In...dora#Fedora_18

nastrandamus April 10, 2013 14:05

Hi guys I have a little problem with final installation of OpenFoam on my Fedora 18. I'm doing all fallow the instruction on http://www.openfoam.org/download/fedora.php
Could anyone show me how to "bashrc" file should looks like after final configuration?. It's main:

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific aliases and functions
module load openmpi-x86_64
source /opt/OpenFOAM-2.2.0/etc/bashrc


correct?
and error in my terminal:

[jed@localhost ~]$ icoFoam -help
icoFoam: error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory



Thanks so much for any help

l_r_mcglashan April 10, 2013 15:39

What did this output:

module available

And what does this output:

module list

wyldckat April 10, 2013 16:12

Greetings to all!

I believe the correct command for Fedora 18 is:
Code:

module load mpi/openmpi-x86_64
It was almost fully answered in my previous post :rolleyes:

@Laurence: Sorry, I haven't managed to report this on bug tracker yet... I've been meaning to do go through the list of Linux Distributions that are at openfoamwiki.net (namely here) and test installing OpenFOAM 2.2 with them all, but I haven't found the time to do it. Hence not having confirmed it and reported it yet.

Best regards,
Bruno

l_r_mcglashan April 10, 2013 17:08

Ok fair enough. I'll double check on my 18 installation at the weekend.

The 'module load' command should fail if the modulefile doesn't exist though, and that's why I asked.

nastrandamus April 11, 2013 08:46

hi l_r_mcglashan
My ansfer:

[jed@localhost ~]$ module available

------------------------ /usr/share/Modules/modulefiles ------------------------
dot module-git module-info modules null use.own

------------------------------- /etc/modulefiles -------------------------------
mpi/openmpi-x86_64
[jed@localhost ~]$ module list
No Modulefiles Currently Loaded.

l_r_mcglashan April 11, 2013 09:01

What does this give:

module load openmpi-x86_64

You need to do:

module load mpi/openmpi-x86_64

Can I also ask if your fedora 18 installation is new, or an upgrade from 17?

nastrandamus April 11, 2013 09:43

It's fresh instalation of Fedora 18.

When i try to load the module, no reaction:

[jed@localhost ~]$ module load mpi/openmpi-x86_64
[jed@localhost ~]$


So, could you paste the correct bashrc file in my case?. And I'm sorry, I'm completly new in Linux.
Thx

l_r_mcglashan April 11, 2013 10:09

What does this give:

module load openmpi-x86_64

What does this give:

module load mpi/openmpi-x86_64
module li

nastrandamus April 12, 2013 12:51

Thank you so much. Everything's working

l_r_mcglashan April 12, 2013 13:15

Could you please answer my questions above so I can be sure of what I need to change in the instructions?

nastrandamus April 13, 2013 09:18

sure, now my bashrc file looks like this:

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific aliases and functions
module load mpi/openmpi-x86_64
source /opt/OpenFOAM-2.2.0/etc/bashrc

wyldckat April 14, 2013 07:48

Greetings to all,

@Tomas: That looks perfect! By the way, it's natural that "module load" doesn't show anything when things work as intended ;) It's when it says something that we have to worry :D

@Laurence: I've done some tests with the virtual machines that I already had from my past installations of OpenFOAM 2.1.1 with Fedora 17 and 18 (both were clean installations). Here are my findings:
  • On the VM with Fedora 17 i386:
    • The list of available modules:
      Code:

      $ module avail

      ------------------------ /usr/share/Modules/modulefiles ------------------------
      dot        module-cvs  module-info modules    null        use.own

      ------------------------------- /etc/modulefiles -------------------------------
      mpi/openmpi-i386 openmpi-i386

    • Finding out where these files came from:
      Code:

      $ yum provides /etc/modulefiles/openmpi-i386

      Loaded plugins: langpacks, presto, refresh-packagekit
      openmpi-1.5.4-5.fc17.1.i686 : Open Message Passing Interface
      Repo        : fedora
      Matched from:
      Filename    : /etc/modulefiles/openmpi-i386

      $ yum provides /etc/modulefiles/mpi/openmpi-i386

      Loaded plugins: langpacks, presto, refresh-packagekit
      openmpi-1.5.4-5.fc17.1.i686 : Open Message Passing Interface
      Repo        : fedora
      Matched from:
      Filename    : /etc/modulefiles/mpi/openmpi-i386

  • On the VM with Fedora x86_64:
    • Modules available:
      Code:

      $ module avail:

      ------------------------ /usr/share/Modules/modulefiles ------------------------
      dot        module-git  module-info modules    null        use.own

      ------------------------------- /etc/modulefiles -------------------------------
      mpi/openmpi-x86_64

    • Checking where the file came from:
      Code:

      $ yum provides /etc/modulefiles/mpi/openmpi-x86_64

      Loaded plugins: langpacks, presto, refresh-packagekit
      openmpi-1.6.3-6.fc18.x86_64 : Open Message Passing Interface
      Repo        : fedora
      Matched from:
      Filename    : /etc/modulefiles/mpi/openmpi-x86_64

Given that you asked about whether if Tomas' Fedora installation was an upgrade, I tested using FedUp (followed this how-to) with my VM that had Fedora 17 i386. After Fedora 17 was updated to 18, it showed the same outputs as the other VM that has Fedora 18 x86_64 (well, similar since i386 vs x86_64).

I've made a quick search and the following page popped up when looking for "Fedora mpi/openmpi": http://fedoraproject.org/wiki/Packaging:MPI
Quote:

The module file MUST be installed under %{_sysconfdir}/modulefiles/mpi/. This allows as user with only one mpi implementation installed to load the module with:
Code:

module load mpi
The module file MUST have the line:
Code:

conflict mpi
to prevent concurrent loading of multiple mpi modules.
If you check the history on this wiki page, you'll find that the new methodology was documented last October.

A bit more searching and I found the associated ticket for this: https://fedorahosted.org/fpc/ticket/229

Best regards,
Bruno

l_r_mcglashan April 14, 2013 15:40

Thanks I've seen all that.

Nice of them to put such a fundamental user interface change in the release notes.


All times are GMT -4. The time now is 08:31.