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

[OpenFOAM.org] OpenFOAM 1.6.x Installer for Ubuntu

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2010, 05:24
Default Reinstall
  #61
Member
 
Join Date: Dec 2009
Posts: 39
Rep Power: 17
marval is on a distinguished road
Hi!

And thanks for the reply! I've tried to follow the steps but when I try to reinstall, the entire computer crashes (somewhere in the process, I don't know exactly where in the process since I'm away from the computer during the installation) .

I think I will start over by erasing everything and then running the script again. This time marking the other alternatives of making paraView. It will take some time but I will report how it worked out when I'm finished. Lin, my graphic card is: ATI Mobility Radeon HD3650...i think that's the answer to your question.

Oh, right. I'm using Ubuntu 10.04.

Regards, Marco
marval is offline   Reply With Quote

Old   May 21, 2010, 11:40
Default
  #62
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
Hi, Bruno.

That's me again
Today I made a fresh installation of OpenFOAM 1.6.x on another pc (32-bit, Ubuntu 10.04 LTS), with the last stable version of your script (v. 0.9). I had a (just) Paraview building error, like in post #37. Just now I read about the very last version of the script: how can I fix the problem, without launching again the whole installation process? I attach my log files.

Cheers,
Maurizio

PS I can't attach OF installation log file, it's too big.
Attached Files
File Type: gz build_ParaView.log.tar.gz (5.1 KB, 5 views)
vaina74 is offline   Reply With Quote

Old   May 21, 2010, 12:00
Default
  #63
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
For Maurizios problem, it looks like we are missing freeglut3-dev..
akidess is offline   Reply With Quote

Old   May 21, 2010, 12:07
Default
  #64
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
What is freeglut3-dev? I have no idea about it
Can you help me, please? I'd like to fix the problem before office closing...
vaina74 is offline   Reply With Quote

Old   May 21, 2010, 12:08
Default
  #65
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Hehe. Personally I'd prefer not to patch the existing paraFoam but have two scripts. Otherwise we need a runtime option to select system or of-parafoam without reinstalling. But I guess that's just a matter of taste. I like the other ideas and will try to include them in the script when I find the time, but that's probably going to be in two weeks...

Quote:
Originally Posted by wyldckat View Post
Greetings to all,
Looks and sounds great. And I raise you (playing poker with "idea chips" ) the following ideas:
  • integrate a detection mechanism in the paraFoam script to either use foamToVTK+system or the usual OpenFOAM ParaView build;
  • add an option to installOF.sh to either use the system ParaView or the usual building of ParaView+PV3FoamReader;
  • add an option to build ParaView straight of the ParaView's Git repository, which apparently now has Takuya's vtkOpenFOAMReader which enables a more native reader for OpenFOAM files.
  • add an option to include pvFoam... although I've never used it and I don't know if it will quell the freezing issues.
akidess is offline   Reply With Quote

Old   May 21, 2010, 12:09
Default
  #66
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Maurizio, freeglut is a part of the OpenGL library. Try "apt-get install freeglut3-dev", then rerunning the build script.
akidess is offline   Reply With Quote

Old   May 21, 2010, 12:17
Default
  #67
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
Should I run the whole compiling process (OF, QT, etc.) - it takes hours - or maybe is it possible to run again only Paraview building with OF install script?
vaina74 is offline   Reply With Quote

Old   May 22, 2010, 17:23
Default
  #68
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 to all,

Quote:
Originally Posted by akidess View Post
Maurizio, freeglut is a part of the OpenGL library. Try "apt-get install freeglut3-dev", then rerunning the build script.
Anton, I have no clue as to how you figured that one out, but I've included it in the experimental script.

