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

[Other] Error:Install LEMOS in openfoam2.3.0

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By mushtime
  • 1 Post By alexeym
  • 1 Post By Giv

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2016, 02:15
Unhappy Error:Install LEMOS in openfoam2.3.0
  #1
New Member
 
Qiaoling Wang
Join Date: Dec 2015
Posts: 18
Rep Power: 10
mushtime is on a distinguished road
Dear foamers,
I try to install LEMOS into openfoam2.3.0: http://www.lemos.uni-rostock.de/en/d.../cfd-software/
Quote:
1.move the Folder "LEMOS-2.3.x" into $FOAM_SRC
2.add the following line to your ~/.bashrc after ". ~/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc": . $FOAM_SRC/LEMOS-2.3.x/bashrc
3.parse your ~/.bashrc or open a new terminal
4.Execute applyPatches to install patches in $FOAM_SRC folder
5.Execute $LEMOSEXT/Allwmake to build the library and executables
But when I excute ./Allwmake under folder LEMOS-2.3.x, I got the following error.
Code:
/usr/bin/ld: cannot find -lgsl
collect2: error: ld returned 1 exit status
make: *** [/home/customer/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libLEMOS-2.3.x.so] Error 1
+ cd applications
+ wmake all solvers
Making dependency list for source file scalarPimpleFoamLDMMS.C
Making dependency list for source file PODSolver.C
Making dependency list for source file scalarPimpleFoamMFM.C
Making dependency list for source file scalarPimpleFoam.C
could not open file PODODE.H for source file PODSolver.C due to No such file or directory
could not open file ODESolver.H for source file PODSolver.C due to No such file or directory
SOURCE=PODSolver.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/libLEMOS-2.3.x/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude  -IlnInclude -I. -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PODSolver.o
SOURCE=scalarPimpleFoamLDMMS.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/singlePhaseTransportModel -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scalarPimpleFoamLDMMS.o
PODSolver.C:35:20: fatal error: PODODE.H: No such file or directory
 #include "PODODE.H"
Code:
compilation terminated.
SOURCE=scalarPimpleFoam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/singlePhaseTransportModel -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scalarPimpleFoam.o
SOURCE=scalarPimpleFoamMFM.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/singlePhaseTransportModel -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scalarPimpleFoamMFM.o
make[2]: *** [Make/linux64GccDPOpt/PODSolver.o] Error 1
make[2]: Target `/home/customer/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/PODSolver' not remade because of errors.
make[1]: *** [PODSolver] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [basic] Error 2
Code:
compilation terminated.
make[3]: *** [Make/linux64GccDPOpt/postChannelExt.o] Error 1
make[3]: *** [Make/linux64GccDPOpt/vectorSnapshots.o] Error 1
make[3]: Target `/home/customer/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/vectorSnapshots' not remade because of errors.
make[2]: *** [vectorSnapshots] Error 2
make[3]: *** [Make/linux64GccDPOpt/scalarSnapshots.o] Error 1
make[3]: Target `/home/customer/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/scalarSnapshots' not remade because of errors.
make[2]: *** [scalarSnapshots] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [POD] Error 2
make[3]: Target `/home/customer/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/postChannelExt' not remade because of errors.
make[2]: *** [postChannelExt] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [miscellaneous] Error 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/postProcessing/postCalc -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/customer/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/LambdaCI.o -L/home/customer/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib \
     /home/customer/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/postCalc.o -lfiniteVolume -lmeshTools -lgenericPatchFields -lOpenFOAM -ldl   -lm -o /home/customer/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/LambdaCI
make[1]: Target `application' not remade because of errors.
make: *** [postProcessing] Error 2
make: Target `application' not remade because of errors.
Is this because LEMOS-2.3.x can only be used for Openfoam2.3.x not for Openfoam2.3.0?

Thanks.
Luttappy likes this.

Last edited by wyldckat; December 3, 2016 at 16:16. Reason: fixed link to LEMOS page
mushtime is offline   Reply With Quote

Old   May 14, 2016, 09:26
Default
  #2
New Member
 
Qiaoling Wang
Join Date: Dec 2015
Posts: 18
Rep Power: 10
mushtime is on a distinguished road
Now I tried again to install LEMOS into Openfoam2.3.1. But the problem is till there.
Does anyone know why?
mushtime is offline   Reply With Quote

Old   May 15, 2016, 07:01
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

This error

Code:
PODSolver.C:35:20: fatal error: PODODE.H: No such file or directory
 #include "PODODE.H"
means you did not set LEMOSEXT environment variable. Here is relevant piece from applications/solvers/basic/PODSolver/Make/options:

Code:
EXE_INC = \
    -I$(LEMOSEXT)/libLEMOS-2.3.x/lnInclude \
...
alexeym is offline   Reply With Quote

Old   May 16, 2016, 07:20
Default
  #4
New Member
 
