CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Building OpenFOAM1.7.0 from source (https://www.cfd-online.com/Forums/openfoam-installation/78529-building-openfoam1-7-0-source.html)

ata July 24, 2010 11:05

Building OpenFOAM1.7.0 from source
 
Hi FOAMers
I am trying to build O.F.1.70 from its source. I run foamSystemCheck and every thing was OK. I installed flex and my gcc version is 4.4.3 and my O.S. is ubuntu 10.4. After running ./Allwmake and after some moments I got few "Error 127" and finally I can not build OpenFOAM1.7.0.
Can any one help me
Any help will be appreciated
best regards

Ata

elvis July 24, 2010 14:25

Quote:

Originally Posted by ata (Post 268782)
Hi FOAMers
I am trying to build O.F.1.70 from its source. I run foamSystemCheck and every thing was OK. I installed flex and my gcc version is 4.4.3 and my O.S. is ubuntu 10.4. After running ./Allwmake and after some moments I got few "Error 127" and finally I can not build OpenFOAM1.7.0.
Can any one help me
Any help will be appreciated
best regards

Ata

Hi,
i think you should be a little bit more specific on the errors, to give readers of your post the chance to help you.

=>There are some scripts for debian based distributions, that try to ease the process of installation from source code. http://code.google.com/p/openfoam-ubuntu

a good overview see
http://www.cfd-online.com/Forums/blo...rty-tools.html

http://hvirvel.dk/ seems to be older but goes in the same direction.

I would try these scripts (i hope you have the rights to do so on your workstation) even if they are not always for the latest version, to check if you have installed all nescessary software packages.

Maybe you find the time to update one of these scripts for 1.7, and give feedback here.

sorry that I didn't help you more.

elvis

ata July 25, 2010 04:09

Building OpenFOAM1.7.0 from source
 
1 Attachment(s)
Hi Elvis
Thank you very much for your reply. This is a part of error that I got:

make[3]: *** [Make/linuxGccDPOpt/dsmcFieldsCalc.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/dsmcFieldsCalc' not remade because of errors.
make[2]: *** [dsmcFieldsCalc] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/engineCompRatio.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/engineCompRatio' not remade because of errors.
make[2]: *** [engineCompRatio] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/execFlowFunctionObjects.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/execFlowFunctionObjects' not remade because of errors.
make[2]: *** [execFlowFunctionObjects] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/pdfPlot.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/pdfPlot' not remade because of errors.
make[2]: *** [pdfPlot] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/postChannel.o] Error 127
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/channelIndex.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/postChannel' not remade because of errors.
make[2]: *** [postChannel] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/ptot.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/ptot' not remade because of errors.
make[2]: *** [ptot] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/wdot.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/wdot' not remade because of errors.
make[2]: *** [wdot] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/writeCellCentres.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/writeCellCentres' not remade because of errors.
make[2]: *** [writeCellCentres] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [miscellaneous] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/patchAverage.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/patchAverage' not remade because of errors.
make[2]: *** [patchAverage] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/patchIntegrate.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/patchIntegrate' not remade because of errors.
make[2]: *** [patchIntegrate] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [patch] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/probeLocations.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/probeLocations' not remade because of errors.
make[2]: *** [probeLocations] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/sample.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/sample' not remade because of errors.
make[2]: *** [sample] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [sampling] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/pPrime2.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/pPrime2' not remade because of errors.
make[2]: *** [pPrime2] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [scalarField] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/stressComponents.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/stressComponents' not remade because of errors.
make[2]: *** [stressComponents] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [stressField] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/R.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/R' not remade because of errors.
make[2]: *** [R] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/createTurbulenceFields.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/createTurbulenceFields' not remade because of errors.
make[2]: *** [createTurbulenceFields] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [turbulence] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/Co.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/Co' not remade because of errors.
make[2]: *** [Co] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/Lambda2.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/Lambda2' not remade because of errors.
make[2]: *** [Lambda2] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/Mach.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/Mach' not remade because of errors.
make[2]: *** [Mach] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/Pe.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/Pe' not remade because of errors.
make[2]: *** [Pe] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/Q.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/Q' not remade because of errors.
make[2]: *** [Q] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/enstrophy.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/enstrophy' not remade because of errors.
make[2]: *** [enstrophy] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/flowType.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/flowType' not remade because of errors.
make[2]: *** [flowType] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/streamFunction.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/streamFunction' not remade because of errors.
make[2]: *** [streamFunction] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/uprime.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/uprime' not remade because of errors.
make[2]: *** [uprime] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/vorticity.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/vorticity' not remade because of errors.
make[2]: *** [vorticity] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [velocityField] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/wallGradU.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/wallGradU' not remade because of errors.
make[2]: *** [wallGradU] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/wallHeatFlux.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/wallHeatFlux' not remade because of errors.
make[2]: *** [wallHeatFlux] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/wallShearStress.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/wallShearStress' not remade because of errors.
make[2]: *** [wallShearStress] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/yPlusLES.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/yPlusLES' not remade because of errors.
make[2]: *** [yPlusLES] Error 2
/bin/sh: g++: not found
make[3]: *** [Make/linuxGccDPOpt/yPlusRAS.o] Error 127
make[3]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/yPlusRAS' not remade because of errors.
make[2]: *** [yPlusRAS] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [wall] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [postProcessing] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/applyBoundaryLayer.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/applyBoundaryLayer' not remade because of errors.
make[1]: *** [applyBoundaryLayer] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/applyWallFunctionBoundaryConditions.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/applyWallFunctionBoundaryConditions' not remade because of errors.
make[1]: *** [applyWallFunctionBoundaryConditions] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/boxTurb.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/boxTurb' not remade because of errors.
make[1]: *** [boxTurb] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/changeDictionary.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/changeDictionary' not remade because of errors.
make[1]: *** [changeDictionary] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/dsmcInitialise.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/dsmcInitialise' not remade because of errors.
make[1]: *** [dsmcInitialise] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/engineSwirl.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/engineSwirl' not remade because of errors.
make[1]: *** [engineSwirl] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/foamUpgradeFvSolution.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/foamUpgradeFvSolution' not remade because of errors.
make[1]: *** [foamUpgradeFvSolution] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/mapLagrangian.o] Error 127
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/mapFields.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/mapFields' not remade because of errors.
make[1]: *** [mapFields] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/mdInitialise.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/mdInitialise' not remade because of errors.
make[1]: *** [mdInitialise] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/setFields.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/setFields' not remade because of errors.
make[1]: *** [setFields] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [preProcessing] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceAdd.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceAdd' not remade because of errors.
make[1]: *** [surfaceAdd] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceAutoPatch.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceAutoPatch' not remade because of errors.
make[1]: *** [surfaceAutoPatch] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceCheck.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceCheck' not remade because of errors.
make[1]: *** [surfaceCheck] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/collapseBase.o] Error 127
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/collapseEdge.o] Error 127
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceClean.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceClean' not remade because of errors.
make[1]: *** [surfaceClean] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/progmesh.o] Error 127
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/vector.o] Error 127
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceCoarsen.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceCoarsen' not remade because of errors.
make[1]: *** [surfaceCoarsen] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceConvert.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceConvert' not remade because of errors.
make[1]: *** [surfaceConvert] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceFeatureConvert.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceFeatureConvert' not remade because of errors.
make[1]: *** [surfaceFeatureConvert] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceFeatureExtract.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceFeatureExtract' not remade because of errors.
make[1]: *** [surfaceFeatureExtract] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceFind.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceFind' not remade because of errors.
make[1]: *** [surfaceFind] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceMeshConvert.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceMeshConvert' not remade because of errors.
make[1]: *** [surfaceMeshConvert] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceMeshConvertTesting.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceMeshConvertTesting' not remade because of errors.
make[1]: *** [surfaceMeshConvertTesting] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceMeshExport.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceMeshExport' not remade because of errors.
make[1]: *** [surfaceMeshExport] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceMeshImport.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceMeshImport' not remade because of errors.
make[1]: *** [surfaceMeshImport] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceMeshTriangulate.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceMeshTriangulate' not remade because of errors.
make[1]: *** [surfaceMeshTriangulate] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceOrient.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceOrient' not remade because of errors.
make[1]: *** [surfaceOrient] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfacePointMerge.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfacePointMerge' not remade because of errors.
make[1]: *** [surfacePointMerge] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceRedistributePar.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceRedistributePar' not remade because of errors.
make[1]: *** [surfaceRedistributePar] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceRefineRedGreen.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceRefineRedGreen' not remade because of errors.
make[1]: *** [surfaceRefineRedGreen] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceSmooth.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceSmooth' not remade because of errors.
make[1]: *** [surfaceSmooth] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceSplitByPatch.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceSplitByPatch' not remade because of errors.
make[1]: *** [surfaceSplitByPatch] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceSplitNonManifolds.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceSplitNonManifolds' not remade because of errors.
make[1]: *** [surfaceSplitNonManifolds] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceSubset.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceSubset' not remade because of errors.
make[1]: *** [surfaceSubset] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/boundaryMesh.o] Error 127
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceToPatch.o] Error 127
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/treeDataPrimitivePatchName.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceToPatch' not remade because of errors.
make[1]: *** [surfaceToPatch] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/surfaceTransformPoints.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/surfaceTransformPoints' not remade because of errors.
make[1]: *** [surfaceTransformPoints] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [surface] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/IFCLookUpTableGen.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/IFCLookUpTableGen' not remade because of errors.
make[1]: *** [IFCLookUpTableGen] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/adiabaticFlameT.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/adiabaticFlameT' not remade because of errors.
make[1]: *** [adiabaticFlameT] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/chemkinToFoam.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/chemkinToFoam' not remade because of errors.
make[1]: *** [chemkinToFoam] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/equilibriumCO.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/equilibriumCO' not remade because of errors.
make[1]: *** [equilibriumCO] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/equilibriumFlameT.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/equilibriumFlameT' not remade because of errors.
make[1]: *** [equilibriumFlameT] Error 2
/bin/sh: g++: not found
make[2]: *** [Make/linuxGccDPOpt/mixtureAdiabaticFlameT.o] Error 127
make[2]: Target `/home/ata/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/mixtureAdiabaticFlameT' not remade because of errors.
make[1]: *** [mixtureAdiabaticFlameT] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.
Can any one help me.
Thanks a lot
Best regards

Ata

wyldckat July 25, 2010 13:59

Greetings to all!

Ata:
Quote:

Originally Posted by ata (Post 268805)
/bin/sh: g++: not found

You need to install several packages, and the one in particular that you are missing is build-essential.
This is a command line that will install most of the necessary (and some possibly unnecessary) packages for building OpenFOAM and ParaView:
Code:

sudo apt-get install binutils-dev flex bison git-core build-essential python-dev libreadline5-dev wget zlib1g-dev cmake libpng12-dev libxt-dev libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev libglib2.0-dev freeglut3-dev libqt4-dev qt4-dev-tools
Elvis: The project http://code.google.com/p/openfoam-ubuntu is currently on hiatus ;) Hopefully next weekend we will re-start work on the script :)

Best regards,
Bruno

ata July 26, 2010 07:26

Building OpenFOAM1.7.0 from source
 
Hi Bruno
Thank you very much for your reply. I have two questions.
Why when I run foamSystemCheck I got no error if any pakage is missing? When I used your comment, first some packages installed but after them I got this error:
"E: Couldn't find package cmakelibpng12-dev"
Could any one help me?
Thanks a lot.
Best regards

Ata

wyldckat July 26, 2010 08:01

Hi Ata,

Sorry about that, I didn't see when I pasted the code that there was a missing space. It should be "cmake libpng12-dev" and not "cmakelibpng12-dev". You can use the previous post now, that I've just fixed it.

As for foamSystemCheck, it only checks for gcc, it doesn't check for g++; and in Ubuntu, they come in separate packages!

Best regards,
Bruno

ata July 26, 2010 08:46

Thanks a lot
 
Hi Bruno
Thank you very much. It worked.
I'll retry OpenFOAM1.7.0 and inform you if I have a question
Best regards

Ata

ata July 28, 2010 06:42

Bulding Doxygen files
 
Hi Bruno and every one
Thank you very much Bruno. I built O.F.1.7.0 successfully. Would you please tell me how can I build Doxygen files after building O.F.1.7.0?
I have an other primary question. OpennFOAM has been written by C++. Why it gcc is needed for it's compiling. gcc is compiler for C, isn't it?
Thanks a lot
Best regards

Ata

wyldckat July 28, 2010 17:09

Hi Ata,
Quote:

Originally Posted by ata (Post 269125)
Would you please tell me how can I build Doxygen files after building O.F.1.7.0?

First you will need to install a few more packages:
Code:

sudo apt-get install doxygen graphviz texlive-latex-base
Then, inside the folder OpenFOAM-1.7.0, run:
Code:

wmake all doc
Quote:

Originally Posted by ata (Post 269125)
I have an other primary question. OpenFOAM has been written in C++. Why it gcc is needed for it's compiling. gcc is compiler for C, isn't it?

AFAIK, g++ can't live without gcc. And wmake's two sidekick applications, wmkdep and dirToString, have to be built with gcc.
Soooo... not everything in OpenFOAM is in C++... only about 99.99999999% of OpenFOAM is in C++ :D

Best regards,
Bruno

ata July 29, 2010 01:10

Thanks
 
Hi Bruno
Thank you very much. You are so kind.
I'll try it and inform you if I have questions.
Good luck
Best regards

Ata

nlc September 14, 2010 15:48

error compiling Doxygen
 
Hi I'm tring to compile doxygen doc of OpenFOAM1.7.1 and I get an error, I cant get it to work

I have Debian squeeze. I also have libreadline6-dev instead of libreadline5-dev
It compile a part of it but search tool don't work and graph aren't there

Hear the error I get !! Regards

wmake all doc

...

Error: dot: can't open /home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/html/classFoam_1_1nearestEqOp_aca31c134b06f127a240af78f 11932306_cgraph.dot
Problems running dot: exit code=2, command='dot', arguments='"/home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/html/classFoam_1_1nearestEqOp_aca31c134b06f127a240af78f 11932306_cgraph.dot" -Tpng -o "/home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/html/classFoam_1_1nearestEqOp_aca31c134b06f127a240af78f 11932306_cgraph.png" -Tcmapx -o "/home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/html/classFoam_1_1nearestEqOp_aca31c134b06f127a240af78f 11932306_cgraph.map"'
finished...
+ chmod -R a+rX ./

wyldckat September 14, 2010 18:27

Greetings Nicolas,

Why do I have the feeling you didn't read this whole thread :( let me quote from the post number 9:
Quote:

Originally Posted by wyldckat (Post 269231)
First you will need to install a few more packages:
Code:

sudo apt-get install doxygen graphviz texlive-latex-base

This should also be valid for Debian, since Ubuntu is derived from the unstable branch of Debian ;)

The missing dot application that Doxygen is complaining about is from the package graphviz. Proof: http://packages.debian.org/squeeze/a...phviz/filelist

edit (after re-reading your post): if the search tool is still damaged after building it again, that might be a bug that has already been fixed in OpenFOAM 1.7.x!

Best regards,
Bruno

nlc September 14, 2010 23:07

I did install those package !!

$ doxygen --version
1.7.1
$ dot -V
dot - graphviz version 2.26.3 (20100126.1600)

$ dpkg -l |grep graphviz
378:ii graphviz 2.26.3-5 rich set of graph drawing tools
379:ii graphviz-dev 2.26.3-5 transitional package for graphviz-dev rename
380:ii graphviz-doc 2.26.3-5 additional documentation for graphviz
901:ii libgraphviz-dev 2.26.3-5 graphviz libs and headers against which to build applications
1675:ii python-pygraphviz 1.0-1 Python interface to the Graphviz graph layout and visualization package


$ dpkg -l|grep texlive-latex-base
1818:ii texlive-latex-base 2009-10 TeX Live: Basic LaTeX packages
1819:ii texlive-latex-base-doc 2009-10 TeX Live: Documentation files for texlive-latex-base

Or if you prefer this way !
$ apt-get install doxygen graphviz texlive-latex-base
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
doxygen est déjà la plus récente version disponible.
graphviz est déjà la plus récente version disponible.
texlive-latex-base est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.

Still get the same error !!

I change in the Doxyfile

DOT_CLEANUP = no

And the error go away but still no graph and no search tool on my apache with php mod !

$ dpkg -l|grep apache2
22:ii apache2 2.2.16-2 Apache HTTP Server metapackage
23:ii apache2-mpm-prefork 2.2.16-2 Apache HTTP Server - traditional non-threaded model
24:ii apache2-utils 2.2.16-2 utility programs for webservers
25:ii apache2.2-bin 2.2.16-2 Apache HTTP Server common binary files
26:ii apache2.2-common 2.2.16-2 Apache HTTP Server common files
503:ii libapache-mod-jk-doc 1:1.2.30-1 Documentation of libapache2-mod-jk package
504:ii libapache2-mod-dnssd 0.6-2 Zeroconf support for Apache 2 via avahi
505:ii libapache2-mod-jk 1:1.2.30-1 Apache 2 connector for the Tomcat Java servlet engine
506:ii libapache2-mod-php5 5.3.2-2 server-side, HTML-embedded scripting language (Apache 2 module)
507:ii libapache2-mod-python 3.3.1-9+b1 Python-embedding module for Apache 2
508:ii libapache2-mod-python-doc 3.3.1-9 Python-embedding module for Apache 2 - documentation

Tanks for reply Bruno.
Please tell me which information is needed to understand better the problem


wyldckat September 15, 2010 06:52

Hi Nicolas,

This is a strange problem...

As for Apache, it isn't really needed, unless you want to have the data accessible from other machines via http. Specially when you already have the online version: http://www.openfoam.com/docs/cpp/

I looked again to the output you posted and this looks odd to me too:
Code:

/home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/
Did you properly define in OpenFOAM's bashrc file where OpenFOAM-1.7.1 is?

Another option you can try in the Doxyfile is this:
Code:

SHORT_NAMES            = YES
The only other issue I can think of is that there could be some weird problem with the permissions defined for that folder and your user!

The other possibility, is that error you got wasn't the first one. When you run it next time, try this:
Code:

cd $WM_PROJECT_DIR
wmake all doc > makeDoc.log 2>&1

This will save the whole build output into makeDoc.log. Then find the first error and/or post a compressed version of this file here along with your post.

Good luck!
Bruno

nlc September 15, 2010 09:49

Hi Bruno,

/home/niko/OpenFOAM/OpenFOAM-1.7.1 is a link that point to /home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1 and the too of them are at my name ! I think OpenFOAM work properly cavity case work and I'm playing with moveDynamicMesh to try to make a god 2d bump mesh with it ! It seam to work properly !

Code:

$ echo $WM_PROJECT_DIR
/home/niko/OpenFOAM/OpenFOAM-1.7.1

Code:

$ ls -l /home/niko/OpenFOAM/OpenFOAM-1.7.1
lrwxrwxrwx 1 niko niko 37  3 sep 20:57 /home/niko/OpenFOAM/OpenFOAM-1.7.1 -> /home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1

Code:

$ ls -l /home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/
total 2,9M
-rwxr-x---  1 niko niko  721 20 jun 18:01 Allwmake
drwxr-xr-x  6 niko niko 4,0K  3 sep 23:26 applications
drwxr-xr-x  4 niko niko 4,0K  3 sep 20:33 bin
-rw-r-----  1 niko niko  35K 15 jun 16:53 COPYING
drwxr-xr-x  6 niko niko 4,0K 14 sep 15:07 doc
drwxr-xr-x  4 niko niko 4,0K  3 sep 21:19 etc
drwxr-xr-x  4 niko niko 4,0K  3 sep 21:23 lib
-rw-r--r--  1 niko niko 2,8M 15 sep 09:28 makeDoc.log
-rw-r-----  1 niko niko 5,7K 24 aoû 10:50 README.html
-rw-r-----  1 niko niko 1,9K 25 aoû 08:04 ReleaseNotes-1.7.1
-rw-r-----  1 niko niko 5,7K 25 aoû 11:04 ReleaseNotes-1.7.1.html
drwxr-xr-x 30 niko niko 4,0K  3 sep 20:33 src
drwxr-xr-x 15 niko niko 4,0K  3 sep 20:33 tutorials
drwxr-xr-x  6 niko niko 4,0K  3 sep 21:23 wmake

I tired
Code:

cd $WM_PROJECT_DIR
wmake all doc > makeDoc.log 2>&1

to see error ! Here are some the 420 warning I get !

Code:

warning: Tag `DETAILS_AT_TOP' at line 162 of file Doxyfile has become obsolete.
To avoid this warning please update your configuration file using "doxygen -u"

