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 |
Quote:
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 |
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 |
Greetings to all!
Ata: Quote:
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 Best regards, Bruno |
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 |
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 |
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 |
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 |
Hi Ata,
Quote:
Code:
sudo apt-get install doxygen graphviz texlive-latex-base Code:
wmake all doc Quote:
Soooo... not everything in OpenFOAM is in C++... only about 99.99999999% of OpenFOAM is in C++ :D Best regards, Bruno |
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 |
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 ./ |
Greetings Nicolas,
Why do I have the feeling you didn't read this whole thread :( let me quote from the post number 9: Quote:
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 |
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 |
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/ Another option you can try in the Doxyfile is this: Code:
SHORT_NAMES = YES 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 Good luck! Bruno |
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 Code:
$ ls -l /home/niko/OpenFOAM/OpenFOAM-1.7.1 Code:
$ ls -l /home/OpenFOAM/OF1.7.1/OpenFOAM-1.7.1/ Code:
cd $WM_PROJECT_DIR Code:
warning: Tag `DETAILS_AT_TOP' at line 162 of file Doxyfile has become obsolete. but I will try with SHORT_NAMES = YES But what it is suppose to do ?? Regards |
Hi Nicolas,
Quote:
Additionally, from which folder did you launch the documentation build process, for that first error you reported? Best regards, Bruno |
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 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! 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 |
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 |
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.
|
Hi Anton,
Quote:
Best regards, Bruno |
All times are GMT -4. The time now is 01:40. |