CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Scripted install for CentOS/RHEL/SL 5.x 64bit (https://www.cfd-online.com/Forums/openfoam-installation/72034-scripted-install-centos-rhel-sl-5-x-64bit.html)

linnemann January 23, 2010 06:15

Scripted install for CentOS/RHEL/SL 5.x 64bit
 
Hi all

I've created install/update script for OpenFOAM-1.6.x and OpenFOAM-1.5-dev on sourceforge.

This should make installation much easier for CentOS/RHEL/SL 5.x 64.

The script can also update the current installation to the newest git/svn.

The update will put a local snapshot on your computer and the first time you update it will recompile everything. The next updates should be faster because it retains the update folder and only update the files.

Please post your findings on the official centFOAM forum.

Link to wikipage

Pytthon February 2, 2010 10:54

Any idea if it could work on CentOS 4.x?

Regards

linnemann February 7, 2010 11:31

Hi

I have no idea since 4.x is outdated in my world :-)

I have although compiled 1.4.1 and 1.5 on RHEL 4.x so it is certainly doable. This is a very long time ago and I cant remember the steps.

If possible I would see if the IT people wouldn't be interested in upgrading your cluster to ROCKS 5.3. There is really a big gain in upgrading.

This is what I did, but I'm also in a position where I maintain our cluster install.

ggruber February 28, 2010 02:16

Don't know how to start the script
 
Hello linnemann,

that would be pretty good to get OpenFOAM and the most pre-processing/meshing Software very easy installed with your script. So I made a fresh installation of centOS-5.4.
But I don't know how to run the script ?

Quote:

[ggruber@vostro1710 ~]$ su
Passwort:
[root@vostro1710 ggruber]# cd /root
[root@vostro1710 ~]# chmod 777 centFOAMInstall
[root@vostro1710 ~]# ls -l
insgesamt 100
-rw------- 1 root root 988 27. Feb 21:33 anaconda-ks.cfg
-rwxrwxrwx 1 root root 13716 27. Feb 21:06 centFOAMInstall
drwxr-xr-x 2 root root 4096 27. Feb 20:57 Desktop
-rw-r--r-- 1 root root 39647 27. Feb 21:33 install.log
-rw-r--r-- 1 root root 4607 27. Feb 21:29 install.log.syslog
-rw-r--r-- 1 root root 195 27. Feb 20:48 scsrun.log
[root@vostro1710 ~]# ./centFOAMInstall
Usage: {yumDependencies|installOpenFOAM|installNetgen|ins tallEngrid|installGmsh|installQt|installVTK|all|up dateOpenFOAM|help}
[root@vostro1710 ~]#
Can you help me to get it work ?

linnemann February 28, 2010 03:03

Hi


Yep you just have to put a space after the centFoamInstall command.

like

Code:

./centFoamInstall yumDependencies
or

Code:

./centFoamInstall installOpenFOAM

ggruber February 28, 2010 04:57

Sorry, doesn't work:

Quote:

[root@vostro1710 ~]# ./centFOAMInstall yumDependencies
REQUIRES ROOT
[root@vostro1710 ~]# ls -l
insgesamt 100
-rw------- 1 root root 988 27. Feb 21:33 anaconda-ks.cfg
-rwxrwxrwx 1 root root 13716 27. Feb 21:06 centFOAMInstall
drwxr-xr-x 2 root root 4096 27. Feb 20:57 Desktop
-rw-r--r-- 1 root root 39647 27. Feb 21:33 install.log
-rw-r--r-- 1 root root 4607 27. Feb 21:29 install.log.syslog
-rw-r--r-- 1 root root 195 27. Feb 20:48 scsrun.log
[root@vostro1710 ~]#
But i'am root ? I don't know :confused:

linnemann February 28, 2010 05:01

Well thats funny,,

The script is setup to check if you are root when running the yumDependencies option.

You could just open the script and comment the part about root in the yumDependencies function.

I've done it on my own computer at everything is fine.

It could be that you logged in as root using the "su" command. This will not work at the terminal still thinks you are the "user" and not root.

Logging in like so
Code:

ssh -Y root@localhost
will give you the right permissions. Or logging in as root from the login window.

ggruber February 28, 2010 05:34

script works !
 
This work's:

Logging in like so
Code:

ssh -Y root@localhost
Great script ! Thanks !

vnpenguin April 10, 2010 13:43

Excellent work!
Thank you, linnemann!

ggruber April 10, 2010 14:36

discretizer in centfoam install script ?
 
Hello Linnemann,

i prefur to work with discretizer http://www.discretizer.org as "GUI" (pre-processing-Tool) for OpenFOAM.
When i install the actual binary and start discretizer(_setup) the desktop freezes completely (no more action possible).
Is it possible for you to integrate discretizer in your installation script so that it will work in the future ?

Regards
Gerhard

linnemann April 11, 2010 02:50

Hi Gerhard

I will look into it next week.

linnemann April 12, 2010 04:03

1 Attachment(s)
Hi Gehard

I do not have any issues by just downloading the binary and then running

Code:

sh discretizer64.sh
I do not need to install, I can easily create simple stuff. Please report back. As of now I wont be including this into CentFOAM. There are way too many dependencies with specific version numbers (which aren't in default CentOS). And since the binary version is working I do not see a need to compile it for CentOS. I only include programs in CentFOAM if a working binary isn't available. You could do it yourself using the instructions on the homepage for discretizer here (Ubuntu)

http://www.cfd-online.com/Forums/att...1&d=1271058873

vnpenguin April 12, 2010 12:37

Hi Linnemann,
I know that your binary package should work also under CentOS 5.4. But it would be nicer if you could update your build for CentOS 5.4 ;)

Waiting for your files :)
OpenFOAM-1.6.x_CentOS-5.4_x86-64.tar.gz
ThirdParty-1.6.x_CentOS-5.4_x86-64.tar.gz

Thank you for your work,

Regards,

linnemann April 13, 2010 02:06

Hi Vnpenguin

As there is no problem with the current version on 5.4 besides the name containing 5.3. It would be more right to just name it 5.x, but this is how I did it since I hadn't thought it through :)

When CentOS 5.5 comes out I will be cleaning the whole project up and do a complete recompile of both 1.6.x and 1.5-dev, and maybe 1.7 if its out by that time.

For now you will have to live with the "wrong" naming convention.

dhoom April 17, 2010 08:27

1 Attachment(s)
Hi,

I am trying to use the script in Centos5.4 x64 and I am getting some errors, can you please have a look, I have attached the log.

Thanks,

D

linnemann April 17, 2010 17:00

Hi

Code:

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

This means that the archives was not downloaded correctly.
Also you have the error

Code:

2010-04-17 11:56:11 ERROR 503: Service Temporarily Unavailable.
Which could mean SF was down at the time. I know sourceforge had some scheduled maintenance, but I don't know if that's why you get the errors.

The script is working fine the packages is just not able to be downloaded so it is a connection problem.

If I were you I would start over and delete the archives in /tmp.

dhoom April 18, 2010 10:53

Quote:

Originally Posted by linnemann (Post 255084)
Hi

Code:

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

This means that the archives was not downloaded correctly.
Also you have the error

Code:

2010-04-17 11:56:11 ERROR 503: Service Temporarily Unavailable.
Which could mean SF was down at the time. I know sourceforge had some scheduled maintenance, but I don't know if that's why you get the errors.

The script is working fine the packages is just not able to be downloaded so it is a connection problem.

If I were you I would start over and delete the archives in /tmp.


Thanks linnemann, I will do the install again.

D


All times are GMT -4. The time now is 12:28.