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

OpenFOAM 1.6.x Installer for Ubuntu

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   May 25, 2010, 09:32
Default
  #81
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all,

Well, the OSMesa option is useful for when you have no rendering farm available, but you still have well over 50GHz of combined computing power in i686/x86_64 power

The Mesa option should be useful for scenarios when you really need ParaView working and the currently available drivers for the graphics card are really bad... thus, better slow then nothing

Although by what I investigated, NVidia and ATI have their own OpenGL libraries, but Intel seems to be closely tied with the Mesa3D project. So, without getting my hands on some hardware that jams up, I can't confirm myself how things are working. Well, it should be just a question of time

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 25, 2010, 16:26
Default Installed 64 bit OpenFoam 1.6.x on Ubuntu 10.4 using gcc 4.4.3
  #82
sda
New Member
 
Join Date: Apr 2010
Posts: 15
Rep Power: 7
sda is on a distinguished road
Bruno,

Thanks to you, I managed to install Openfoam 1.6.x on my x86_64 machine running Ubuntu 10.4 using gcc 4.4.3. I used your script to get this far.

I ran the blockmesher on the lid cavity case and it seems to work.

Just one small problem but with paraview this time.

When I try to start paraview, I get a segmentation fault.

Any ideas please?

Regards,


Saif
sda is offline   Reply With Quote

Old   May 25, 2010, 16:59
Default
  #83
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Saif,

Well, at least the computer didn't freeze like it has happened to some users. What graphics card do you have on your machine? And what drivers have you installed for it?

