Installation of OpenFOAM 2.3.0 on SSH RHEL 6.2 Santiago
Hi,
I am struggling to install OpenFOAM 2.3.0 on SSH red hat 6.2 and I am uploading this thread with the hope to get some great advice from you experts. (I am completely new to both RHEL and SSH, and I used OF on my laptop couple of times but that's about it) So far, I have been following the installation procedure as explained in the link: http://www.openfoam.org/archive/2.3.0/download/rhel.php The machine belongs to an institution so I doubt I will be able to change the RHEL version. The first two command lines from the link seems to work fine except that I can't install both gcc and openmpi (the output states the following: public key for gcc 4.4.7 not installed, and public key for mpirun (openmpi) 1.5 not installed) From what I've found so far the OF 2.3.0 only works with gcc versions higher than 4.5, so I tried to install higher versions of gcc individually but I failed to do so. I did the same with openmpi but again no luck, although when I check the version of mpirun it does come up (version 1.4.5) so I presumed openmpi was previously installed. Then the rest of the command lines from the link works fine, but I couldn't download the rpm files via terminal using the command lines: sudo rpm -i http://www.openfoam.org/download/rhe...0-1.x86_64.rpm sudo rpm -i http://www.openfoam.org/download/rhe...0-1.x86_64.rpm sudo rpm -i http://www.openfoam.org/download/rhe...0-1.x86_64.rpm the outputs for these commands shows that it failed to transmit files from the url, but when I go to the urls they are fine. I did refer to another link: https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL but it seems to use something called CentOS, and I am not really aware of what it is. I did try to follow the steps, but still no luck. I would greatly appreciate if any of you could be able to give a bit of help to get it installed correctly. Any advice is very welcomed. Thank you kindly. |
Greetings jyang1 and welcome to posting on the forum!
As the wiki page you indicated, it briefly explains: https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL Quote:
Quote:
Code:
sudo rpm -i OpenFOAM-scotch-6.0.0-1.x86_64.rpm If you're able to install the packages stated in step #2, then you can follow the remaining instructions; and whenever it tells you to use "wget" (it's for downloading files from the command line), you should download the file manually. If you cannot install those packages yourself, then ask your systems administrator. If the administrator cannot install those packages, the only other 2 ways that I know of:
Best regards,Bruno |
Update: CentFOAM's wiki is back online: http://centfoam.sourceforge.net/wiki....php/Main_Page
|
Thank you very much for your reply!
My apologies for such a late reply. I had pretty much given up installing it on the workstation without realising you replied to the thread! I managed to install OpenFOAM by manually downloading the rpm files as you mentioned, thank you. The problem I am facing now is that it won't allow me to install openmpi and gcc-gfortran. If I update the packages using Code:
yum groupinstall 'Development Tools' Code:
Downloading Packages: Code:
yum install openmpi Code:
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Same happens with openmpi-devel. I have also installed paraview by manually downloading the rpm file and installing it through terminals (just like OpenFOAM itself). However, whenever I try to use paraFoam, it says: Code:
FATAL ERROR: ParaView reader module libraries do not exist Code:
sudo rpm -i OpenFOAM-ParaView-3.12.0-1.x86_64.rpm Quote:
|
Hi jyang1,
Looks like you need to disable the repository that is giving this problem. It seems that the repository was added when you tried following the instructions for installing in RHEL from source code: http://www.openfoam.org/archive/2.3....oad/source.php Therefore, try running the following commands for disabling the two repositories that were added: Code:
yum-config-manager --disable springdale.princeton.edu\* As for the problem with ParaView, it might because the OpenFOAM shell environment needs to be updated. For example, start a new terminal and run: Code:
source /opt/OpenFOAM-2.3.0/etc/bashrc Bruno |
[/QUOTE]Hi wyldckat,
Thank you for your reply. I've followed your commands and I get the following messages: Code:
[root@nodemaster01 ~]# yum-config-manager --disable springdale.princeton.edu\* Code:
[root@nodemaster01 ~]# sudo yum install 'Development Tools' Code:
[root@nodemaster01 ~]# sudo yum install openmpi openmpi-devel qt zlib-devel cmake Code:
[root@nodemaster01 ~]# mpirun --version When I try to run in parallel, I get the following error message Code:
[root@nodemaster01 trial]# mpirun -np 4 icoFoam Also, regarding paraview, updating the OpenFOAM shell environment doesn't seem to be fixing the problem (or I may be doing it wrong). Your command couldn't find the correct directory, so I changed it a bit, but I am not sure if this is the right directory you intended to update Code:
[root@nodemaster01 ~]# ls What could be causing the problems? Thank you kindly Quote:
|
Hi jyang1,
OK, let's see if I don't get lost in addressing each issue... The first "problem" is that you no longer have any repository enabled for working with yum. Apparently you only had two repositories that were turned on:
Code:
yum groupinstall 'Development Tools' Now, if you were able to install the RPM package "OpenFOAM-2.3.0-1.x86_64.rpm", then that means that OpenFOAM is installed in this folder: Code:
/opt/OpenFOAM-2.3.0 The Open-MPI version 1.6.5 that you have probably is one that is part of the OpenFOAM 2.3.x installation. As to why it's not working... it probably is related to the confusion in the various installed versions of OpenFOAM. The ParaView version installed with the RPM package "OpenFOAM-ParaView-3.12.0-1.x86_64.rpm" was specifically designed to work with the respective OpenFOAM 2.3.0 RPM package. Technically you can still use it with 2.3.x, but you will have to run paraFoam like this: Code:
paraFoam -builtin Best regards, Bruno |
All times are GMT -4. The time now is 15:52. |