...

Preprocessing /home/niko/OpenFOAM/OpenFOAM-1.7.1/applications/home/niko/OpenFOAM/OpenFOAM-1.7.1/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Merkle/Merkle.H:120: warning: reached end of file while inside a verbatim block!
The command that should end the block seems to be missing!

...

Preproc/home/niko/OpenFOAM/OpenFOAM-1.7.1/src/autoMesh/autoHexMesh/autoHexMeshDriver/pointData/pointData.C:23: warning: no matching file member found for
Foam::Ostream & operator<<(Foam::Ostream &os, const Foam::pointData &wDist)Possible candidates:
  Ostream & operator<<(Ostream &, const ExactParticle< ParticleType > &)
  Ostream & operator<<(Ostream &, const CompactListList_dev< T, Container > &)
  Ostream & operator<<(Ostream &, const TimeActivatedExplicitSource< Type > &)

...

/home/niko/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/fields/DimensionedFields/DimensionedField/DimensionedField.C:304: warning: no uniquely matching class member found for
  template < Type, GeoMesh >
  void replace(Foam::direction d, const Foam::DimensionedField< Foam::DimensionedField< Type, GeoMesh< MESH > >::Foam::DimensionedField::cmptType, GeoMesh< MESH > > &df)
Possible candidates:

