CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installing OpenFOAM 1.6 on Ubuntu 10.4 (http://www.cfd-online.com/Forums/openfoam-installation/76356-installing-openfoam-1-6-ubuntu-10-4-a.html)

sda May 23, 2010 18:40

Installing OpenFOAM 1.6 on Ubuntu 10.4
 
Dear OpenFOAM Users,

I am trying to install OpenFOAM on a x86_64 system running Ubuntu 10.4 with gcc 4.4.3 and I get these messages when I run the OpenFOAM test installation.

I would appreciate it if anyone could give me some simple and concise, easy to follow, step by step instructions as I have been pulling my hair out with this for over two days.

Thanks in advance.

Regards,



SDA


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.3
User version : 4.4.3
Minimum required: 4.3.1

gcc 4.4.3
WARNING: Conflicting installations:
OpenFOAM settings : /home/saif/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /bin/gzip
tar 1.22 /bin/tar
icoFoam 1.6.x ...penFOAM-1.6.x/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------

wyldckat May 24, 2010 06:44

Greetings SDA and welcome to the forum,

OpenFOAM 1.6 will not, I repeat, will NOT build with gcc 4.4.3. It was released nearly a year ago (10 months I think) and without some additional tweaks, it will only build with gcc 4.3.x. That is why in the ThirdParty-1.6 folder you have gcc 4.3.3... which by the way, won't build without some patches... :rolleyes: The link in my signature has a list of links to threads that can help you build OpenFOAM 1.6 with gcc 4.4.x or building gcc 4.3.3.


Anyhow, do you have a specific reason for which you must use OpenFOAM 1.6 and not OpenFOAM 1.6.x? And why not use the pre-built binaries of OpenFOAM 1.6 that OpenCFD has available?

Additionally, if you must really use OpenFOAM 1.6, the quickest solution right now for you would be to install Ubuntu 9.04 which has gcc 4.3.3.

On the other thread I will explain why we haven't added OpenFOAM 1.6 to the script.

Best regards,
Bruno

sda May 24, 2010 13:45

Installing OpenFOAM 1.6 on Ubuntu 10.4
 
Bruno.,

Thanks for your email. I will check out the links you referred to.

In your reply, you said that OpenFOAM 1.6 will not build with gcc 4.4.3 (implying that it will not build with 4.4.x either).

But later in your email, you mention links that will presumably allow me to build OpenFOAM 1.6 with gcc 4.4.x or 4.3.3. I am confused.

For me at the moment, it makes no difference if I use OpenFOAM 1.6 or 1.6.x.

I am relatively new to OpenFOAM and need to get more experience before I can make an informed choice.

I would just like to get the software up and running.

I am stuck with Ubuntu 10.4 on a 64 bit Xeon based system. I have no problem using the OpenFOAM binaries but they don't run out of the box so to speak and I get the errors that I posted when I run the test installation script.

So I am stuck for now.

Regards,


SDA

wyldckat May 24, 2010 13:59

Greetings SDA,

Quote:

Originally Posted by sda (Post 260011)
In your reply, you said that OpenFOAM 1.6 will not build with gcc 4.4.3 (implying that it will not build with 4.4.x either).

But later in your email, you mention links that will presumably allow me to build OpenFOAM 1.6 with gcc 4.4.x or 4.3.3. I am confused.

Ah, might I point out:
Quote:

Originally Posted by wyldckat (Post 259951)
will NOT build with gcc 4.4.3. It was released nearly a year ago (10 months I think) and without some additional tweaks

And that link refers you to what is need to be tweaked ;)

Quote:

Originally Posted by sda (Post 260011)
For me at the moment, it makes no difference if I use OpenFOAM 1.6 or 1.6.x.

Then you could try the install script from first thread were you posted! Namely the script available here: http://code.google.com/p/openfoam-ubuntu/

Quote:

Originally Posted by sda (Post 260011)
I am stuck with Ubuntu 10.4 on a 64 bit Xeon based system. I have no problem using the OpenFOAM binaries but they don't run out of the box so to speak and I get the errors that I posted when I run the test installation script.

That error indicated by the installation test script just indicates that the expected gcc binaries weren't found. Pretty much because you neither did unpack the ThirdParty 64bit binaries nor did you manage to build gcc 4.3.3 that comes with ThirdParty General package.

Good luck! And hopefully the installation script me and Fabio have been developing will get you up and running OpenFOAM in a few hours :)

Best regards,
Bruno

sda May 24, 2010 14:06

Contact about Ubuntu 10.4, OpenFOAM 1.6.x and gcc 4.4.3
 
Bruno,

Is it possible to contact you directly. If so, please send me an email to sdakanni@yahoo.com with your details.

Thanks either way.

Regards,


Saif

wyldckat May 27, 2010 20:19

Hello Saif,

I hope you don't mind, but I'm going to post here the instructions I sent to you a few days ago, in case other users end up with the same problems.

So, to all who may wander into this thread, here is what happened: I referred Saif to the script openfoam-ubuntu (http://code.google.com/p/openfoam-ubuntu/) and sent him the following instructions:
Quote:

Originally Posted by wyldckat
OK... in your case, my guess would be:
  1. Edit the file $HOME/.bashrc and remove or comment the line that has the reference to OpenFOAM's bashrc.
  2. Start a new terminal and run the following commands:
    Code:

    cd ~/OpenFOAM
    wget http://openfoam-ubuntu.googlecode.com/hg/installOF.sh
    chmod +x installOF.sh
    ./installOF

  3. Answers to questions posed by the script:
    1. yes <- this will give permission to the script to use sudo for installing the necessary packages. This way you won't have to run the install codes separately
    2. press enter <- it's the about screen
    3. press enter <- it's where to install
    4. press enter <- yes, log the installation process
    5. press enter <- yes, do a clean install
    6. press 4 and space<- to un-select OpenFOAM's gcc, thus using gcc 4.4.3
    7. press enter <- to go to the next dialog
    8. press 1 and space <- use Qt 4.3.5
    9. press 2 and space <- do a custom build of ParaView
    10. press 4 and space <- you might want python in the future to be used with ParaView
    11. press enter <- for now, just to get you up and running and since it's a single machine, lets skip building the server mode of ParaView
    12. press enter <- auto-select the mirror
    13. wait a few seconds
    14. press enter <- final information screen before starting to install
    And presto, a few hours later, if all goes well, you should have OpenFOAM with ParaView up and running!
Now, every time something goes wrong, the script should inform you about the issue... but not always will it wait for your response. If things go right, it informs you and keeps going. So, either way, you should read what it outputs to the screen ;)

At the end of the script, if it all went perfect, then it should say something like:
Quote:

Installation complete - You have chosen to use bash alias
To start using OpenFOAM, you'll have to start a new terminal first;
then, type:
startFoam
to activate the OpenFOAM environment.
If not, it will say:
Quote:

Installation failed. Please don't forget to check the provided forum link for solutions on the provided link, and/or report the error.

These instructions will install and build OpenFOAM 1.6.x, build Qt 4.3.5 and ParaView 3.6.1, all using Ubuntu's gcc 4.4.3.

Later on Saif did get it working with these instructions, but had some issues with ParaView not working properly, which likely was due to bad graphic card drivers... which happens on occasion when installing the latest version. Anyhow, this thread will jump to the script's thread, post #82.

Best regards,
Bruno


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