Quote:
Originally Posted by akidess View Post
Hehe. Personally I'd prefer not to patch the existing paraFoam but have two scripts. Otherwise we need a runtime option to select system or of-parafoam without reinstalling. But I guess that's just a matter of taste. I like the other ideas and will try to include them in the script when I find the time, but that's probably going to be in two weeks...
Uhm, good point. That way, with two scripts, one can use either the system's or OpenFOAM's versions. I now agree with you
I know it would be possible to make paraFoam to use only one of them by default (if OpenFOAM ParaView version doesn't exist, and system's version exists, use foamToVTK+system ParaView), but that would limit the user to only one ParaView version.

Quote:
Originally Posted by vaina74 View Post
Should I run the whole compiling process (OF, QT, etc.) - it takes hours - or maybe is it possible to run again only Paraview building with OF install script?
Maurizio, sorry for taking so long to answer, but I had lots of stuff to do... and the answer a couple of hours ago would be: no. But right now, I've made some commits to the experimental script, so if you are willing to test it: http://openfoam-ubuntu.googlecode.co...stallOF_exp.sh
The current experimental version (as of this writing) has the following capabilities, that the current stable script doesn't have: an additional option for custom building, which gives you access to building Qt, ParaView, Gcc, change the way the OpenFOAM environment is started (always or with startFoam), build ccm26ToFoam and code documentation... all of these, without (re)building OpenFOAM itself. This is to be used ONLY after at least one "fresh install" run has been fully completed, whether with or without success. In case you do need to rebuild OpenFOAM, you should run with the "update install" option (in the "Install mode" dialog).
If the update option doesn't do the trick, it's because there is some object junk in the way, so run the following commands:
Code:
cd $WM_PROJECT_DIR
wcleanAll
Then try again running the update option.

The experimental script still doesn't have the option for using Ubuntu's ParaView with foamToVTK.


These changes haven't been pushed to the stable version, because... I haven't tested it completely and there are still some more tweaks needed to ensure a comfortable user experience Which will only be done when time is available to do so


Has for ParaView locking up the machines, I'm going to try to investigate if the Mesa libraries can fully replace GPU-OpenGL, thus relying in CPU-OpenGL (independent of graphic cards), but it could be a long shot
Edit: after an hour of research, I've figured out how to build ParaView with Mesa, but it require more time to implement than I have right now. It will be possible to directly link to Ubuntu's Mesa libraries, thus not requiring to do a custom build of the Mesa libraries.

Best regards,
Bruno
__________________

Last edited by wyldckat; May 22, 2010 at 18:29. Reason: Mesa issue: research complete...
wyldckat is offline   Reply With Quote

Old   May 22, 2010, 22:34
Default
  #69
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
Well, on monday I'll be your cavy
Since I think OpenFOAM, Gcc, Qt, etc. building was ok in my case and the problem was only in ParaView, I'm going to test the experimental script in order to build only Paraview.
A newbie suggestion. This incredible and growing script is fantastic (above all) for not-so-linux-experts. For this reason, if you are going to include all these customing options, it should be better to have a little readme in order to explain the options, in simple words. Otherwise one could be puzzled (too many choices!).

Thank you for your help, cheers.

Maurizio
vaina74 is offline   Reply With Quote

Old   May 23, 2010, 16:44
Default OpenFOAM 1.6 and Ubuntu V10.4 with gcc 4.4.3
  #70
sda
New Member
 
Join Date: Apr 2010
Posts: 16
Rep Power: 16
sda is on a distinguished road
Dear All,

Does anyone have any experience with running the script to install OpenFOAM 1.6 on Ubuntu 10.4 with gcc 4.4.3. I am doing a test run right now and in doing a tail -F on the install.log file, I only see references to gcc 4.3.3.

I expect the worse followed by lots of fiddling about. i hope I am wrong. If anyone has any insight into this, I would appreciate your input.

Impressive work with the script by the way.

Regards,


SDA
sda is offline   Reply With Quote

