|
[Sponsors] |
OpenFOAM v2.0.0 installation error on Redhat 5 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 13, 2011, 22:27 |
OpenFOAM v2.0.0 installation error on Redhat 5
|
#1 |
New Member
firelet
Join Date: Sep 2010
Posts: 3
Rep Power: 16 |
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? Thank you |
|
July 14, 2011, 03:30 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
|
||
July 14, 2011, 04:01 |
|
#3 | |
New Member
firelet
Join Date: Sep 2010
Posts: 3
Rep Power: 16 |
Quote:
Thank you for your reply. I have installed the latest flex version 2.5.35, but the problem also exist. |
||
July 14, 2011, 04:24 |
|
#4 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
OK, you have the newest version, but did you also either retouch the *.L file (to force a remake), or wclean the directory first. Otherwise you'll still be using the C++ code generated with the older flex.
|
|
July 15, 2011, 08:58 |
|
#5 | |
New Member
firelet
Join Date: Sep 2010
Posts: 3
Rep Power: 16 |
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 |
||
July 21, 2011, 08:42 |
|
#6 | |
New Member
|
Quote:
|
||
July 30, 2011, 07:51 |
Linker error in RHEL 5
|
#7 |
New Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 8
Rep Power: 15 |
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 Warning in /user/mars/.../code/OpenFOAM-2.0.0/etc/config/settings.sh: Cannot find /user/mars/.../code/ThirdParty-2.0.0/platforms/linux64/gcc-4.4.3 installation. Please install this compiler version or if you wish to use the system compiler, change the 'foamCompiler' setting to 'system' 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 |
|
July 31, 2011, 04:04 |
|
#8 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
There is centfoam for RHEL 5.x and CentOS: http://sourceforge.net/apps/mediawik...itle=Main_Page
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
July 31, 2011, 05:16 |
|
#9 | |
New Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 8
Rep Power: 15 |
Quote:
Thanks for your reply. Max |
||
July 31, 2011, 05:39 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Max, here are the questions I've got for you:
Bruno
__________________
|
|
July 31, 2011, 07:54 |
|
#11 |
New Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 8
Rep Power: 15 |
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:
...@bapf028dl ~/code/OpenFOAM-2.0.0 >gcc44 --version gcc44 (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ...@bapf028dl ~/code/OpenFOAM-2.0.0 >flex --version flex 2.5.35 ...@bapf028dl ~/code/OpenFOAM-2.0.0 >which gcc44 /usr/bin/gcc44 Code:
blockMesh/blockMeshMerge.C:120: error: call of overloaded 'boundBox(Foam::pointField)' is ambiguous Thank you for your help. Max |
|
July 31, 2011, 08:34 |
|
#12 | |
New Member
|
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. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.7 installation on Redhat linux | maxims | OpenFOAM Installation | 2 | November 30, 2012 05:29 |
OpenFoam Installation in Redhat Enterprise linux 5 | sahm | OpenFOAM Installation | 78 | November 1, 2011 16:22 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |