CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   compiler problem with OpenFOAM installation (http://www.cfd-online.com/Forums/openfoam-installation/117932-compiler-problem-openfoam-installation.html)

belkadi May 17, 2013 09:55

compiler problem with OpenFOAM installation
 
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

wyldckat May 17, 2013 18:23

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

belkadi May 21, 2013 09:45

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

wyldckat May 21, 2013 15:56

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

belkadi May 22, 2013 10:26

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


All times are GMT -4. The time now is 01:34.