CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Installing OpenFOAM-2.3.x

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fertinaz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2017, 11:38
Default Installing OpenFOAM-2.3.x
  #1
New Member
 
Masoumeh Gharaati
Join Date: Apr 2017
Posts: 19
Rep Power: 9
mgharaati is on a distinguished road
Dear all

I 'm trying to instal OpenFOAM-2.3.x on Ubuntu 16 according to this link. "http://www.tfd.chalmers.se/~hani/wikis/haniWiki/index.php?title=Install_Ubuntu_14.04_LTS,_OpenFOAM-2.3.x,_foam-extend-3.1_etc._on_your_own_laptop&oldid=47 "

After entering the following command
Quote:
./Allwmake
I faced to these errors. Would you please help me how I can solve this.
Quote:
-lfiniteVolume -lmeshTools -lOpenFOAM -ldl -lm -o /home/gharaati/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam
/home/gharaati/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/libtriSurface.so: undefined reference to `yyFlexLexer::yywrap()'
collect2: error: ld returned 1 exit status
/home/gharaati/OpenFOAM/OpenFOAM-2.3.x/wmake/Makefile:149: recipe for target '/home/gharaati/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam' failed
make[2]: *** [/home/gharaati/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam] Error 1
make[2]: Leaving directory '/home/gharaati/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
/home/gharaati/OpenFOAM/OpenFOAM-2.3.x/wmake/MakefileApps:39: recipe for target 'solidEquilibriumDisplacementFoam' failed
make[1]: *** [solidEquilibriumDisplacementFoam] Error 2
make[1]: Target 'application' not remade because of errors.
make[1]: Leaving directory '/home/gharaati/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis'
/home/gharaati/OpenFOAM/OpenFOAM-2.3.x/wmake/MakefileApps:39: recipe for target 'stressAnalysis' failed
make: *** [stressAnalysis] Error 2
make: Target 'application' not remade because of errors.
Also. I 'm new with Ubuntu and openFOAM.
mgharaati is offline   Reply With Quote

Old   May 27, 2017, 07:57
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: To fix that problem, see this post: Problems installing OpenFOAM 2.4.0 on Fedora 23 - post #3
wyldckat is offline   Reply With Quote

Old   June 2, 2017, 14:24
Default
  #3
New Member
 
Masoumeh Gharaati
Join Date: Apr 2017
Posts: 19
Rep Power: 9
mgharaati is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: To fix that problem, see this post: Problems installing OpenFOAM 2.4.0 on Fedora 23 - post #3


Thanks for your help.
mgharaati is offline   Reply With Quote

Old   April 21, 2018, 13:05
Default
  #4
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
Hey there Bruno

=================================================
Never mind. Running from scratch after a wclean all seems to solve the issues!
=================================================

I am trying to install OF-2.4.0 on a GPU Cluster with Power 8 CPUs. OS is Ubuntu 16.04.

Allwmake fails at the exact same step as above mentioned, however since I applied your fix I don't have any undefined references to flex (currently using version 2.6.0).

I am wondering if you can make any suggestions. Please see log below:
Code:
+ wmake libso phaseCompressibleTurbulenceModels
make[2]: Entering directory '/gpfs/home/$WM_PROJECT_DIR/applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels'
'/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libphaseCompressibleTurbulenceModels.so' is up to date.
make[2]: Leaving directory '/gpfs/home/$WM_PROJECT_DIR/applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels'
+ wmake
make[2]: Entering directory '/gpfs/home/$WM_PROJECT_DIR/applications/solvers/multiphase/twoPhaseEulerFoam'
g++ -m64 -mcpu=power8 -DlinuxPPC64le -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/$WM_PROJECT_DIR/src/transportModels/compressible/lnInclude -I/$WM_PROJECT_DIR/src/thermophysicalModels/basic/lnInclude -I/$WM_PROJECT_DIR/src/finiteVolume/lnInclude -I/$WM_PROJECT_DIR/src/transportModels/incompressible/lnInclude -I/$WM_PROJECT_DIR/src/TurbulenceModels/turbulenceModels/lnInclude -I/$WM_PROJECT_DIR/src/TurbulenceModels/compressible/lnInclude -I/$WM_PROJECT_DIR/src/TurbulenceModels/phaseCompressible/lnInclude -IphaseCompressibleTurbulenceModels/lnInclude -IinterfacialModels/lnInclude -ItwoPhaseSystem/lnInclude -I/$WM_PROJECT_DIR/src/finiteVolume/lnInclude -I/$WM_PROJECT_DIR/src/fvOptions/lnInclude -I/$WM_PROJECT_DIR/src/meshTools/lnInclude -I/$WM_PROJECT_DIR/src/sampling/lnInclude -IlnInclude -I. -I/$WM_PROJECT_DIR/src/OpenFOAM/lnInclude -I/$WM_PROJECT_DIR/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed Make/linuxPPC64leGccDPOpt/twoPhaseEulerFoam.o -L/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib \
     -lfluidThermophysicalModels -lspecie -lturbulenceModels -lcompressibleTurbulenceModels -lphaseCompressibleTurbulenceModels -lincompressibleTransportModels -lcompressibleTwoPhaseSystem -lcompressibleEulerianInterfacialModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -lOpenFOAM -ldl   -lm -o /$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/bin/twoPhaseEulerFoam
/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libcompressibleTwoPhaseSystem.so: undefined reference to `Foam::TurbulenceModel<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>, Foam::compressibleTurbulenceModel, Foam::phaseModel>::dictionaryConstructorTablePtr_'
/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libcompressibleTwoPhaseSystem.so: undefined reference to `Foam::turbulenceModel::propertiesName'
collect2: error: ld returned 1 exit status
/$WM_PROJECT_DIR/wmake/Makefile:149: recipe for target '/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/bin/twoPhaseEulerFoam' failed
make[2]: *** [/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/bin/twoPhaseEulerFoam] Error 1
make[2]: Leaving directory '/gpfs/home/$WM_PROJECT_DIR/applications/solvers/multiphase/twoPhaseEulerFoam'
/$WM_PROJECT_DIR/wmake/MakefileApps:39: recipe for target 'twoPhaseEulerFoam' failed
make[1]: *** [twoPhaseEulerFoam] Error 2
make[1]: Target 'application' not remade because of errors.
make[1]: Leaving directory '/gpfs/home/$WM_PROJECT_DIR/applications/solvers/multiphase'
/$WM_PROJECT_DIR/wmake/MakefileApps:39: recipe for target 'multiphase' failed
make: *** [multiphase] Error 2
make[1]: Entering directory '/gpfs/home/$WM_PROJECT_DIR/applications/solvers/stressAnalysis'
make[2]: Entering directory '/gpfs/home/$WM_PROJECT_DIR/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[2]: '/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/bin/solidDisplacementFoam' is up to date.
make[2]: Leaving directory '/gpfs/home/$WM_PROJECT_DIR/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[2]: Entering directory '/gpfs/home/$WM_PROJECT_DIR/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[2]: '/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/bin/solidEquilibriumDisplacementFoam' is up to date.
make[2]: Leaving directory '/gpfs/home/$WM_PROJECT_DIR/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[1]: Leaving directory '/gpfs/home/$WM_PROJECT_DIR/applications/solvers/stressAnalysis'
make: Target 'application' not remade because of errors.
When I do a grep "undefined reference" to the log.Allwmake, I see that it starts with:
Code:
1395:Make/linuxPPC64leGccDPOpt/R.o:(.toc+0x1e8): undefined reference to `Foam::incompressible::turbulenceModel::typeName'
1396:Make/linuxPPC64leGccDPOpt/R.o:(.toc+0x200): undefined reference to `Foam::compressible::turbulenceModel::typeName'
1397:Make/linuxPPC64leGccDPOpt/R.o:(.toc+0x208): undefined reference to `typeinfo for Foam::compressible::turbulenceModel'
Then it basically cannot compile:
Code:
1843:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libSLGThermo.so: undefined reference to `Foam::solidMixtureProperties::New(Foam::dictionary const&)'
1858:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libDPMTurbulenceModels.so: undefined reference to `Foam::incompressibleTurbulenceModel::mu() const'
1859:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libDPMTurbulenceModels.so: undefined reference to `Foam::incompressibleTurbulenceModel::mut() const'
1860:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libDPMTurbulenceModels.so: undefined reference to `typeinfo for Foam::incompressibleTurbulenceModel'
1861:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libDPMTurbulenceModels.so: undefined reference to `Foam::incompressibleTurbulenceModel::mut(int) const'
1862:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libDPMTurbulenceModels.so: undefined reference to `Foam::incompressibleTurbulenceModel::muEff() const'
1863:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libDPMTurbulenceModels.so: undefined reference to `vtable for Foam::incompressibleTurbulenceModel'
This part repeats a number of times. Before Allwmake completely fails below is the final errors:
Code:
1995:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libSLGThermo.so: undefined reference to `Foam::solidMixtureProperties::New(Foam::dictionary const&)'
2023:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libinterfaceProperties.so: undefined reference to `typeinfo for Foam::alphaContactAngleFvPatchScalarField'
2024:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libinterfaceProperties.so: undefined reference to `Foam::alphaContactAngleFvPatchScalarField::typeName'
2033:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libinterfaceProperties.so: undefined reference to `typeinfo for Foam::alphaContactAngleFvPatchScalarField'
2034:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libinterfaceProperties.so: undefined reference to `Foam::alphaContactAngleFvPatchScalarField::typeName'
2146:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libcompressibleTwoPhaseSystem.so: undefined reference to `Foam::TurbulenceModel<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>, Foam::compressibleTurbulenceModel, Foam::phaseModel>::dictionaryConstructorTablePtr_'
2147:/$WM_PROJECT_DIR/platforms/linuxPPC64leGccDPOpt/lib/libcompressibleTwoPhaseSystem.so: undefined reference to `Foam::turbulenceModel::propertiesName'
Thanks a lot.
wyldckat likes this.

Last edited by fertinaz; April 22, 2018 at 02:41.
fertinaz is offline   Reply With Quote

Reply

Tags
openfoam 2.3.x


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] Basic questions about OpenFOAM cluster running and installing Fauster OpenFOAM Installation 0 May 25, 2018 16:00
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 12:50
[OpenFOAM.org] Problems installing OpenFOAM 2.3.0 on Ubuntu 12.04 arieljeds OpenFOAM Installation 6 August 19, 2015 08:39
[OpenFOAM.org] -bash: fluentMeshToFoam: command not found, after installing OpenFoam 2.3.x on Mac jundong OpenFOAM Installation 1 July 1, 2015 14:31


All times are GMT -4. The time now is 13:45.