CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFOAM 1.6.x Installer for Ubuntu (https://www.cfd-online.com/Forums/openfoam-installation/73805-openfoam-1-6-x-installer-ubuntu.html)

wyldckat May 25, 2010 09:32

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 :D

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 :cool:

Best regards,
Bruno

sda May 25, 2010 16:26

Installed 64 bit OpenFoam 1.6.x on Ubuntu 10.4 using gcc 4.4.3
 
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

wyldckat May 25, 2010 16:59

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 (Post 260022)
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 :confused:. After that I thought: "What the heck!" and "un-updated" :p my drivers and then tried to run paraview. Guess what happened, it worked! :D. 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

vedi2008 June 7, 2010 08:22

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

wyldckat June 7, 2010 09:00

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

vedi2008 June 7, 2010 21:03

Quote:

Originally Posted by wyldckat (Post 261940)
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 June 7, 2010 21:19

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.

vedi2008 June 8, 2010 10:22

1 Attachment(s)
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

wyldckat June 8, 2010 18:44

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 :cool:

Best regards,
Bruno

vedi2008 June 8, 2010 20:28

Thank you very much, I will have a try.:)
Best regards,
Vedi

vedi2008 June 9, 2010 06:57

Thank you very much, Bruno! With your help I have successfully installed OpenFOAM.:)
Best regards,
Vedi

eweb2009 June 14, 2010 15:10

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.

SkunkWorks June 15, 2010 04:26

Error with paraFoam
 
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::open: 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

wyldckat June 15, 2010 17:38

Greetings to all,

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

Originally Posted by eweb2009 (Post 262966)
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 (Post 263032)
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: http://www.cfd-online.com/Forums/ope...st-update.html

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

SkunkWorks June 16, 2010 00:28

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

eweb2009 June 16, 2010 08:48

Quote:

Originally Posted by wyldckat (Post 263140)
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?

wyldckat June 16, 2010 12:40

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 (Post 263245)
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

SkunkWorks June 16, 2010 14:11

testing the experimental script right now
 
Hi!
I'm testing the experimental script right now. Just started it, I tell you the results as soon as possible

Rickard

SkunkWorks June 16, 2010 15:43

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

mystix June 18, 2010 04:50

1 Attachment(s)
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:
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/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.
------------------------------------------------------


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