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

Installing OpenFOAM 1.6 on Ubuntu 10.4

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2010, 19:40
Default Installing OpenFOAM 1.6 on Ubuntu 10.4
  #1
sda
New Member
 
Join Date: Apr 2010
Posts: 16
Rep Power: 16
sda is on a distinguished road
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
-------------------------------------------------------------------------------
sda is offline   Reply With Quote

Old   May 24, 2010, 07:44
Default
  #2
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 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... 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
__________________
wyldckat is online now   Reply With Quote

Old   May 24, 2010, 14:45
Default Installing OpenFOAM 1.6 on Ubuntu 10.4
  #3
sda
New Member
 
Join Date: Apr 2010
Posts: 16
Rep Power: 16
sda is on a distinguished road
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
sda is offline   Reply With Quote

Old   May 24, 2010, 14:59
Default
  #4
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 SDA,

Quote:
Originally Posted by sda View Post
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 View Post
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 View Post
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 View Post
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
__________________
wyldckat is online now   Reply With Quote

Old   May 24, 2010, 15:06
Default Contact about Ubuntu 10.4, OpenFOAM 1.6.x and gcc 4.4.3
  #5
sda
New Member
 
Join Date: Apr 2010
Posts: 16
Rep Power: 16
sda is on a distinguished road
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
sda is offline   Reply With Quote

Old   May 27, 2010, 21:19
Default
  #6
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
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
__________________
wyldckat is online now   Reply With Quote

Reply

Tags
gcc 4.4.3, openfoam 1.6, ubuntu 10.4


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
Problem Installing OF 1.6 Ubuntu 9.10 (64 bit) - How to use GCC 4.4.1 Future Science OpenFOAM Installation 43 November 10, 2011 08:17
Installing OpenFOAM 1.6 on ubuntu 9.10 nabeels OpenFOAM Installation 32 May 10, 2010 04:09
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
OpenFoam 1.6 Permissions in Ubuntu 9.04 AlanR OpenFOAM Installation 14 December 28, 2009 20:45
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


All times are GMT -4. The time now is 11:17.