CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2010, 07:15
Default Scripted install for CentOS/RHEL/SL 5.x 64bit
  #1
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
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
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   February 2, 2010, 11:54
Exclamation
  #2
New Member
 
Joaquín J. Correa
Join Date: Jan 2010
Posts: 18
Rep Power: 16
Pytthon is on a distinguished road
Any idea if it could work on CentOS 4.x?

Regards
Pytthon is offline   Reply With Quote

Old   February 7, 2010, 12:31
Default
  #3
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
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.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   February 28, 2010, 03:16
Default Don't know how to start the script
  #4
New Member
 
ggruber
Join Date: May 2009
Posts: 12
Rep Power: 17
ggruber is on a distinguished road
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 ?
ggruber is offline   Reply With Quote

Old   February 28, 2010, 04:03
Default
  #5
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi


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

like

Code:
 ./centFoamInstall yumDependencies
or

Code:
 ./centFoamInstall installOpenFOAM
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   February 28, 2010, 05:57
Default
  #6
New Member
 
ggruber
Join Date: May 2009
Posts: 12
Rep Power: 17
ggruber is on a distinguished road
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
ggruber is offline   Reply With Quote

Old   February 28, 2010, 06:01
Default
  #7
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
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.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   February 28, 2010, 06:34
Default script works !
  #8
New Member
 
ggruber
Join Date: May 2009
Posts: 12
Rep Power: 17
ggruber is on a distinguished road
This work's:

Logging in like so
Code:
ssh -Y root@localhost
Great script ! Thanks !
ggruber is offline   Reply With Quote

Old   April 10, 2010, 14:43
Default
  #9
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 16
vnpenguin is on a distinguished road
Excellent work!
Thank you, linnemann!
vnpenguin is offline   Reply With Quote

Old   April 10, 2010, 15:36
Default discretizer in centfoam install script ?
  #10
New Member
 
ggruber
Join Date: May 2009
Posts: 12
Rep Power: 17
ggruber is on a distinguished road
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
ggruber is offline   Reply With Quote

Old   April 11, 2010, 03:50
Default
  #11
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi Gerhard

I will look into it next week.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   April 12, 2010, 05:03
Default
  #12
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
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)

Attached Images
File Type: jpg disceti.jpg (42.7 KB, 116 views)
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   April 12, 2010, 13:37
Thumbs up
  #13
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 16
vnpenguin is on a distinguished road
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,
vnpenguin is offline   Reply With Quote

Old   April 13, 2010, 03:06
Default
  #14
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
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.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   April 17, 2010, 09:27
Default
  #15
New Member
 
Join Date: Apr 2010
Posts: 17
Rep Power: 16
dhoom is on a distinguished road
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
Attached Files
File Type: txt centFOAMInstall-log.txt (5.9 KB, 8 views)
dhoom is offline   Reply With Quote

Old   April 17, 2010, 18:00
Default
  #16
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
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.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   April 18, 2010, 11:53
Default
  #17
New Member
 
Join Date: Apr 2010
Posts: 17
Rep Power: 16
dhoom is on a distinguished road
Quote:
Originally Posted by linnemann View Post
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
dhoom is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 129 June 19, 2010 10:23
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43


All times are GMT -4. The time now is 10:41.