OpenFOAM Installation Errors
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 http://www.openfoam.com/download/source.php, 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):
g++ -m32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -fPIC \
wmkdepend.cpp wmkdependParser.cpp wmkdependScanner.cpp \
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!
you also need gcc-c++
Thank you for the quick response. I tried installing gcc-c++ from http://packages.ubuntu.com/lucid/g++-4.4 (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.
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 packages.ubuntu.com (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 packages.ubuntu.com 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 03:31.|