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

compiler problem with OpenFOAM installation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2013, 10:55
Default compiler problem with OpenFOAM installation
  #1
Member
 
belkadi
Join Date: May 2013
Location: France
Posts: 31
Rep Power: 13
belkadi is on a distinguished road
Dear all,

I'm new in this forum and a new user with OpenFOAM.
I have just installed the OpenFOAM-2.2.0 on my computer. The installation is made for Ubunutu 12.0 by using a virtual box through windows.
I've installed the gcc 4.7.2 version
During compiling the OpenFOAM, I've a lot error messages : /bin/sh: 1: g++ not found.
I don't understand why ? should I install the g++ compiler ?
I thought that the g++ is already installed in the gcc compiler. In OpenFOAM webesite they suggested to used gcc compiler 4.5. and above (this is well my case).

Any suggestions are welcome !

Kind regards

Abdelkrim
belkadi is offline   Reply With Quote

Old   May 17, 2013, 19:23
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 Abdelkrim and welcome to the forum!

Did you follow the instructions for Ubuntu in the "System Requirements" section?
Namely these instructions:
Quote:
Originally Posted by http://www.openfoam.org/download/source.php

Dependent packages required for Ubuntu can be installed by executing the following command in a terminal:
Code:
sudo apt-get install build-essential flex bison cmake zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libncurses-dev libxt-dev
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 21, 2013, 10:45
Default
  #3
Member
 
belkadi
Join Date: May 2013
Location: France
Posts: 31
Rep Power: 13
belkadi is on a distinguished road
Hi Bruno !

Thank you very much for your help,
Your answer was a great help. In fact I've connectd my computer to the network (internet) and tried your command line and it's work.
If I've well understood the website of OpenFoam, I should first install the Ubuntu Deb Pack and then Source Pack installation.
Honestly I'm not quiete good with Linux, I'm a beginner, Does any one has a document to explain the full installation of OpenFoam step by step for Ubuntu 12.10

Many thanks for the help.

Kind regards

Abdelkrim
belkadi is offline   Reply With Quote

Old   May 21, 2013, 16:56
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
Hi Abdelkrim,

You only need to install one version. If you are new to using OpenFOAM, it's best that you only install the Deb pack version, since it's easy and you simply need to follow the official instructions: http://www.openfoam.org/download/ubuntu.php

You'll only need to install the Source version, if and when the time comes to to perform advanced modifications to the source code.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 22, 2013, 11:26
Default
  #5
Member
 
belkadi
Join Date: May 2013
Location: France
Posts: 31
Rep Power: 13
belkadi is on a distinguished road
Hi Bruno,

Thanks again !
Of course, I've just followed the instruction as you mentionned and now I have successfully run a short example (cavity). Thanks to remind this to me Bruno. You saved me !
In fact last days I was trying to do the compilation of all the code sources, for the time being I don't need to do that because I'm not sure if I'll develop the code or not.
Well I'm very happy about this first step.
Now, I'll do the next step, modeling some physics in our reactor !

Thanks Bruno for your help.
Sure I'll be back with other questions !

Kind regards

Abdelkrim
belkadi 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
problem with parmetis-3.1.1 installation for openfoam 1.6-ext achyutan OpenFOAM Installation 11 October 26, 2012 19:18
Problem: Openfoam 2.1 installation from git repo fertinaz OpenFOAM Installation 10 March 2, 2012 12:26
OpenFOAM installation problem eos_711 OpenFOAM Installation 3 February 10, 2012 16:35
OpenFOAM 1.7.1 installation problem on Fedora 14 armonica OpenFOAM Installation 16 March 31, 2011 14:16
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 05:48


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