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

OpenFOAM-1.6 install cookbook

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2010, 11:40
Default
  #281
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17
83_Ale_83 is on a distinguished road
This way right?

Quote:
echo "FIX up for Ubuntu 9.10"
cd ~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64
mv libstdc++.so.6 libstdc++.so.6.orig
ln -s `locate libstdc++.so.6.0 | grep "^/usr/lib" | head -n 1
mv libgcc_s.so.1 libgcc_s.so.1.orig
locate libgcc_s.so. | grep "^/lib" | head -n 1
cd ~/OpenFOAM
echo "Fix up done"
__________________

83_Ale_83 is offline   Reply With Quote

Old   March 9, 2010, 11:47
Default
  #282
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Sorry, no, I should have also posted the fix too
This is how it should be:
Code:
echo "FIX up for Ubuntu 9.10"
cd ~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64
mv libstdc++.so.6 libstdc++.so.6.orig
ln -s `locate libstdc++.so.6.0 | grep "^/usr/lib" | head -n 1` libstdc++.so.6
mv libgcc_s.so.1 libgcc_s.so.1.orig
ln -s `locate libgcc_s.so. | grep "^/lib" | head -n 1` libgcc_s.so.1
cd ~/OpenFOAM
echo "Fix up done"
I know, it looks a bit weird, but now it should work and be a bit more bullet proof

Disclaimer: this change might not work in a reinstall over an existing OpenFOAM installation It should nonetheless work well in a clean install!
wyldckat is offline   Reply With Quote

Old   March 10, 2010, 04:06
Default
  #283
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Sorry, no, I should have also posted the fix too
This is how it should be:
Code:
echo "FIX up for Ubuntu 9.10"
cd ~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64
mv libstdc++.so.6 libstdc++.so.6.orig
ln -s `locate libstdc++.so.6.0 | grep "^/usr/lib" | head -n 1` libstdc++.so.6
mv libgcc_s.so.1 libgcc_s.so.1.orig
ln -s `locate libgcc_s.so. | grep "^/lib" | head -n 1` libgcc_s.so.1
cd ~/OpenFOAM
echo "Fix up done"
I know, it looks a bit weird, but now it should work and be a bit more bullet proof

Disclaimer: this change might not work in a reinstall over an existing OpenFOAM installation It should nonetheless work well in a clean install!
Hi, wyldckat, if I want to install 32bit OpenFoam-1.6.x in Ubunto 9.10, I guess I just need to change your above lines into

cd ~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib
mv libstdc++.so.6 libstdc++.so.6.orig
ln -s `locate libstdc++.so.6.0 | grep "^/usr/lib" | head -n 1` libstdc++.so.6
mv libgcc_s.so.1 libgcc_s.so.1.orig
ln -s `locate libgcc_s.so. | grep "^/lib" | head -n 1` libgcc_s.so.1
cd ~/OpenFOAM


Is it right or wrong? Thanks.

In addition, if I does not fix up Ubunto 9.10, and install those steps the same as in Ubunto 9.04, what will happen?

Why we need to

mv libstdc++.so.6 libstdc++.so.6.orig
ln -s `locate libstdc++.so.6.0 | grep "^/usr/lib" | head -n 1` libstdc++.so.6
mv libgcc_s.so.1 libgcc_s.so.1.orig
ln -s `locate libgcc_s.so. | grep "^/lib" | head -n 1` libgcc_s.so.1


What is it meanings, you think? Moreover, if I do above steps, it seems that I can not plot the residue. Who can give some light?
sandy is offline   Reply With Quote

Old   March 10, 2010, 07:06
Default
  #284
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings sandy,
Quote:
Originally Posted by sandy View Post
Hi, wyldckat, if I want to install 32bit OpenFoam-1.6.x in Ubunto 9.10, I guess I just need to change your above lines into

cd ~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib
mv libstdc++.so.6 libstdc++.so.6.orig
ln -s `locate libstdc++.so.6.0 | grep "^/usr/lib" | head -n 1` libstdc++.so.6
mv libgcc_s.so.1 libgcc_s.so.1.orig
ln -s `locate libgcc_s.so. | grep "^/lib" | head -n 1` libgcc_s.so.1
cd ~/OpenFOAM

Is it right or wrong? Thanks.
Yep, that should do the trick for the 32bit version.

Quote:
Originally Posted by sandy View Post
In addition, if I does not fix up Ubunto 9.10, and install those steps the same as in Ubunto 9.04, what will happen?
If you had Ubuntu 9.04 and then upgraded to 9.10, without erasing the 9.04 version, then the script for 9.04 might work in your upgraded 9.10 installation.

Quote:
Originally Posted by sandy View Post
Why we need to

mv libstdc++.so.6 libstdc++.so.6.orig
ln -s `locate libstdc++.so.6.0 | grep "^/usr/lib" | head -n 1` libstdc++.so.6
mv libgcc_s.so.1 libgcc_s.so.1.orig
ln -s `locate libgcc_s.so. | grep "^/lib" | head -n 1` libgcc_s.so.1


What is it meanings, you think?
These steps do a backup of 2 unpacked library files (libstdc++.so.6 and libgcc_s.so.1) from the ThirdParty tgz package and replace those libraries with links to Ubuntu's 9.10 up-to-date libraries. Ubuntu 9.04 doesn't need this replacement step, because it comes with gcc-4.3.3, the same version as OpenFOAM's ThirdParty packaged gcc; while Ubuntu 9.10 comes with gcc-4.4.1, if I'm not mistaken.
By what I vaguely remember from this thread, this "update" was necessary, due to some incompatibilities with the system's libraries, when compiling or running OpenFOAM applications or Paraview... you'll have to look back to previous posts for more specific information

Quote:
Originally Posted by sandy View Post
Moreover, if I do above steps, it seems that I can not plot the residue. Who can give some light?
Well, that depends on the script you're using for plotting residuals! Personally, I have yet to use any one of those scripts, since I've only needed to look at the raw output of the solvers

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 10, 2010, 08:22
Default
  #285
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Swe**, thanks Bruno.


Quote:
Yep, that should do the trick for the 32bit version .

.......

Well, that depends on the script you're using for plotting residuals! Personally, I have yet to use any one of those scripts, since I've only needed to look at the raw output of the solvers

I just found there are no two "libstdc++.so.6.0" or "libgcc_s.so." in the 32bit version, so we actually need not worry about them.

You knew everything, Bruno. However if the raw output of solvers also looks wrong, it will be very difficult to get the correctly final results, right? So, firstly we just need to watch.
sandy is offline   Reply With Quote

Old   March 10, 2010, 08:33
Default
  #286
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by sandy View Post
You knew everything, Bruno.
Apparently, no I didn't know everything:
Quote:
Originally Posted by sandy View Post
I just found there are no two "libstdc++.so.6.0" or "libgcc_s.so." in the 32bit version, so we actually need not worry about them.
Hold on, I found these files in my Kubuntu 9.04 32bit! It was updated since 7.10, I think... So there is something strange with one of our (K)Ubuntu installations...

Quote:
Originally Posted by sandy View Post
However if the raw output of solvers also looks wrong, it will be very difficult to get the correctly final results, right? So, firstly we just need to watch.
True enough... garbage in, garbage out! But can you specify which solver and tutorial case is outputting bad values, just to verify if they're bad or not? There might be more to it than bad libraries!
wyldckat is offline   Reply With Quote

Old   March 10, 2010, 08:41
Default
  #287
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17
83_Ale_83 is on a distinguished road
Thank you Bruno, you have solved my problem
__________________

83_Ale_83 is offline   Reply With Quote

Old   March 10, 2010, 08:48
Default
  #288
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Quote:
True enough... garbage in, garbage out! But can you specify which solver and tutorial case is outputting bad values, just to verify if they're bad or not? There might be more to it than bad libraries!
I knew you deeply involve in those experiments. How many bad libraries did you dig? Why are they "more to it than bad libraries!"?? It looks like those linux error messages to me .... chaos ....
sandy is offline   Reply With Quote

Old   March 10, 2010, 08:58
Default
  #289
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by 83_Ale_83 View Post
Thank you Bruno, you have solved my problem
You're welcome Alessandro
Mads, you've got some additional tweaking there to do


Quote:
Originally Posted by sandy View Post
I knew you deeply involve in those experiments. How many bad libraries did you dig? Why are they "more to it than bad libraries!"?? It looks like those linux error messages to me .... chaos ....
Yes, it could be library linking issues... the same for which that tweak in the Mads cookbook script was made for, i.e., force libraries to link to something that works.
My question was more about the bad results you are getting with the solvers, not the libraries themselves!
wyldckat is offline   Reply With Quote

Old   March 15, 2010, 06:04
Default
  #290
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Hi All.

I am sorry, I haven't followed this thread for a while (I didn't get notifications. Weird.). Very good work Bruno, I have added your new fix up section. We need some testers now :-)

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   March 15, 2010, 06:34
Default
  #291
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Hi Mads, you need not to change the line

ln -s `locate libstdc++.so.6.0` libstdc++.so.6
....
ln -s `locate libgcc_s.so.` libgcc_s.so.1


into

ln -s `locate libstdc++.so.6.0 | grep "^/usr/lib" | head -n 1` libstdc++.so.6
mv libgcc_s.so.1 libgcc_s.so.1.orig
ln -s `locate libgcc_s.so. | grep "^/lib" | head -n 1` libgcc_s.so.1


in Ubuntu 9.10 32bit, because there is only one "libstdc++.so.6.0" or "libgcc_s.so." in its library.


Sandy
sandy is offline   Reply With Quote

Old   March 15, 2010, 07:29
Default
  #292
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by MadsR View Post
Hi All.

I am sorry, I haven't followed this thread for a while (I didn't get notifications. Weird.). Very good work Bruno, I have added your new fix up section. We need some testers now :-)

/Mads
Actually, the forum only alerts you once about a thread until the next time you login again. And you're welcome I've been wanting to help out a bit more, but haven't got around to it

Quote:
Originally Posted by sandy View Post
Hi Mads, you need not to change the line

(...)

in Ubuntu 9.10 32bit, because there is only one "libstdc++.so.6.0" or "libgcc_s.so." in its library.


Sandy
Sandy, it depends on how people use Ubuntu. If you install MATLAB in your 32bit Ubuntu installation, you'll get the same issues 83_Ale_83 had!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 15, 2010, 07:39
Default
  #293
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
@Sandy, Bruno: Okay, so need not or shouldn't change the locate :-)? Is it okay that I leave it be (as it is now)? I haven't time to check it right now, but hopefully someone else would.

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   March 15, 2010, 18:07
Default
  #294
New Member
 
Join Date: Feb 2010
Posts: 21
Rep Power: 16
jishnusoni is on a distinguished road
Hello,

I am unable to get the script, can you please post it on here or give me a another link. I desperately need to install Openfoam. Thanks in advance.

Regards
jish

Last edited by jishnusoni; March 15, 2010 at 21:48.
jishnusoni is offline   Reply With Quote

Old   March 16, 2010, 02:19
Default
  #295
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
It is right here. My webserver is acting a bit weird these days, I am working on it :-)

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   March 16, 2010, 04:10
Default Open foam insatallation
  #296
Member
 
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16
Javed is on a distinguished road
Hi,

I m not able to install dt4-designer in ubuntu which is need for OF installation.
I m new in Linux.
Plz help me.
Javed is offline   Reply With Quote

Old   March 16, 2010, 19:19
Default
  #297
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Javed,

Quote:
Originally Posted by Javed View Post
I m not able to install dt4-designer in ubuntu which is need for OF installation.
Are you following this thread's cookbook script? Because I'm not quite understanding what do you mean by "dt4-designer". Do you mean "qt4-designer"? Is it just the qt4 designer application or is it the whole Qt4 package you're managing to install?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 17, 2010, 00:21
Default
  #298
Member
 
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16
Javed is on a distinguished road
Thanks for the reply.
It is qt4-designer. typo mistake.
Javed is offline   Reply With Quote

Old   March 17, 2010, 03:19
Default
  #299
Member
 
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16
Javed is on a distinguished road
Hi, I am installing OF-1.6 on Ubuntu 8.1.
I have extracted files successfully into the Home/<username>/OpenFoam/
But not able to source bashrc file.
Also from the comments of previous forum had confused me, which file to edit bashrc i n home location or from OpenFoam/OpenFOAM-1.6/etc location.
I m getting following msg after using source bashrc command..


bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory
bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory
bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory
bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/settings.sh: No such file or directory
bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/aliases.sh: No such file or directory
bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/apps/paraview3/bashrc: No such file or directory
bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/apps/ensight/bashrc: No such file or directory
bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory
bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory
bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory

plz help me
Javed is offline   Reply With Quote

Old   March 17, 2010, 05:18
Default
  #300
New Member
 
Join Date: Feb 2010
Posts: 21
Rep Power: 16
jishnusoni is on a distinguished road
Hi Javed,

I would suggest that, delete all the OpenFoam files from your Home menu and just follow the Openfoam cookbook script. I had a same problem. Enter each command in the command line one by one and you will able to install Openfoam without any difficulty.

regards
jish
jishnusoni 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
install OpenFoam 1.6 by building source: how? niudie OpenFOAM Installation 13 April 26, 2011 01:48
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
install openfoam 1.6 on opensuse 11.0 andresbh OpenFOAM Installation 8 September 30, 2009 01:48
Install openFOAM 1.6 on debian 32bit - blockMesh: command not found fossy OpenFOAM Installation 1 August 28, 2009 05:06
Install of OpenFOAM 1.6 Error 1 Error 2 & run tutorial potac OpenFOAM Installation 3 August 27, 2009 10:04


All times are GMT -4. The time now is 01:42.