CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 1.6.x - CentOS 5.3 x86_64 (https://www.cfd-online.com/Forums/openfoam-installation/67676-openfoam-1-6-x-centos-5-3-x86_64-a.html)

run_cfd April 18, 2011 06:30

Quote:

Originally Posted by linnemann (Post 303978)
Hi Manoj

Go here instead. I have changed the install process since that description.

https://sourceforge.net/apps/mediawi...itle=Main_Page

If you need the packages for RHEL you can mix and match from CentOS and SL, they are all built using the same source packages.

So to install manually go here f.ex.

http://ftp.hosteurope.de/mirror/cent...x86_64/CentOS/

Search for the packages you need, download it and install with

rpm -Uvh nameOfPackage.rpm

It might complain that it needs some dependency package to install so search for those as well and install them before the other.

You can also convert to CentOS but for the small number of packages you need for centFOAM I would just download them manually.

Best
Niels



Hi Neils,

The links are amazing and it's a superlink. I got everything I was searching for... thanks.

But still I was not able to install OpenFOAM. After installing following things (gcc gcc-c++ bison ncurses-devel tix.x86_64 glibc-devel flex flex-devel zlib-devel libXt-devel)mannually, I followed the Manual install steps on the page "https://sourceforge.net/apps/mediawi...itle=Main_Page". I got following errors:

1:) In step 5:
-------------------------------------------------------------------------
[root@sunserver etc]# chmod -R 755 $HOME/OpenFOAM
chmod: cannot access `/root/OpenFOAM': No such file or directory
-------------------------------------------------------------------------

2:) In step 6: I added the line [ alias OF17=". $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc" ] just before the end-of-file in the bashrc file and when executed the . ~/.bashrc in the terminal, I got no response: see below:
--------------------------------------------------------------------------
[root@sunserver etc]# . ~/.bashrc
[root@sunserver etc]#
--------------------------------------------------------------------------

And when I checked with OF17 following error was shown:
--------------------------------------------------------------------------
[root@sunserver etc]# OF17
bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc: No such file or directory
--------------------------------------------------------------------------

And after I checked which gcc, this was displayed
--------------------------------------------------------------------------
[root@sunserver etc]# which gcc
/usr/bin/gcc
[root@sunserver etc]#
----------------------------------------------------------------------------

Obviously, I can guess that the mistake is somewere in the initial step. May be in sourcing the .bashrc file, but couldn't figure out exactly what? I am a beginner in OpenFOAM and Linux. Please help me in finding out the mistake and correcting it.

Thanks & Best regards,
MLD

run_cfd April 18, 2011 06:32

Hi Neils,

The links are amazing and it's a superlink. I got everything I was searching for... thanks.

But still I was not able to install OpenFOAM. After installing following things (gcc gcc-c++ bison ncurses-devel tix.x86_64 glibc-devel flex flex-devel zlib-devel libXt-devel)mannually, I followed the Manual install steps on the page "https://sourceforge.net/apps/mediawi...itle=Main_Page". I got following errors:

1:) In step 5:
-------------------------------------------------------------------------
[root@sunserver etc]# chmod -R 755 $HOME/OpenFOAM
chmod: cannot access `/root/OpenFOAM': No such file or directory
-------------------------------------------------------------------------

2:) In step 6: I added the line [ alias OF17=". $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc" ] just before the end-of-file in the bashrc file and when executed the . ~/.bashrc in the terminal, I got no response: see below:
--------------------------------------------------------------------------
[root@sunserver etc]# . ~/.bashrc
[root@sunserver etc]#
--------------------------------------------------------------------------

And when I checked with OF17 following error was shown:
--------------------------------------------------------------------------
[root@sunserver etc]# OF17
bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc: No such file or directory
--------------------------------------------------------------------------

And after I checked which gcc, this was displayed
--------------------------------------------------------------------------
[root@sunserver etc]# which gcc
/usr/bin/gcc
[root@sunserver etc]#
----------------------------------------------------------------------------

Obviously, I can guess that the mistake is somewere in the initial step. May be in sourcing the .bashrc file, but couldn't figure out exactly what? I am a beginner in OpenFOAM and Linux. Please help me in finding out the mistake and correcting it.

Thanks & Best regards,
MLD

run_cfd April 18, 2011 06:37

Plese help in finding the mistake
 
Hi Neils,

Greetings!!!

Thanks for your quick response. The links amazing and it's a superlink. I got everything I was searching for.

But the still I was not able to install OpenFOAM. After installing following things (gcc gcc-c++ bison ncurses-devel tix.x86_64 glibc-devel flex flex-devel zlib-devel libXt-devel) mannually, I followed the Manual install steps on the page "https://sourceforge.net/apps/mediawi...itle=Main_Page". I got following errors:

1:) In step 5:
-------------------------------------------------------------------------
[root@sunserver etc]# chmod -R 755 $HOME/OpenFOAM
chmod: cannot access `/root/OpenFOAM': No such file or directory
-------------------------------------------------------------------------

2:) In step 6: I added the line alias OF17=". $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc"
just before the end-of-file and when executed the . ~/.bashrc in the terminal, I got no response: see below:
--------------------------------------------------------------------------
[root@sunserver etc]# . ~/.bashrc
[root@sunserver etc]#
--------------------------------------------------------------------------

And when I checked with OF17 following error was shown:
--------------------------------------------------------------------------
[root@sunserver etc]# OF17
bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc: No such file or directory
--------------------------------------------------------------------------

And after the I checked which gcc, this was displayed
--------------------------------------------------------------------------
[root@sunserver etc]# which gcc
/usr/bin/gcc
[root@sunserver etc]#
----------------------------------------------------------------------------

Obviously, I can guess that the mistake is somewere in the initial step. May be in sourcing the .bashrc file, but couldn't figure out exactly what. I am a beginner in OPenFOAM and Linux. Please help me in finding out the mistake and correcting it.

Thanks & Best regards,
MLD

linnemann April 18, 2011 07:10

Hi

First of all please do not double and triple post.

My bet is that there is no files in $HOME/OpenFOAM but rather in $HOME/centFOAM/OpenFOAM

You can read in the error that

Code:

chmod: cannot access `/root/OpenFOAM': No such file or directory


bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc: No such file or directory

So the first thing that should pop up in your head was to check if that directory exists. And if not change it to the correct path.

My manual recipe is not made for "dummies" as it might not be fully updated, I'm busy doing other things. If you want to make it easy use the automatic script instead.

run_cfd April 19, 2011 05:45

Hi Neils,

I am sorry for the double posts, it was not deliberate. Now I succeeded to install OpenFoam-1.7.1. I followed the steps on the link http://sourceforge.net/apps/mediawik...itle=Main_Page.

I tried running a case of icoFOAM, it's working. But I was not able to open paraFoam. When I type the command "paraFoam" in case directory terminal. it gives following error.

---------
[root@sunserver cavity]# paraFoam
created temporary 'cavity.OpenFOAM'
/root/OpenFOAM/OpenFOAM-1.7.1/bin/paraFoam: line 139: paraview: command not found
[root@sunserver cavity]#
---------

What may be the problem?

Thanks and Best wishes

MLD

linnemann April 19, 2011 06:34

Quote:

Note that from June 2010 Paraview will be a separate program from OpenFOAM and thus paraFoam will no longer work. This was a decision I've made since I feel the performance from the parallel reader found here is superior to the one in OpenFOAM. It also means that you can use Paraview without OpenFOAM and it allows me to keep Paraview more up to date. To use Paraview with the new reader just create an empty file in your case folder "touch casename.foam" and open this file using Paraview.
Please read the wiki.

vishal April 20, 2011 04:05

Hi Manoj,

Actually if you are not able to use parafoam. most porbablly "your paraview is not compiled or you don't have it in Thirdparty" dir.

what you can do is you can download paraview ready to use from paraview official website. and you can directly open ".foam " file using that.

for genrating .foam file you have to replace all ".OpenFOAM" in "OpenFOAM-1.7.1/bin/paraFoam" by ".foam"

go to case directory and execute.

paraFoam -touch (the .foam file will be generated which can be opened using downloaded paraview) I have been doing the same and works very good for decomposed mesh too you dont have to reconstruct them anymore.

I have installed OpenFOAM 1.7.1 successfully on CentOS system. Please let me know if you have problem. May be I can help.

thomasnwalshiii July 6, 2011 08:37

Error in new python script
 
Thanks you the CentosFOAM setup. I'm installing it right now with your latest python script but noticed an error (I think at least). When trying to download openfoam 2.0.x I received an error regarding 'OF17'. I searched through your script and found this next to the install command for 'OF20'. I just changed it and everything seems to be working (at least it is downloading OF2.0.x onto my system as I type this).

Tom

linnemann July 8, 2011 02:13

Thanks for the feedback,

Will change it right away.

alberto July 19, 2011 23:52

Hi Niels,

thanks for centfoam with 2.0.x! I installed it on our Red Hat 5.3 machines, however I have this error message when it is executed:

[my_hostname:09053] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_ofud: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09053] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_openib: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09053] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_mtl_psm: libpsm_infinipath.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09055] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_ofud: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09055] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_openib: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09055] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_mtl_psm: libpsm_infinipath.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09054] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_ofud: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09054] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_openib: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09054] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_mtl_psm: libpsm_infinipath.so.1: cannot open shared object file: No such file or directory (ignored)

This does not seem to be a problem on multicore workstations, but it prevents clusters from running jobs (always RHEL 5.3).

Best,

linnemann July 20, 2011 01:26

Hi Alberto