If you have an ATI graphics card like marval has (see post #61), or even if you have an NVidia card, then try to do what he did (post #77):
Quote:
Originally Posted by marval View Post
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...

Best regards,
Bruno

Edit: the instructions I sent to Saif are now available here: Installing OpenFOAM 1.6 on Ubuntu 10.4 post #6

Last edited by wyldckat; May 27, 2010 at 20:21. Reason: Added helpful reference for new users
wyldckat is offline   Reply With Quote

Old   June 7, 2010, 08:22
Default
  #84
New Member
 
vedi
Join Date: Apr 2009
Posts: 6
Rep Power: 8
vedi2008 is on a distinguished road
I am now working on Ubuntu 10.04. I have failed to install OpenFOAM1.6 with this script installOF.sh. I am eager to get help. Here is the error:
find: `/var/run/gdm': Permission denied
find: `/var/spool/cups': Permission denied
find: `/var/spool/cron/atspool': Permission denied
find: `/var/spool/cron/crontabs': Permission denied
find: `/var/spool/cron/atjobs': Permission denied
find: `/var/cache/ldconfig': Permission denied
find: `/var/lib/gdm': Permission denied
find: `/var/lib/polkit-1': Permission denied
find: `/var/log/samba/cores': Permission denied
find: `/var/log/gdm': Permission denied
------------------------------------------------------

------------------------------------------------------
Build OpenFOAM:
Allwmake started to build at:
Mon Jun 7 20:08:44 CST 2010

Allwmake finished at:
Mon Jun 7 20:08:44 CST 2010
vedi2008 is offline   Reply With Quote

Old   June 7, 2010, 09:00
Default
  #85
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Vedi and welcome to the forum!

OK, that is one strange error... Can you please describe the steps you have taken to make that happen?
Additionally, can you please attach the installOF.log file? Because that file should have a complete log of the messages you got!
I believe the specific problem related to the error you got comes from far before those error messages you've posted!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 7, 2010, 21:03
Default
  #86
New Member
 
vedi
Join Date: Apr 2009
Posts: 6
Rep Power: 8
vedi2008 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Vedi and welcome to the forum!

OK, that is one strange error... Can you please describe the steps you have taken to make that happen?
Additionally, can you please attach the installOF.log file? Because that file should have a complete log of the messages you got!
I believe the specific problem related to the error you got comes from far before those error messages you've posted!

Best regards,
Bruno
Thank you very much for you help. I guess it should be the net problem, my net speed is not well with some website. I try to upload the installOF.log, but it failed with: Upload Errors: installOF.log: Invalid File.
May I have your email address and send it to you in the email?

Best regards,
Vedi
vedi2008 is offline   Reply With Quote

Old   June 7, 2010, 21:19
Default
  #87
New Member
 
vedi
Join Date: Apr 2009
Posts: 6
Rep Power: 8
vedi2008 is on a distinguished road
Maybe the trouble is here:
Build gcc-4.3.3:
Build process didn't finished with success. Please check the log file for more information:
/build_gcc.log
My gcc version is 4.4.3

I found the reason why I cann't upload the file, the Max Filesize is 97.7KB, but mine is 560KB.

Last edited by vedi2008; June 8, 2010 at 10:18.
vedi2008 is offline   Reply With Quote

Old   June 8, 2010, 10:22
Default
  #88
New Member
 
vedi
Join Date: Apr 2009
Posts: 6
Rep Power: 8
vedi2008 is on a distinguished road
Now I have compressed the log file and hope it can be uploaded this time.
Please rename the file name to be installOF.rar and then decompress it.
Best regards,
Vedi
Attached Files
File Type: c installOF.c (45.5 KB, 11 views)
vedi2008 is offline   Reply With Quote

Old   June 8, 2010, 18:44
Default
  #89
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Vedi,

Well, you got unlucky... the server where OpenFOAM's git is hosted was down when you tried to install OpenFOAM. The indication is this:
Code:
------------------------------------------------------
Applying patches to bashrc and settings.sh ...
------------------------------------------------------
patching file bashrc
Hunk #1 FAILED at 105.
1 out of 1 hunk FAILED -- saving rejects to file bashrc.rej
patching file bashrc
Hunk #1 FAILED at 93.
1 out of 1 hunk FAILED -- saving rejects to file bashrc.rej
patching file paraFoam
Hunk #1 FAILED at 75.
1 out of 1 hunk FAILED -- saving rejects to file paraFoam.rej
patching file ./wmake
Hunk #1 FAILED at 55.
Hunk #2 FAILED at 152.
2 out of 2 hunks FAILED -- saving rejects to file ./wmake.rej
patching file mpfr-2.4.1/log2.c
patching file mpfr-2.4.1/log1p.c
patching file mpfr-2.4.1/log10.c
patching file makeQt
patching file ./makeParaView
Hunk #4 succeeded at 183 with fuzz 2.
patching file ./tools/makeParaViewFunctions
patching file AllwmakeLibccmio
These failures indicate that there aren't any files to change, or that they are too different for the patches to be applicable. Thus it wasn't possible to clone the OpenFOAM's 1.6.x git repository. And you're not the first one to whom this has happened: OpenFOAM-1.6 install cookbook post #363

Solution - Just try to execute the script again, after running the following lines:
Code:
cd $HOME/OpenFOAM
rm -rf OpenFOAM 1.6.x
rm -rf ThirdParty-1.6.x ThirdParty-1.6
The only thing it should download this time is the OpenFOAM's 1.6.x git repository. The options you chose shouldn't affect what happened, so you can still use the same options! And hopefully, the server should be up and running this time.

Sorry about that, we should have put in a safe guard for the possibility of the git server being down We will fix it in the next coding storm

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 8, 2010, 20:28
Default
  #90
New Member
 
vedi
Join Date: Apr 2009
Posts: 6
Rep Power: 8
vedi2008 is on a distinguished road
Thank you very much, I will have a try.
Best regards,
Vedi
vedi2008 is offline   Reply With Quote

Old   June 9, 2010, 06:57
Default
  #91
New Member
 
vedi
Join Date: Apr 2009
Posts: 6
Rep Power: 8
vedi2008 is on a distinguished road
Thank you very much, Bruno! With your help I have successfully installed OpenFOAM.
Best regards,
Vedi
vedi2008 is offline   Reply With Quote

Old   June 14, 2010, 15:10
Default
  #92
New Member
 
Sam
Join Date: May 2010
Posts: 3
Rep Power: 7
eweb2009 is on a distinguished road
Could you please let me know what the root folder name is for the installation package? What I mean is that I don't want the cascaded duplicative folder names such as "/openFOAM/openFOAM".

Thank you in advance for your help.
eweb2009 is offline   Reply With Quote

Old   June 15, 2010, 04:26
Default Error with paraFoam
  #93
Member
 
Rickard Hidefjäll
Join Date: Jun 2009
Location: Uppsala, Sweden
Posts: 39
Rep Power: 8
SkunkWorks is on a distinguished road
Hi !

I've used the http://openfoam-ubuntu.googlecode.com/hg/installOF.sh
script several times with different parameters, and I also still get the same results:

rickard@SkunkWorks:/Data/FlygFiler/Projekt20100612$ startFoam
Building on 4 cores
rickard@SkunkWorks:/Data/FlygFiler/Projekt20100612$ paraFoam
created temporary 'Projekt20100612.OpenFOAM'
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/rickard/.config/ibus/bus
Bus:pen: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
Segmentation fault
rickard@SkunkWorks:/Data/FlygFiler/Projekt20100612$

A new fresh Linux install has taken place twice with no differens in results.

I think some thing has change sins 22/5 when the script was last updated.
Or has anyone any hints about how to fix the problem?

Regards Rickard
SkunkWorks is offline   Reply With Quote

Old   June 15, 2010, 17:38
Default
  #94
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all,

I'll try to answer the two latest posts in order:
Quote:
Originally Posted by eweb2009 View Post
Could you please let me know what the root folder name is for the installation package? What I mean is that I don't want the cascaded duplicative folder names such as "/openFOAM/openFOAM".
I'm not quite sure what you're doubt is, because:
  • the installOF.sh script runs on wherever you have it and/or launch it from, but doesn't install directly where it is at by default.
  • the script itself asks you in the first dialogs (2nd or 3rd, I can't remember) where exactly do you want to install OpenFOAM.
  • the files that the script downloads will be located in that very same folder you specify, so the installation should be neatly storaged in the defined folder.
    ... er, maybe we could create a Downloads folder inside the given folder... but the script pretty much just does as we usually do...
  • As for cascading folders, you should only get something very similar to it, for example, the default folder is: $HOME/OpenFOAM/OpenFOAM-1.6.x
    But this sub-folder is where the specific OpenFOAM version 1.6.x is located, so it will allow multiple versions of OpenFOAM to coexist in the same base folder.
Sooo.... if none of these points answer your question, could you elaborate more on it?


Now for the next post:
Quote:
Originally Posted by SkunkWorks View Post
I've used the http://openfoam-ubuntu.googlecode.com/hg/installOF.sh
script several times with different parameters, and I also still get the same results:

(...)
A new fresh Linux install has taken place twice with no differens in results.

I think some thing has change sins 22/5 when the script was last updated.
Or has anyone any hints about how to fix the problem?
This is one of those strange bugs to me... OK, a few questions:
  • What version of Ubuntu are you using (..., 9.10, 10.04, ...) and is it the server edition? And is it 32 or 64 bit? Is it straight Ubuntu or KUbuntu, XUbuntu, LUbuntu...
  • Have you tried to use the experimental script? Please see post #68 and maybe a couple of more after that one, because I'm not sure where I explain it a bit better
  • What type of graphics card are you using? Intel, ATI or NVidia?
  • Is the latest version of ParaView that you built using Qt 4.3.5?
Additionally, I've read a few days ago a bug report for OpenFOAM that described an issue with paraFoam no longer being able to work after a git update... and it seems that it is still to be fixed: paraFoam failed after the latest update

I'll try to confirm the issue in a couple of machines in the next weekend... if I can find the time for it

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 16, 2010, 00:28
Default
  #95
Member
 
Rickard Hidefjäll
Join Date: Jun 2009
Location: Uppsala, Sweden
Posts: 39
Rep Power: 8
SkunkWorks is on a distinguished road
Hi !
  • What version of Ubuntu are you using (..., 9.10, 10.04, ...) and is it the server edition? And is it 32 or 64 bit? Is it straight Ubuntu or KUbuntu, XUbuntu, LUbuntu...
I run KUbuntu 64bit 10.04 desktop version.
  • Have you tried to use the experimental script? Please see post #68 and maybe a couple of more after that one, because I'm not sure where I explain it a bit better
I used the latest script the one made 22/5. no exprimental.
  • What type of graphics card are you using? Intel, ATI or NVidia?
NVidia (something model like 7760 I think) i used the latest driver (current).
  • Is the latest version of ParaView that you built using Qt 4.3.5?
I don't know. I did chose custom build ParaView. in the script. but I have chose custom build Qt as well with same results.

Tanks for caring.

Regards Rickard
SkunkWorks is offline   Reply With Quote

Old   June 16, 2010, 08:48
Default
  #96
New Member
 
Sam
Join Date: May 2010
Posts: 3
Rep Power: 7
eweb2009 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all,

I'll try to answer the two latest posts in order:

...
  • As for cascading folders, you should only get something very similar to it, for example, the default folder is: $HOME/OpenFOAM/OpenFOAM-1.6.x

  • But this sub-folder is where the specific OpenFOAM version 1.6.x is located, so it will allow multiple versions of OpenFOAM to coexist in the same base folder.
...

Best regards,
Bruno
Thank you very much for your kind help.

Take the default folder you mentioned as example, should I creat the full default folder $HOME/OpenFOAM/OpenFOAM-1.6.x or just creat the folder named $HOME/OpenFOAM and then the installation package will create subfolder /OpenFOAM-1.6.x by itself?
eweb2009 is offline   Reply With Quote

Old   June 16, 2010, 12:40
Default
  #97
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Rickard and Sam,

Rickard: I'll try to run the install script on a virtual machine with KUbuntu 10.04 next weekend and try to replicate the issue you got.

Sam:
Quote:
Originally Posted by eweb2009 View Post
Take the default folder you mentioned as example, should I creat the full default folder $HOME/OpenFOAM/OpenFOAM-1.6.x or just creat the folder named $HOME/OpenFOAM and then the installation package will create subfolder /OpenFOAM-1.6.x by itself?
Actually, if you use the default path setting, the script will create the folder $HOME/OpenFOAM on it's own and download the necessary files into it. All of the necessary folders will be created automatically, and the paths I have written about should comply. Even if you change the path where to install OpenFOAM, it will create that very same folder you specified and will install the OpenFOAM related stuff in it

The only way you would get cascaded folders, would be if you define in the dialog box that asks for the path where to install OpenFOAM, typed for example:
Code:
/home/user/OpenFOAM/OpenFOAM
This is the only way cascading would occur

But if you want to pre-create the $HOME/OpenFOAM folder, feel free to do it! But I think that creating the folder $HOME/OpenFOAM/OpenFOAM-1.6.x will confuse the install procedure, more specifically git might complain about the folder already existing and won't clone the repository as a security precaution.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 16, 2010, 14:11
Default testing the experimental script right now
  #98
Member
 
Rickard Hidefjäll
Join Date: Jun 2009
Location: Uppsala, Sweden
Posts: 39
Rep Power: 8
SkunkWorks is on a distinguished road
Hi!
I'm testing the experimental script right now. Just started it, I tell you the results as soon as possible

Rickard
SkunkWorks is offline   Reply With Quote

Old   June 16, 2010, 15:43
Default
  #99
Member
 
Rickard Hidefjäll
Join Date: Jun 2009
Location: Uppsala, Sweden
Posts: 39
Rep Power: 8
SkunkWorks is on a distinguished road
And it worked! But to make a stream line takes a very long time.
And still it complains about no connection to the Ibus daemon.

Regards / Rickard
SkunkWorks is offline   Reply With Quote

Old   June 18, 2010, 04:50
Default
  #100
New Member
 
Join Date: Jun 2010
Posts: 25
Rep Power: 7
mystix is on a distinguished road
Hallo all,

first I want to thank you for the great installation script. I tried it on my fresh installed ubuntu 10.04 and it worked fine meshing and running the cavity case. All my 6 cores were detected.

But I have a problem with running ParaView. I used command "paraFoam" after running the cavity case and the message:
138: paraview: not found
was coming.

Can you please help me?

-------------------------------
------------------------------------------------------
Build ParaView:
Build process didn't finished with success. Please check the log file for more information:
/home/markus/OpenFOAM/ThirdParty-1.6.x/build_ParaView.log
You can post it at this forum thread:
OpenFOAM 1.6.x Installer for Ubuntu

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/markus/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/platforms/linuxGcc/bin/paraview
Therefore it isn't possible to proceed with building the plugin PV3FoamReader.
------------------------------------------------------
Attached Files
File Type: gz build_ParaView.log.tar.gz (53.8 KB, 4 views)

Last edited by mystix; June 18, 2010 at 05:16.
mystix is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.6.x - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 68 April 22, 2013 11:03
Error occurs when compiling OpenFoam 1.6.x with Icc fs82 OpenFOAM Bugs 5 January 20, 2010 04:08
Windows patch for OpenFOAM 1.6.x gocarts OpenFOAM Announcements from Other Sources 2 October 16, 2009 09:55
Problem compiling OpenFOAM 1.6.x deji OpenFOAM Installation 1 October 7, 2009 23:00
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56


All times are GMT -4. The time now is 18:13.