|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Chalothon Thumthae
Join Date: Mar 2009
Posts: 13
Rep Power: 17 ![]() |
Hello
I have problem about "wmake" , at folder --> /OpenFOAM/OpenFOAM-1.1/applications/solvers/incompressiblee/turbFoam I type > wmake and it not pass, it show /home/nonyon/OpenFOAM/OpenFOAM-1.1/applications/wmake/wmake: line 140: make: command not found /home/nonyon/OpenFOAM/OpenFOAM-1.1/applications/wmake/wmake: cannot make, file Make/linuxOpt/objectFiles was not created successfully after that I test open shell scrib wmake, the command at the line 140 is ..... make -f $WM_DIR/MakefileFiles allFiles what happen to wmake and/or make command? please help me to correct this problem Torn |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,906
Rep Power: 33 ![]() |
It says that make is not installed on your system or not visible in your path.
Try typing: which make and if not found, you will need to have it installed at your system. You can get a free version from Gnu and compile it yourself. http://www.gnu.org/software/make/ Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 ![]() |
Not directly related to the current thread but I've put a few tips about wmake on the Wiki
at http://openfoamwiki.net/index.php?title=Wmake&rcid=2824 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Marhamat Zeinali
Join Date: Mar 2009
Location: Tehran, Tehran, iran
Posts: 107
Rep Power: 17 ![]() |
Hi everybody
When i want to update the solvers by using ./Allwmake i recieve the below messages(i.e): ... SOURCE_DIR=. SOURCE=simpleFoam.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/root/OpenFOAM/OpenFOAM-1.3/src/turbulenceModels -I/root/OpenFOAM/OpenFOAM-1.3/src/transportModels -I/root/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/simpleFoam.o /root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/zeroGradientFvPatchField. C:141: error: expected constructor, destructor, or type conversion before 'is' /root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/zeroGradientFvPatchField. C:141: error: 'you' does not name a type /root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/zeroGradientFvPatchField. C:143: error: 'either' does not name a type /root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/zeroGradientFvPatchField. C:147: error: 'without' does not name a type make: *** [Make/linuxGcc4DPOpt/simpleFoam.o] Error 1 + wmake turbFoam make: Nothing to be done for `allFiles'. make: `Make/linuxGcc4DPOpt/dependencies' is up to date. SOURCE_DIR=. SOURCE=turbFoam.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/root/OpenFOAM/OpenFOAM-1.3/src/turbulenceModels -I/root/OpenFOAM/OpenFOAM-1.3/src/transportModels -I/root/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/turbFoam.o /root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/zeroGradientFvPatchField. C:141: error: expected constructor, destructor, or type conversion before 'is' /root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/zeroGradientFvPatchField. C:141: error: 'you' does not name a type /root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/zeroGradientFvPatchField. C:143: error: 'either' does not name a type /root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/zeroGradientFvPatchField. C:147: error: 'without' does not name a type make: *** [Make/linuxGcc4DPOpt/turbFoam.o] Error 1 + wmake boundaryFoam make: Nothing to be done for `allFiles'. SOURCE_DIR=. SOURCE=boundaryFoam.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/root/OpenFOAM/OpenFOAM-1.3/src/turbulenceModels -I/root/OpenFOAM/OpenFOAM-1.3/src/ ... Best regards Marhamat |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,906
Rep Power: 33 ![]() |
You've got garbage in file /root/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/zeroGradientFvPatchField. C on line 141. get rid of it.
BTW, why are you running as root? Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Marhamat Zeinali
Join Date: Mar 2009
Location: Tehran, Tehran, iran
Posts: 107
Rep Power: 17 ![]() |
Thanks alot
Ok,i will change it . Best Regards Marhamat |
|
![]() |
![]() |
![]() |
![]() |
#7 |
New Member
Hyunchang Lee
Join Date: Mar 2009
Posts: 5
Rep Power: 17 ![]() |
Hi everybody~
I have some problem in wmake. whenever I run it in every source code, an error like below happen. lee@pcblue:~/OpenFOAM/lee-1.4.1/applications/parabolicVelocity> wmake SOURCE=parabolicVelocityFvPatchVectorField.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/nfs/home/lee/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/nfs/home/lee/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/parabolicVelocityFvPatchVectorField.o In file included from /nfs/home/lee/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/.. /../../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++config.h:41, from /nfs/home/lee/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/.. /../../../include/c++/4.2.1/string:45, from /nfs/home/lee/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/string.H:47, from /nfs/home/lee/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/word.H:43, from /nfs/home/lee/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/patchIdentifier.H:3 8, from /nfs/home/lee/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/polyPatch.H:50, from /nfs/home/lee/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvPatch.H:39, from /nfs/home/lee/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvPatchField.H: 45, from /nfs/home/lee/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvPatchFields.H :30, from parabolicVelocityFvPatchVectorField.H:44, from parabolicVelocityFvPatchVectorField.C:27: /nfs/home/lee/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/.. /../../../include/c++/4.2.1/i686-pc-linux-gnu/bits/os_defines.h:44:22: error: features.h: No such file or directory The error message is much more long and they look all similar to me. so, I'll appreciate any hint from you. thank you in advance. Hyunchang |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 ![]() |
Hello,
Your workstation is missing a few RPMs for software development. On my Centos 4.4 systems, the file features.h is located in /usr/include. This file was provided by a RPM called glibc-headers-2.3.4-2.25. If you are using SuSE or some other Unix flavor, the name of the RPM might vary a bit, but do you get the point. So verify your workstation installation first in order to get a valid software development platform. Martin |
|
![]() |
![]() |
![]() |
![]() |
#9 |
New Member
Hyunchang Lee
Join Date: Mar 2009
Posts: 5
Rep Power: 17 ![]() |
Thank you, Martin.
I'll try to verify my workstation. Hyunchang |
|
![]() |
![]() |
![]() |
![]() |
#10 |
New Member
Hyunchang Lee
Join Date: Mar 2009
Posts: 5
Rep Power: 17 ![]() |
Martin, It works now. many thanks~
I'm using SUSE 10.2 and search the RPM glibc in SUSE homepage and installed 2 RPMs. Hyunchang |
|
![]() |
![]() |
![]() |
![]() |
#11 |
New Member
Daniel Langmayr
Join Date: Mar 2009
Posts: 15
Rep Power: 17 ![]() |
Hello!
I have a similar problem like Chalothon: at folder --> "/home/dani/OpenFOAM/OpenFOAM-1.5/tutorials/MRFSimpleFoam/MRFSimpleFoam" I write wmake and get the following error message: "/home/dani/OpenFOAM/OpenFOAM-1.5/wmake/wmake: line 202: make: command not found" However, when i use "which wmake" it finds the file in "/home/dani/OpenFOAM/OpenFOAM-1.5/wmake/wmake" I have no idea how to proceed. Any help is appreciated. Thanks in advance, Daniel |
|
![]() |
![]() |
![]() |
![]() |
#12 |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 ![]() |
Hello Daniel,
Make sure you have the "make" RPM package installed on your system. Martin |
|
![]() |
![]() |
![]() |
![]() |
#13 |
New Member
Daniel Langmayr
Join Date: Mar 2009
Posts: 15
Rep Power: 17 ![]() |
Hello Martin,
Thank you very much...that helped;) All the best, daniel |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wmake ccm26ToFoam compilation problem under Ubuntu x64 810 | kprzysowagmailcom | OpenFOAM Installation | 7 | November 6, 2009 04:33 |
Wmake problem interFoam solver | feijooos | OpenFOAM Running, Solving & CFD | 4 | December 8, 2008 11:01 |
Problem about wmake turbFoam | williamscn | OpenFOAM Running, Solving & CFD | 3 | September 19, 2007 11:55 |
Minor wmake problem for x86_64 when compiling everything using existing gcc WM_COMPILER%3dbb | hoogland | OpenFOAM Installation | 0 | August 13, 2007 08:58 |
Wmake clock skew detectedis this causing a problem | york | OpenFOAM Running, Solving & CFD | 2 | July 10, 2007 23:43 |