Qiaoling Wang
Join Date: Dec 2015
Posts: 18
Rep Power: 10
mushtime is on a distinguished road
Thank you for your reply, Alexey.
I am new in OpenFOAM. I installed two versions of OF. So I add the path of bashrc of LEMOS-2.3.x to the bashrc of OpenFOAM2.3.1.
After I sourcing the bashrc of OpenFOAM2.3.1, and "echo LEMOSEXT,LIB_LEMOS_SRC" all give the right path.
But after that, the ./Allwmake still give the wrong message like this:
Code:
+ wmake libso libLEMOS-2.3.x
/usr/bin/ld: cannot find -lgsl
collect2: error: ld returned 1 exit status
make: *** [/home/customer/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libLEMOS-2.3.x.so] Error 1
Code:
/usr/bin/ld: cannot find -lLEMOS-2.3.x
collect2: error: ld returned 1 exit status
make[2]: *** [/home/customer/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/PODSolver] Error 1
make[1]: *** [PODSolver] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [basic] Error 2
Code:
make[1]: *** [Make/linux64GccDPOpt/scalarPimpleFoamMFM.o] Error 1
make[1]: Target `/home/customer/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoamMFM' not remade because of errors.
make: *** [scalarPimpleFoamMFM] Error 2
make[1]: *** [Make/linux64GccDPOpt/scalarPimpleFoamLDMMS.o] Error 1
make[1]: Target `/home/customer/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoamLDMMS' not remade because of errors.
make: *** [scalarPimpleFoamLDMMS] Error 2
make: Target `application' not remade because of errors.
Code:
usr/bin/ld: cannot find -lLEMOS-2.3.x
collect2: error: ld returned 1 exit status
make[3]: *** [/home/customer/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/vectorSnapshots] Error 1
make[2]: *** [vectorSnapshots] Error 2
/usr/bin/ld: cannot find -lLEMOS-2.3.x
collect2: error: ld returned 1 exit status
make[3]: *** [/home/customer/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarSnapshots] Error 1
make[2]: *** [scalarSnapshots] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [POD] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [postProcessing] Error 2
make: Target `application' not remade because of errors.
mushtime is offline   Reply With Quote

Old   May 16, 2016, 07:30
Default
  #5
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
The error causes all other errors is:

Code:
/usr/bin/ld: cannot find -lgsl
I GUESS it is GNU Scientific Library (or maybe Guidelines Support Library https://github.com/Microsoft/GSL ). Though the only place where -lgsl is mentioned is Make/options file, so maybe it is not used now.
wyldckat likes this.
alexeym is offline   Reply With Quote

Old   May 16, 2016, 07:42
Default
  #6
New Member
 
Qiaoling Wang
Join Date: Dec 2015
Posts: 18
Rep Power: 10
mushtime is on a distinguished road
Thanks Alexey,
Maybe I will try to remove the -lgsl to see whether it affects or look into the two libraries you mentioned.
Hope it works
mushtime is offline   Reply With Quote

Old   May 21, 2016, 10:36
Smile
  #7
New Member
 
Qiaoling Wang
Join Date: Dec 2015
Posts: 18
Rep Power: 10
mushtime is on a distinguished road
Sorry that I forget to post the result.
After I remove the -lgsl. the compile of the libLEMOS-2.3.x.so just work fine. Though there is some mistakes when I compile the included solvers in LEMOS, but that's ok since I mainly use the Inflow-generator.
mushtime is offline   Reply With Quote

Old   November 26, 2016, 07:04
Default
  #8
Giv
New Member
 
Join Date: Jul 2015
Posts: 5
Rep Power: 10
Giv is on a distinguished road
Hi Qiaoling
I have the same problem in compiling LEMOS
how did you solve it?
thank you
Giv is offline   Reply With Quote

Old   December 3, 2016, 16:17
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quote:
Originally Posted by Giv View Post
I have the same problem in compiling LEMOS
Quick question: Which version are you trying to install, namely which OpenFOAM version and LEMOS version?
__________________
wyldckat is offline   Reply With Quote

Old   December 4, 2016, 16:18
Default
  #10
Giv
New Member
 
Join Date: Jul 2015
Posts: 5
Rep Power: 10
Giv is on a distinguished road
Hi Bruno

I solved my problem

I had not all the development tools installed

the OpenFOAM version is 2.3.1 with LEMOS 2.3.x

thank you
wyldckat likes this.
Giv is offline   Reply With Quote

Reply


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
LEMOS InflowGenerator r_gordon OpenFOAM Running, Solving & CFD 103 December 18, 2018 00:58
interFoam employed LEMOS inflow generator dkjiao OpenFOAM Running, Solving & CFD 0 February 20, 2017 03:12
[OpenFOAM] How to use paraFoam with ParaView4.2 in OpenFOAM2.3.0 Detian Liu ParaView 0 November 14, 2014 09:24
OpenFOAM2.3.0 on Intel Xeon Phi with OpenMPI-1.6.5 manredd OpenFOAM Installation 1 June 6, 2014 15:41


All times are GMT -4. The time now is 07:59.