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

install openfoam2.1.1 error on ubuntu10.10

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 12, 2012, 04:43
Smile install openfoam2.1.1 error on ubuntu10.10
  #1
Member
 
Jianming Liu
Join Date: Mar 2009
Location: China
Posts: 66
Rep Power: 8
liujmljm is on a distinguished road
Hi, I install the openfoam2.1.1 on my laptop. The installing method is the one presented on the site of openfoam. But I encounter following erro. I do not know why. Can you help me. Thank you!
I../phaseModel/lnInclude -I../interfacialModels/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/frictionalStressModel.o
SOURCE=frictionalStressModel/frictionalStressModel/newFrictionalStressModel.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/foam/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I../phaseModel/lnInclude -I../interfacialModels/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/newFrictionalStressModel.o
SOURCE=frictionalStressModel/JohnsonJackson/JohnsonJacksonFrictionalStress.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/foam/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I../phaseModel/lnInclude -I../interfacialModels/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/JohnsonJacksonFrictionalStress.o
SOURCE=frictionalStressModel/Schaeffer/SchaefferFrictionalStress.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/foam/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I../phaseModel/lnInclude -I../interfacialModels/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/SchaefferFrictionalStress.o
'/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/lib/libkineticTheoryModel.so' is up to date.
make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase/twoPhaseEulerFoam/kineticTheoryModels'
+ wmake
make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase/twoPhaseEulerFoam'
make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase/twoPhaseEulerFoam'
make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase/twoPhaseEulerFoam'
SOURCE=twoPhaseEulerFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I../bubbleFoam -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -IturbulenceModel -IkineticTheoryModels/lnInclude -IinterfacialModels/lnInclude -IphaseModel/lnInclude -Iaveraging -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/twoPhaseEulerFoam.o
/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readTimeControls.H: In function ‘int main(int, char**)’:
/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I../bubbleFoam -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -IturbulenceModel -IkineticTheoryModels/lnInclude -IinterfacialModels/lnInclude -IphaseModel/lnInclude -Iaveraging -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGcc44DPOpt/twoPhaseEulerFoam.o -L/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/lib \
-lEulerianInterfacialModels -lfiniteVolume -lmeshTools -lincompressibleTransportModels -lphaseModel -lkineticTheoryModel -lOpenFOAM -ldl -lm -o /home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/twoPhaseEulerFoam
/usr/bin/ld: cannot find -lEulerianInterfacialModels
/usr/bin/ld: cannot find -lfiniteVolume
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -lincompressibleTransportModels
/usr/bin/ld: cannot find -lphaseModel
collect2: ld returned 1 exit status
make[2]: *** [/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/twoPhaseEulerFoam] Error 1
make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase/twoPhaseEulerFoam'
make[1]: *** [twoPhaseEulerFoam] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase'
make: *** [multiphase] Error 2
make[1]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis'
make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidDisplacementFoam'
SOURCE=tractionDisplacement/tractionDisplacementFvPatchVectorField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacement/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/tractionDisplacementFvPatchVectorField.o
SOURCE=solidDisplacementFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacement/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/solidDisplacementFoam.o
readSolidDisplacementFoamControls.H: In function ‘int main(int, char**)’:
readSolidDisplacementFoamControls.H:3: warning: unused variable ‘nCorr’
readSolidDisplacementFoamControls.H:5: warning: unused variable ‘convergenceTolerance’
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacement/lnInclude -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGcc44DPOpt/tractionDisplacementFvPatchVectorField.o Make/linuxGcc44DPOpt/solidDisplacementFoam.o -L/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/lib \
-lfiniteVolume -lOpenFOAM -ldl -lm -o /home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/solidDisplacementFoam
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[2]: *** [/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/solidDisplacementFoam] Error 1
make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[1]: *** [solidDisplacementFoam] Error 2
make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[2]: Entering directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
SOURCE=tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/tractionDisplacementCorrectionFvPatchVectorField.o
SOURCE=solidEquilibriumDisplacementFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc44DPOpt/solidEquilibriumDisplacementFoam.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGcc44DPOpt/tractionDisplacementCorrectionFvPatchVectorField.o Make/linuxGcc44DPOpt/solidEquilibriumDisplacementFoam.o -L/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/lib \
-lfiniteVolume -lOpenFOAM -ldl -lm -o /home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/solidEquilibriumDisplacementFoam
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[2]: *** [/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGcc44DPOpt/bin/solidEquilibriumDisplacementFoam] Error 1
make[2]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[1]: *** [solidEquilibriumDisplacementFoam] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/jmliu/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/stressAnalysis'
make: *** [stressAnalysis] Error 2
make: Target `application' not remade because of errors.
liujmljm is offline   Reply With Quote

Old   June 12, 2012, 17:24
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,117
Blog Entries: 34
Rep Power: 83
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Jianming Liu,

OK, the first error is usually the one to blame. This is too much far ahead for deducing how to fix this.

Run Allwmake like this:
Code:
./Allwmake > make.log 2>&1
When it's finishes, edit the file "make.log" and search for the first occurrence of "Error ". There should lie the real problem.

If you still can't figure out the problem, search and replace any sensitive content in the file (names and paths), then pack the file and attach the packaged file.
To pack the file, you can run:
Code:
tar -czf make.log.tar.gz make.log
Then attach the file "make.log.tar.gz" to your next post.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 13, 2012, 13:05
Default
  #3
Member
 
Jianming Liu
Join Date: Mar 2009
Location: China
Posts: 66
Rep Power: 8
liujmljm is on a distinguished road
Thank you. I have done by your saying and found the error and fix it. Thank you

Quote:
Originally Posted by wyldckat View Post
Greetings Jianming Liu,

OK, the first error is usually the one to blame. This is too much far ahead for deducing how to fix this.

Run Allwmake like this:
Code:
./Allwmake > make.log 2>&1
When it's finishes, edit the file "make.log" and search for the first occurrence of "Error ". There should lie the real problem.

If you still can't figure out the problem, search and replace any sensitive content in the file (names and paths), then pack the file and attach the packaged file.
To pack the file, you can run:
Code:
tar -czf make.log.tar.gz make.log
Then attach the file "make.log.tar.gz" to your next post.

Best regards,
Bruno
liujmljm is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install OF DP and SP in parallel? klausb OpenFOAM Installation 6 January 7, 2012 19:40
install openfoam in fedora Ahmed Khattab OpenFOAM Installation 32 September 23, 2011 11:11
unable to install openfoam 1.7 using apt-get maazhmd OpenFOAM Installation 7 July 24, 2011 11:18
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43


All times are GMT -4. The time now is 18:41.