Ahh yes, our cluster has infiniband so thats why it complains that it cant find it.

one solution is to change the Allwmake script in the Thirdparty folder.

uncomment line 102 where it says --with-openib.

Delete the platforms/linux64Gcc45/openmpi-1.5.3 folder and run ./Allwmake again.

This should then compile without infiniband.

The other solution that you could try beforehand is to run mpi as described at the very bottom on this page http://pkg-ofed.alioth.debian.org/ho...d-howto-6.html this forces openmpi to use tcp-ip.

I will compile a version without inifiniband and upload if youd like.

alberto July 20, 2011 01:51

1 Attachment(s)
Thanks for your reply Niels. Actually our cluster has infiniband too, which is what makes me wonder. I'll try to re-compile OpenMPI, and let you know.

P.S. Before I forget, the scripts for csh are not updated:
  • OpenFOAM-2.0.x/etc/cshrc
    • set foamCompiler=ThirdParty
    • setenv WM_COMPILER Gcc45
  • OpenFOAM-2.0.x/etc/config/settings.csh
    • Version of gcc and libs updated
You find the fixed files in the attached tar.gz.

Best,

alberto July 20, 2011 03:33

Little update: It seems the problem in my case is due to ofed, which comes with mpi 1.2.8, naturally built with the obsolete gcc 4.1 (I love Red Hat).

Best,

linnemann July 20, 2011 05:02

Hi

I will update my install script with the cshrc, funny you are the only one who have noticed this as I have never updated the cshrc file ;-)

are there any benefits from using csh over bash?

We also use OFED but I compile it myself using this fine guide.

https://wiki.rocksclusters.org/wiki/...ks_5.3_cluster

run_cfd July 20, 2011 07:30

Hi Neils

Greetings!!!

Is it possible to install centFoam on RHEL6 x86 ?

Regards,

Manoj

linnemann July 20, 2011 07:54

Hi Manoj

I'm still in the process of compiling the different stuff for 6.x. and updating the install script.

netgen, paraview and 1.6-ext is already available on the source-forge page you just have to do the installation manually.

I'm quite swamped at work so do not have much time for the "fun" stuff.

run_cfd July 20, 2011 08:30

yes it does!!! I tried and it was successfully done!!!

linnemann July 20, 2011 08:44

Hi

Im a little confused.

Did you do the manual install or the scripted version?

I suspect that the scripted would work quite ok on version 6.x since I include the GCC install with the thirdparty.

The reason I want to make separate version for 6.x is that the gcc is much never 4.4.x and thus I do not need to recompile/include gcc for each version. also QT is up to date and paraview can be built with the 6.x dev version of QT which also makes my life easier :-)

Also if you read here http://www.afs.enea.it/funel/CFD/Ope...amcomptest.htm you can see that the precompiled does not scale as well if built on a different system.

Thats why I want to have separate versions for 5.x and 6.x to get optimum speedup.

alberto July 20, 2011 10:36

Quote:

Originally Posted by linnemann (Post 316741)
Hi

I will update my install script with the cshrc, funny you are the only one who have noticed this as I have never updated the cshrc file ;-)

are there any benefits from using csh over bash?

I personally don't think so :D. Our machines are managed directly by our IT department, and csh is used by default. I revert this setting on my machine to bash, because I am more comfortable with it, but doing that by hand on all the machines and clusters would be annoying, so I just use csh there.

Quote:

We also use OFED but I compile it myself using this fine guide.

https://wiki.rocksclusters.org/wiki/...ks_5.3_cluster
Thank you! Very helpful.

Best,

run_cfd July 21, 2011 00:38

Quote:

Originally Posted by linnemann (Post 316776)
Hi

Im a little confused.

Did you do the manual install or the scripted version?

I suspect that the scripted would work quite ok on version 6.x since I include the GCC install with the thirdparty.

The reason I want to make separate version for 6.x is that the gcc is much never 4.4.x and thus I do not need to recompile/include gcc for each version. also QT is up to date and paraview can be built with the 6.x dev version of QT which also makes my life easier :-)

Also if you read here http://www.afs.enea.it/funel/CFD/Ope...amcomptest.htm you can see that the precompiled does not scale as well if built on a different system.

Thats why I want to have separate versions for 5.x and 6.x to get optimum speedup.


Hi Neils!!

Greetings!!

I did mannual install and didn't tried scripted install. The mannual install works fine in my case. I just followed the steps after doing rpm install of the prerequisites (bison, flex.... etc). For some of those prerequisites, RHEL 6 already had updated versions.
The openfoam works fine but paraFoam is not working for now even after replacing all .OpenFOAM with .foam in ~/bin/paraFoam file. May be I will have to install paraview separately and with that read the casename.foam file. I am trying that, but any other option from your side will be appreciated.

Thanks in advance,

Manoj


All times are GMT -4. The time now is 00:54.