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

[OpenFOAM.org] Problems installing OpenFOAM 2.4.0 on Fedora 23

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 6 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2016, 08:23
Default Problems installing OpenFOAM 2.4.0 on Fedora 23
  #1
New Member
 
Terry L. Coons
Join Date: Apr 2016
Location: Shelby, MT 59474
Posts: 12
Rep Power: 10
tlcoons is on a distinguished road
Code:
[tlcoons@localhost ~]$ cd $WM_PROJECT_DIR
[tlcoons@localhost OpenFOAM-2.4.0]$ ./Allwmake > make2.log 2>&1
[tlcoons@localhost OpenFOAM-2.4.0]$ icofoam --help
bash: icofoam: command not found...
[tlcoons@localhost OpenFOAM-2.4.0]$
I attached the make2.log compressed as make2.log.gz
I'm not sure what to look for concerning icofoam command?
Thanks for your help.
Attached Files
File Type: gz make2.log.gz (22.0 KB, 5 views)

Last edited by wyldckat; May 8, 2016 at 14:51. Reason: Added [CODE][/CODE] markers
tlcoons is offline   Reply With Quote

Old   May 7, 2016, 01:36
Default Problems installing OpenFOAM 2.4.0 on Fedora 23
  #2
New Member
 
Terry L. Coons
Join Date: Apr 2016
Location: Shelby, MT 59474
Posts: 12
Rep Power: 10
tlcoons is on a distinguished road
I started getting errors when autoRefineMesh was being compiled.
Code:
      -lautoMesh -lbarotropicCompressibilityModel -lsolidThermo -lfluidThermophysicalModels -lblockMesh -lchemistryModel -lcoalCombustion -lcompressibleLESModels -lcompressibleRASModels -lcompressibleTurbulenceModel -lconversion -ldecompositionMethods -ldistributed -ldistributionModels -ldsmc -ldynamicFvMesh -ldynamicMesh -ledgeMesh -lengine -lfieldFunctionObjects -lfileFormats -lfiniteVolume -lfoamCalcFunctions -lforces -lfvMotionSolvers -lgenericPatchFields -lincompressibleLESModels -lincompressibleRASModels -lincompressibleTransportModels -lincompressibleTurbulenceModel -linterfaceProperties -lIOFunctionObjects -ljobControl -llagrangian -llagrangianIntermediate -llaminarFlameSpeedModels -lLESdeltas -lLESfilters -lliquidMixtureProperties -lliquidProperties -lmeshTools -lmolecularMeasurements -lmolecule -lODE -lOpenFOAM -lpotential -lradiationModels -lrandomProcesses -lreactionThermophysicalModels -lreconstruct -lsampling -lSLGThermo -lsolidMixtureProperties -lsolidParticle -lsolidProperties -lspecie -lsurfaceFilmModels -lsurfMesh -lsystemCall -lthermophysicalFunctions -ltopoChangerFvMesh -ltriSurface -ltwoPhaseProperties -lutilityFunctionObjects -lOpenFOAM -ldl   -lm -o /home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/platforms/linuxGccDPOpt/bin/foamDebugSwitches
/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/platforms/linuxGccDPOpt/lib/libtriSurface.so: undefined reference to `yyFlexLexer::yywrap()'
collect2: error: ld returned 1 exit status
/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/wmake/Makefile:149: recipe for target '/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/platforms/linuxGccDPOpt/bin/autoRefineMesh' failed
@                                                                               
                                                              311,1         12%
/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/platforms/linuxGccDPOpt/lib/libtriSurface.so: undefined reference to `yyFlexLexer::yywrap()'
collect2: error: ld returned 1 exit status
/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/wmake/Makefile:149: recipe for target '/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/platforms/linuxGccDPOpt/bin/autoRefineMesh' failed
make[3]: *** [/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/platforms/linuxGccDPOpt/bin/autoRefineMesh] Error 1
/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/wmake/MakefileApps:39: recipe for target 'autoRefineMesh' failed
make[2]: *** [autoRefineMesh] Error 2
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/src/dynamicMesh/lnInclude -I/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linuxGccDPOpt/collapseEdges.o -L/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/platforms/linuxGccDPOpt/lib \
     -ldynamicMesh -lmeshTools -lfiniteVolume -lOpenFOAM -ldl   -lm -o /home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/platforms/linuxGccDPOpt/bin/collapseEdges
/home/tlcoons/OpenFOAM/OpenFOAM-2.4.0/platforms/linuxGccDPOpt/lib/libreactionThermophysicalModels.so: undefined reference to `yyFlexLexer::yywrap()'
  collect2: error: ld returned 1 exit status
@                                                                                                                                           315,1         13%
Thanks for your help.
Attached Files
File Type: gz make2.log.gz (22.0 KB, 2 views)

Last edited by wyldckat; May 8, 2016 at 14:51. Reason: Added [CODE][/CODE] markers
tlcoons is offline   Reply With Quote

Old   May 8, 2016, 14:56
Default
  #3
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: Sorry, I didn't know that Fedora 23 had upgraded their Flex version. I've updated the instructions here: https://openfoamwiki.net/index.php/I...dora#Fedora_23

To fix the problem you're having, please run the following commands:
Code:
#Go into OpenFOAM's main source folder
cd $WM_PROJECT_DIR
 
#Change how the flex version is checked
find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_VERSION < 6 \&\& \1='
And then you can try building again, by running:
Code:
#Go into OpenFOAM's main source folder
cd $WM_PROJECT_DIR
 
# This next command will take a while... somewhere between 30 minutes to 3-6 hours.
./Allwmake > log.make 2>&1
 
#Run it a second time for getting a summary of the installation
./Allwmake > log.make 2>&1
wyldckat is offline   Reply With Quote

Old   May 12, 2016, 11:19
Default
  #4
Member
 
Dan Kokron
Join Date: Dec 2012
Posts: 33
Rep Power: 14
dkokron is on a distinguished road
Thank you Bruno! Seems a recent update to my F22 system installed to offending flex version. This post got me going again.
dkokron is offline   Reply With Quote

Old   October 18, 2017, 10:27
Default
  #5
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15
agustinvo is on a distinguished road
Hello

I have tried the same with OpenFOAM 2.3.X in Fedora 26 and it works
agustinvo is offline   Reply With Quote

Reply

Tags
installation issue


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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
[OpenFOAM.org] Problems installing OpenFOAM 2.3.0 on Ubuntu 12.04 arieljeds OpenFOAM Installation 6 August 19, 2015 08:39
[OpenFOAM.org] Installing OpenFOAM 2.3.0 on Mac - problems with db48 Silvester OpenFOAM Installation 6 August 17, 2015 05:01
Problems installing OpenFOAM 1.6-ext on Ubuntu 12.04 arashfluid OpenFOAM Installation 3 July 21, 2013 07:36
Problem on Installing OpenFOAM 1.6 on Fedora 11 lzgwhy OpenFOAM Installation 1 August 25, 2009 12:02


All times are GMT -4. The time now is 00:05.