CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   problem in compiling groovyBC in OpenFoam 1.71 (http://www.cfd-online.com/Forums/openfoam/91031-problem-compiling-groovybc-openfoam-1-71-a.html)

javad814 July 28, 2011 08:23

problem in compiling groovyBC in OpenFoam 1.71
 
hello every body
i have downloaded all the source files from link below that is on http://openfoamwiki.net/index.php/Contrib_groovyBC


svn checkout https://openfoam-extend.svn.sourcefo...aries/groovyBC

and save them in a file ex: groovy
then in terminal write :
javad@javad-H61M-D2P-B3:~$ cd groovy/
javad@javad-H61M-D2P-B3:~/groovy$ wmake libso
but it didn't run and this error has shown


\\
javad@javad-H61M-D2P-B3:~$ cd groovy/
javad@javad-H61M-D2P-B3:~/groovy$ wmake libso
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file PatchResult.C
Making dependency list for source file PatchValueExpressionParser.yy
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy
Making dependency list for source file PatchValueExpressionLexer.ll
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll
Making dependency list for source file PatchValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
Making dependency list for source file groovyBCFvPatchFields.C
could not open file PatchValueExpressionParser.tab.hh for source file groovyBCFvPatchFields.C
Making dependency list for source file groovyBCPointPatchFields.C
could not open file MixedPointPatchField.H for source file groovyBCPointPatchFields.C
could not open file PatchValueExpressionParser.tab.hh for source file groovyBCPointPatchFields.C
could not open file PointPatchFieldMapper.H for source file groovyBCPointPatchFields.C
SOURCE=PatchResult.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/PatchResult.o
PatchResult.C: In member function ‘void Foam::PatchResult::uglyDelete()’:
PatchResult.C:95:20: warning: deleting ‘void*’ is undefined
SOURCE=PatchValueExpressionParser.yy ; rm -f Make/linuxGccDPOpt/PatchValueExpressionParser.C Make/linuxGccDPOpt/PatchValueExpressionParser.tab.hh; bison -ra -v -d $SOURCE ; mv *.tab.cc Make/linuxGccDPOpt/PatchValueExpressionParser.C ; mv *.tab.hh Make/linuxGccDPOpt/PatchValueExpressionParser.tab.hh ; mv *.hh Make/linuxGccDPOpt ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linuxGccDPOpt/PatchValueExpressionParser.C -o Make/linuxGccDPOpt/PatchValueExpressionParser.o
/bin/sh: bison: not found
mv: cannot stat `*.tab.cc': No such file or directory
mv: cannot stat `*.tab.hh': No such file or directory
mv: cannot stat `*.hh': No such file or directory
g++: Make/linuxGccDPOpt/PatchValueExpressionParser.C: No such file or directory
g++: no input files
make: *** [Make/linuxGccDPOpt/PatchValueExpressionParser.o] Error 1
\\

i have done this many times and in all of them i have faced this error
i must do something else before it ?!


gschaider July 28, 2011 13:22

Quote:

Originally Posted by javad814 (Post 317852)

<snipped>

Make/linuxGccDPOpt/PatchValueExpressionParser.C -o Make/linuxGccDPOpt/PatchValueExpressionParser.o
/bin/sh: bison: not found
mv: cannot stat `*.tab.cc': No such file or directory
mv: cannot stat `*.tab.hh': No such file or directory
mv: cannot stat `*.hh': No such file or directory
g++: Make/linuxGccDPOpt/PatchValueExpressionParser.C: No such file or directory
g++: no input files
make: *** [Make/linuxGccDPOpt/PatchValueExpressionParser.o] Error 1
\\

i have done this many times and in all of them i have faced this error
i must do something else before it ?!


The important words are "bison: not found". Read the requirements

javad814 July 29, 2011 08:20

Thank u for your answer but I didn't have this problem in Ubuntu 10.10 .Is this problem because of the version of Ubuntu (11.04)?
I don't know what bison is? Can you give me a link to know this and how to install it?
(I couldn't find any useful page in web that suitable for my problem:()

nimasam July 29, 2011 17:04

write some thing like this in commad line to download and install it:
sudo install apt-get binson

or go to synaptic package and search it and mark it for download and install!

javad814 July 31, 2011 05:33

Thank you Nima i installed it from synaptic:)


All times are GMT -4. The time now is 03:04.