CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Install OpenFoam on Redhat server (http://www.cfd-online.com/Forums/openfoam-installation/76395-install-openfoam-redhat-server.html)

maolongliu May 25, 2010 02:27

Install OpenFoam on Redhat server
 
Hi, I was try to install OpenFOAM 1.6.x on the Reahat server. There is some difficuities during compiling, so I was think if it is possible to move the one I have compiled on my own Fedora server to this Redhat server.

I use the pack toos in the OpenFOAM bin fold, and copy to the new machine, unpack, but there is a error message, like this
"ELF files OS ABI invalid"
But when I download the packed files of OPenFOAM 1.6, unpack, and it works. So I don't know why my packed files did not work.
Can any one help me?
Thanks.

alberto May 25, 2010 02:31

What version of Red Hat?

Using Red Hat is a pain (at least I find it painful compared to SUSE/openSUSE). The easy way to have a working version of OpenFOAM on RHEL is to
  • Use the ThirdParty package provided by OpenCFD.
  • Recompile from source (take the source from the git repository, since they contain many fixes).
  • Pay attention that the directory "ThirdParty-1.6" must be renamed to "ThirdParty-1.6.x" if you use the source from git instead than the one from the website.
You probably don't need to compile paraview on a server, so you avoid some trouble.

Best,

maolongliu May 25, 2010 02:38

Red Hat 5.3.
Yeah, I don't need paraView on it.
As it is a very important server, I need the permission to install or update some new parts, like git.
So I was thinking to move the one on the Fedora server to this server.

Quote:

Originally Posted by alberto (Post 260063)
What version of Red Hat?

Using Red Hat is a pain (at least I find it painful compared to SUSE/openSUSE). The easy way to have a working version of OpenFOAM on RHEL is to
  • Use the ThirdParty package provided by OpenCFD.
  • Recompile from source (take the source from the git repository, since they contain many fixes).
  • Pay attention that the directory "ThirdParty-1.6" must be renamed to "ThirdParty-1.6.x" if you use the source from git instead than the one from the website.
You probably don't need to compile paraview on a server, so you avoid some trouble.

Best,


alberto May 25, 2010 02:41

To simply get the source code, you can use git on your workstation, and copy it on the server.

If you use the whole third-party package, with gcc, cmake and so on, you can also build OF on your machine, create a tar.gz, move it to the RH server and it's done.

Best,

maolongliu May 25, 2010 02:47

Thanks. I will try again.
I compiled OpenOFAM 1.6.x on my own workstation with system GCC, etc. And then copy to Red Hat server, there are some error.
You think this is the problem?
I will try use gcc of the ThirdParty fold.

Quote:

Originally Posted by alberto (Post 260066)
To simply get the source code, you can use git on your workstation, and copy it on the server.

If you use the whole third-party package, with gcc, cmake and so on, you can also build OF on your machine, create a tar.gz, move it to the RH server and it's done.

Best,



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