Old   May 24, 2010, 04:40
Default
  #71
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
I ran installOF_exp script but something went wrong. Maybe I didn't set the right installation options:
- custom install mode
- build ParaView with(out) Qt
- build Paraview with GUI
Then I tested the OpenFOAM installation by the cavity tutorial. When I run paraFoam I obtain:
Code:
paraFoam: line 131: paraview: command not found
Why that?
vaina74 is offline   Reply With Quote

Old   May 24, 2010, 07:57
Default
  #72
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 to all,

Maurizio, on the dialog that has "- build Paraview with GUI", you should have read more carefully the text It says right above it "Do custom build of ParaView ?". I know, it seems misleading, but you know how quoting only some specific sentences can be misleading without knowing the whole text, right?

We haven't had time yet to write the FAQ in English, nor to write a tutorial on how to use the script and explaining each option. We've been more focused on getting the script "running to the max" and aiming to reach version 1.0. When we reach that stage, we will allocate more time to the docs


SDA, it has crossed my mind a few times to add to the script the option to also build OpenFOAM 1.6, but since 1.6.x is the state-of-the-art version of OpenFOAM, we've focused our efforts on primarily making the script fully functional, and then start adding extras. And since OpenFOAM 1.7 is just two months away, it seems to me to be a "waste of precious time" to invest in old technology

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 24, 2010, 08:19
Default
  #73
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
Hi, Bruno.

My english and linux understanding is not so good, so I don't think I can understand
Quote:
on the dialog that has "- build Paraview with GUI", you should have read more carefully the text It says right above it "Do custom build of ParaView ?". I know, it seems misleading, but you know how quoting only some specific sentences can be misleading without knowing the whole text, right?
Anyway, in my linux ignorance, in the meantime I'm running the experimental script and rebuild all not-OpenFOAM stuff (Gcc, Qt, ParaView). Now the building process of ParaView seem to be going right (e.g. is very slow, at first script running it was fast in a suspicious way ).
About th FAQ, it was a suggestion for the (far) future. Your work is great and free, I know that

Thanks for your help, cheers.

Maurizio

UPDATE

It's all ok, now. It was probably enough the rebuilding of ParaView with the appropriate settings in the install script, but I got it and that matters to me. Thanks for your help again

Last edited by vaina74; May 24, 2010 at 09:48.
vaina74 is offline   Reply With Quote

Old   May 24, 2010, 11:00
Default
  #74
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 vaina74 View Post
UPDATE

It's all ok, now. It was probably enough the rebuilding of ParaView with the appropriate settings in the install script, but I got it and that matters to me. Thanks for your help again
I'm glad it's finally working! And you're welcome
__________________
wyldckat is offline   Reply With Quote

Old   May 24, 2010, 14:04
Default 64 bit Ubuntu 10.04
  #75
Member
 
Join Date: Dec 2009
Posts: 39
Rep Power: 17
marval is on a distinguished road
Hi!

Now I've "upgraded" to 64 bit Ubuntu and ran the script but paraview doesn't want to work this time. Everything worked fine with the 32 bit installation but not in 64 bit.


------------------------------------------------------
Build ParaView:
Build process didn't finished with success. Please check the log file for more information:
/home/marco/OpenFOAM/ThirdParty-1.6.x/build_ParaView.log
You can post it at this forum thread:
http://www.cfd-online.com/Forums/ope...er-ubuntu.html

You can also verify that thread for other people who might have had the same problems.
------------------------------------------------------
------------------------------------------------------
ParaView isn't available where it is expected:
/home/marco/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/platforms/linux64Gcc/bin/paraview
Therefore it isn't possible to proceed with building the plugin PV3FoamReader.
------------------------------------------------------

I attached the log file for this. By the way, it didn't work out the freezing problems for me before (in 32 bit Ubuntu 10.04). I suspect it is, as many already said, the graphics card (hardware problem/incompatibility).

Regards Marco
Attached Files
File Type: gz build_ParaView.log.tar.gz (52.9 KB, 1 views)
marval is offline   Reply With Quote