...

/home/niko/OpenFOAM/OpenFOAM-1.7.1/src/thermophysicalModels/reactionThermo/Make/linux64GccSPDebug/chemkinLexer.C:37505: warning: documented function `~yyFlexLexer' was not declared or defined.

It dose not ave error beside OpenFOAM error function in the log

but

I will try with
SHORT_NAMES = YES

But what it is suppose to do ??

Regards

wyldckat September 15, 2010 09:56

Hi Nicolas,

Quote:

Originally Posted by ubald (Post 275312)
I will try with
SHORT_NAMES = YES

It forces file names to be kept in the 8.3 sizes, namely 8 characters for name and 3 for extension. This helps resolve problems with long paths and names, although in Linux this should not be an issue... but since "dot" complains about not finding or being able to access the file, then this could be the problem.

Additionally, from which folder did you launch the documentation build process, for that first error you reported?

Best regards,
Bruno

nlc September 15, 2010 11:11

I did run wmake all doc from
/home/niko/OpenFOAM/OpenFOAM-1.7.1
the first time !

now I run wmake all doc from /home/niko/OpenFOAM/OpenFOAM-1.7.1 with Doxyfile change:
Code:

diff Doxyfile Doxyfile.orig
131c131
< SHORT_NAMES            = YES
---
> SHORT_NAMES            = NO

And i get this weird warning in which the path repeat it self !! and the error similar to the first one !
Code:

Preprocessing /home/niko/OpenFOAM/OpenFOAM-1.7.1/applications/home/niko/OpenFOAM/OpenFOAM-1.7.1/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Merkle/Merkle.H:120: warning: reached end of file while inside a verbatim block!


Running dot for graph 3602Error: dot: can't open /home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/hRunning dot for graph 3602Error: dot: can't open /home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/html/a01037_aca31c134b06f127a240af78f11932306_cgraph.dot
Problems running dot: exit code=2, command='dot', arguments='"/home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/html/a01037_aca31c134b06f127a240af78f11932306_cgraph.dot" -Tpng -o "/home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/html/a01037_aca31c134b06f127a240af78f11932306_cgraph.png" -Tcmapx -o "/home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/html/a01037_aca31c134b06f127a240af78f11932306_cgraph.map"'
/10490
tml/a01037_aca31c134b06f127a240af78f11932306_cgraph.dot
Problems running dot: exit code=2, command='dot', arguments='"/home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/html/a01037_aca31c134b06f127a240af78f11932306_cgraph.dot" -Tpng -o "/home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/html/a01037_aca31c134b06f127a240af78f11932306_cgraph.png" -Tcmapx -o "/home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/doc/Doxygen/html/a01037_aca31c134b06f127a240af78f11932306_cgraph.map"'
/10490
...
Running dot for graph 3634/10490
Running dot for graph 3635/10490
Running dot for graph 3636/10490
finished...
+ chmod -R a+rX ./

Then end beafor 10490 !!!
I did not add YACC install when I compile OpenFOAM coud it change any thing !!

it as been install before trying to compile the doc !
Code:

yacc -V
bison (GNU Bison) 2.4.1
...


wyldckat September 15, 2010 11:31

Hi Nicolas,

Next weekend I can try replicating what you have done. I'll take the chance to try out Debian Squeeze :)

But my safest bet would be for you to try and follow the steps for building OpenFOAM 1.7.x, instead of 1.7.1: http://www.openfoam.com/download/git.php
You've already have got pretty much what you need (packages wise, although git-core should also be installed for OpenFOAM 1.7.x), and this way you also get the very latest bug fixed version :)
And I know that the search should work with the latest version, because of this bug report: http://www.openfoam.com/mantisbt/view.php?id=29

Best regards,
Bruno

akidess September 15, 2010 11:46

Bruno, I'm pretty sure that bug report is related to the website. I've had problems as well using the search on the online C++ source guide, and now it works again.

wyldckat September 15, 2010 12:17

Hi Anton,

Quote:

Originally Posted by akidess (Post 275326)
Bruno, I'm pretty sure that bug report is related to the website. I've had problems as well using the search on the online C++ source guide, and now it works again.

Er, I thought that copying the whole html folder from Doxygen to the live site would be a "no brainer", thus I assumed that the bug affected both versions. But I stand corrected :)

Best regards,
Bruno


All times are GMT -4. The time now is 14:04.