CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   OpenFOAM Installation Errors (

pfinlay1 August 1, 2011 08:22

OpenFOAM Installation Errors
Hello Everyone,

I just joined the forum and have also just started using Linux, so am very unfamiliar with the whole command line interface.
I have just installed Ubuntu 10.04 on my computer and am trying to get OpenFOAM up and running without internet. I have been following the directions at, and have gotten as far as "Building the Sources" by installing all the required packages manually, as I can't use apt-get. When I go to run the top level build script ./Allwmake, I immediately get error 127, and it keeps coming up though-out the build (although it will continue):

pfinlay1@pfinlay1:~$ /home/pfinlay1/OpenFOAM/OpenFOAM-2.0.0/Allwmake
g++ -m32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -fPIC \
wmkdepend.cpp wmkdependParser.cpp wmkdependScanner.cpp \
-o /home/pfinlay1/OpenFOAM/OpenFOAM-2.0.0/wmake/platforms/linuxGcc/wmkdepend
make: g++: Command not found
make: *** [/home/pfinlay1/OpenFOAM/OpenFOAM-2.0.0/wmake/platforms/linuxGcc/wmkdepend] Error 127

I have gcc-4.4.3, so I'm not sure why it is having troubles with g++. Thank you for your help!


linnemann August 1, 2011 08:46


you also need gcc-c++

pfinlay1 August 2, 2011 07:52

Thank you for the quick response. I tried installing gcc-c++ from (downloaded the .tar.gz file), but when i unpacked it I only got a .xz file. Not sure what to do with this, as when I use "tar -Jxf file.xz", it says permission denied.. Any suggestions? Thank you.

m2montazari August 5, 2011 05:47

if you have ubuntu and want a simple way, why do you try to install from sources? just enjoy debian packages.
so first download openfoam-***.deb and paraview-***.deb from sourceforge (after searching for openfoam choose all files and choose ubuntu then lucid)
then just open deb file with simple double clicking and it should say what other packages are needed that you dont have. so go to system-> synaptic and mark all that dependencies and then make download script from file menu. so packages you need is llisted in the download script file; download them from (deb packages) and install them one-by-one or using install downloaded packages from synaptic.
as a note, if you didnt ever updated the package list on your computer, just write list of dependencies of OpenFoam and download them from and you should repeat this to have dependencies of dependencies downloaded and installed.(a bit hard way)

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