OpenFOAM v2.0.0 installation error on Redhat 5
Today I install OpenFOAM v2.0.0 on Redhat Enterprise 5.0, there are some error as follows,
triSurface/interfaces/STL/readSTLASCII.L:59:25: error: no 'int yyFlexLexer::yywrap()' member function declared in class 'yyFlexLexer' Make/linux64GccDPOpt/readSTLASCII.C: In member function 'int STLLexer::lex()': Make/linux64GccDPOpt/readSTLASCII.C:5526:10: error: 'yy_buffer_stack' was not declared in this scope Make/linux64GccDPOpt/readSTLASCII.C:5526:10: error: 'yy_buffer_stack_top' was not declared in this scope Make/linux64GccDPOpt/readSTLASCII.C:5527:27: error: 'yyensure_buffer_stack' was not declared in this scope Make/linux64GccDPOpt/readSTLASCII.C:5549:57: warning: use of old-style cast Make/linux64GccDPOpt/readSTLASCII.C:5549:57: warning: use of old-style cast Make/linux64GccDPOpt/readSTLASCII.C:5565:3: warning: use of old-style cast Make/linux64GccDPOpt/readSTLASCII.C:5779:62: warning: use of old-style cast Make/linux64GccDPOpt/readSTLASCII.C:5785:8: error: 'yy_buffer_stack' was not declared in this scope How to solve this problem?:confused: Thank you |
Quote:
|
Quote:
Thank you for your reply. I have installed the latest flex version 2.5.35, but the problem also exist. :confused: |
Quote:
|
Quote:
The problem is solved. I figured out the resson. Gcc can't find the include directory of flex. To add the flex include path to the file "$HOME/.bashrc", such as: export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$FLEX_INS/include $FLEX_INS is the directory where flex install Regards firelet |
Quote:
|
Linker error in RHEL 5
1 Attachment(s)
Hi all,
I also have problems installing OF2.0.0 on RHEL 5. I get the famous linker error and some other stuff. I think it maybe is an openmp problem but I tried so much different settings already - I am out of ideas now. I have done already: Downloaded+extracted OF+ThirdPraty 2.0.0 and followed the instructions. changed gcc/g++ to gcc44/g++44 in etc/config/settings.sh updated flex to 2.5.35 I am using the system compiler because when I am trying to use the Thirdparty compiler (as suggested in other posts), I get the following warning and I don't know what to to about it: Code:
...@bapf028dl ~/code/OpenFOAM-2.0.0 >source ~/.bashrc I appended the make.log and my current bashrc+settings.sh and am now hoping for your ideas. Thank you very much in advance. Max |
There is centfoam for RHEL 5.x and CentOS: http://sourceforge.net/apps/mediawik...itle=Main_Page
|
Quote:
Thanks for your reply. Max |
Greetings to all!
Max, here are the questions I've got for you:
Bruno |
Hi Bruno,
yes flex,gcc44 are visible from everywhere in the comandline. (Can there be a problem because I am using bash, which is not my loginshell?) Code:
Code:
blockMesh/blockMeshMerge.C:120: error: call of overloaded 'boundBox(Foam::pointField)' is ambiguous Thank you for your help. Max |
1 Attachment(s)
Quote:
I am a newbie on linux OS and i don't know what to do, so I added all the software lib path to PATH just in case for problems. Noting --prefix won't work on all the gcc4.4.6files,so if you don't have root permissions, use -with-local-prefix to specify your own path. |
All times are GMT -4. The time now is 14:51. |