Old   May 24, 2010, 14:22
Default
  #76
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 Marco,

Can you test the experimental script (see post #68) to build again ParaView? Use the new "custom" option instead of the "fresh" install option, and try to build ParaView again, but this time without the "OSMesa" build option.

OSMesa is useful only for off-screen rendering. Instructions here: Setting up a ParaView Server
This option hasn't been fully tested yet, so as far as I know, it should work, but it might not work

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 24, 2010, 17:22
Default
  #77
Member
 
Join Date: Dec 2009
Posts: 39
Rep Power: 17
marval is on a distinguished road
Thanks alot Bruno!

Everything (!) is working fine for the moment. Even the freezing problem is gone! I don't know if it have anything to do about switching to 64 bit. Now, something strange happened, when I did NOT (not yet) update the drivers for my graphic card. Paraview worked fine. THEN, when I updated it I got segmentation error when trying to open paraview . After that I thought: "What the heck!" and "un-updated" my drivers and then tried to run paraview. Guess what happened, it worked! . I thinks that's very peculiar to say the least. Maybe a pure coincidence I don't know...

Regards Marco
marval is offline   Reply With Quote

Old   May 25, 2010, 07:23
Default
  #78
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
Hi Marco,

That's good news
As for the drivers, I'm almost betting that if you'd had gone to the previous version of the drivers in the 32bit version, the same would have happened.

The thing is, as far as I know, proprietary drivers like NVidia and ATI's, have one serious problem with their source code: they aren't even privately open (i.e., any changes by others would be automatically theirs), they are fully closed to the general public and when they release a new update, it's just as prone to error as GPL software, but has a tendency of taking far longer to be fixed. My assumption is that the team that works on the Windows version of the drivers is far larger than the team that works on the Linux version.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 25, 2010, 09:13
Default
  #79
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
I googled "OPENGL_INCLUDE_DIR (ADVANCED)" and the most likely answer was the missing freeglut package. No black magic here

I have the feeling using Mesa will be really slow so it might not even be that helpful. But it's worth trying if you find the time...

- Anton

Quote:
Originally Posted by wyldckat View Post
Greetings to all,

Anton, I have no clue as to how you figured that one out, but I've included it in the experimental script.

Uhm, good point. That way, with two scripts, one can use either the system's or OpenFOAM's versions. I now agree with you
I know it would be possible to make paraFoam to use only one of them by default (if OpenFOAM ParaView version doesn't exist, and system's version exists, use foamToVTK+system ParaView), but that would limit the user to only one ParaView version.

[...]

As for ParaView locking up the machines, I'm going to try to investigate if the Mesa libraries can fully replace GPU-OpenGL, thus relying in CPU-OpenGL (independent of graphic cards), but it could be a long shot
Edit: after an hour of research, I've figured out how to build ParaView with Mesa, but it require more time to implement than I have right now. It will be possible to directly link to Ubuntu's Mesa libraries, thus not requiring to do a custom build of the Mesa libraries.

Best regards,
Bruno
akidess is offline   Reply With Quote

Old   May 25, 2010, 10:06
Default
  #80
Member
 
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16
Canesin is on a distinguished road
Mesa is f***ing slow against OpenGL in rendering.. when you are dealing with small meshes and fields maps you don't notice it a lot but when you need an cluster almost the size of the compute-cluster just to post-process you start to understand why is a good design choice to include one rendering node in your farm... Has some LLVM work with translation GL whith a JIT for CPU rendering, using Gallium3D ... has some benchmark here : http://www.phoronix.com/scan.php?pag...llvmpipe&num=1

But, GPU will always be better for the job.
Canesin 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 06:40
OpenFOAM Training Beijing 22-26 Aug 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 May 3, 2016 05:57
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Error compiling OpenFoam 1.6.x with intel compiler icc mak_04 OpenFOAM Installation 5 October 28, 2011 08:06


All times are GMT -4. The time now is 16:52.